Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jun 2011 03:10:38 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/158444: Update port: sysutils/dwatch
Message-ID:  <20110630031038.492f06cb.tkato432@yahoo.com>
Resent-Message-ID: <201106291820.p5TIK4NO098577@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         158444
>Category:       ports
>Synopsis:       Update port: sysutils/dwatch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 29 18:20:04 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Add LICENSE
- Support CC/CFLAGS properly
- Utilize PLIST_FILES

Remove file:
files/patch-Makefile
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/sysutils/dwatch/Makefile sysutils/dwatch/Makefile
--- /usr/ports/sysutils/dwatch/Makefile	2008-11-29 15:32:53.000000000 +0900
+++ sysutils/dwatch/Makefile	2011-04-15 12:42:24.000000000 +0900
@@ -7,19 +7,28 @@
 
 PORTNAME=	dwatch
 PORTVERSION=	0.1.1
+PORTREVISION=	1
 CATEGORIES=	sysutils
-MASTER_SITES=	ftp://siag.nu/pub/dwatch/ \
-		http://siag.nu/pub/dwatch/
+MASTER_SITES=	http://siag.nu/pub/dwatch/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Dwatch - A Daemon Watcher
+COMMENT=	A Daemon Watcher
+
+LICENSE=	GPLv2 GPLv3
+LICENSE_COMB=	dual
 
 MAN1=		dwatch.1
+PLIST_FILES=	bin/dwatch etc/dwatch.conf-dist
 
-pre-install:
-	${INSTALL_DATA} ${WRKSRC}/dwatch.conf ${PREFIX}/etc/dwatch.conf-dist
+CFLAGS+=	-DETCDIR="\"${PREFIX}/etc\"" \
+		-DPS="\"/bin/ps -ax\""
 
-post-install:
-	${STRIP_CMD} ${PREFIX}/bin/dwatch
+do-build:
+	(cd ${BUILD_WRKSRC}; ${CC} ${CFLAGS} -o dwatch dwatch.c)
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/dwatch ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/dwatch.1 ${MANPREFIX}/man/man1
+	${INSTALL_DATA} ${WRKSRC}/dwatch.conf ${PREFIX}/etc/dwatch.conf-dist
 
 .include <bsd.port.mk>
diff -urN /usr/ports/sysutils/dwatch/files/patch-Makefile sysutils/dwatch/files/patch-Makefile
--- /usr/ports/sysutils/dwatch/files/patch-Makefile	2003-04-01 07:05:56.000000000 +0900
+++ sysutils/dwatch/files/patch-Makefile	1970-01-01 09:00:00.000000000 +0900
@@ -1,21 +0,0 @@
---- Makefile.orig	Wed Aug 14 21:37:07 2002
-+++ Makefile	Wed Aug 14 21:36:47 2002
-@@ -10,7 +10,8 @@
- LDFLAGS = `./guess --libs`
- 
- # This ps works for Linux and Solaris, at least
--PS = "/bin/ps -ef"
-+#PS = "/bin/ps -ef"
-+PS = "/bin/ps -ax"
- 
- # For Linux
- #CFLAGS = -Wall -g
-@@ -19,7 +20,7 @@
- #CFLAGS = -Wall -g
- #LDFLAGS = -lnsl -lsocket
- 
--PREFIX = /usr/local
-+PREFIX ?= /usr/local
- BINDIR = $(PREFIX)/bin
- MANDIR = $(PREFIX)/man
- MAN1DIR = $(MANDIR)/man1
diff -urN /usr/ports/sysutils/dwatch/pkg-plist sysutils/dwatch/pkg-plist
--- /usr/ports/sysutils/dwatch/pkg-plist	2003-04-01 07:05:56.000000000 +0900
+++ sysutils/dwatch/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,2 +0,0 @@
-bin/dwatch
-etc/dwatch.conf-dist
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110630031038.492f06cb.tkato432>