From tkato432@yahoo.com  Wed Jun 29 18:11:50 2011
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 64928106566C
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed, 29 Jun 2011 18:11:48 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa101lp.auone-net.jp (msa101lp.auone-net.jp [222.3.140.164])
	by mx1.freebsd.org (Postfix) with ESMTP id 37DEA8FC0A
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed, 29 Jun 2011 18:11:48 +0000 (UTC)
Received: from localhost.localdomain (ZT030106.ppp.dion.ne.jp [59.128.30.106])
	by msa101lp.auone-net.jp (au one net msa) with ESMTP id 6595034034
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 30 Jun 2011 03:11:46 +0900 (JST)
Message-Id: <20110630031038.492f06cb.tkato432@yahoo.com>
Date: Thu, 30 Jun 2011 03:10:38 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Update port: sysutils/dwatch

>Number:         158444
>Category:       ports
>Synopsis:       Update port: sysutils/dwatch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 29 18:20:04 UTC 2011
>Closed-Date:    Sat Jul 02 18:33:33 UTC 2011
>Last-Modified:  Sat Jul  2 18:40:05 UTC 2011
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jun 29 18:20:41 UTC 2011 
Responsible-Changed-Why:  
miwi@ wants his PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=158444 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sat Jul 2 18:33:31 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=158444 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/158444: commit references a PR
Date: Sat,  2 Jul 2011 18:33:38 +0000 (UTC)

 miwi        2011-07-02 18:33:24 UTC
 
   FreeBSD ports repository
 
   Modified files:
     sysutils/dwatch      Makefile 
   Removed files:
     sysutils/dwatch      pkg-plist 
     sysutils/dwatch/files patch-Makefile 
   Log:
   - Fix MASTER_SITES
   - Add LICENSE
   - Support CC/CFLAGS properly
   - Utilize PLIST_FILES
   
   PR:             158444
   Submitted by:   Ports Fury
   
   Revision  Changes    Path
   1.4       +16 -7     ports/sysutils/dwatch/Makefile
   1.2       +0 -21     ports/sysutils/dwatch/files/patch-Makefile (dead)
   1.2       +0 -2      ports/sysutils/dwatch/pkg-plist (dead)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
