From radek@raadradd.com  Wed Nov 24 20:17:09 2004
Return-Path: <radek@raadradd.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CBFCF16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 24 Nov 2004 20:17:09 +0000 (GMT)
Received: from biggie.spekt.net (biggie.spekt.net [67.18.79.74])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4FD3E43D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 24 Nov 2004 20:17:09 +0000 (GMT)
	(envelope-from radek@raadradd.com)
Received: from raadradd.homeunix.org (bwh163.neoplus.adsl.tpnet.pl [83.29.231.163])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by biggie.spekt.net (Postfix) with ESMTP id 094EF4296
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 24 Nov 2004 21:16:58 +0100 (CET)
Received: from ddardaar (ddardaar [192.168.1.11])
	by raadradd.homeunix.org (Postfix) with ESMTP id CB7DEA51B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 24 Nov 2004 21:17:04 +0100 (CET)
Message-Id: <1101327465.0@ddardaar>
Date: Wed, 24 Nov 2004 21:17:45 +0100
From: "Radek Kozlowski" <radek@raadradd.com>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: [MAINTAINER] dns/ddclient: update to 3.6.5
X-Send-Pr-Version: gtk-send-pr 0.4 
X-GNATS-Notify:

>Number:         74334
>Category:       ports
>Synopsis:       [MAINTAINER] dns/ddclient: update to 3.6.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 24 20:20:35 GMT 2004
>Closed-Date:    Sat Nov 27 05:52:20 GMT 2004
>Last-Modified:  Sat Nov 27 05:52:20 GMT 2004
>Originator:     Radek Kozlowski
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:


System: FreeBSD 5.3-STABLE #9: Tue Nov 16 21:44:39 CET 2004
    root@ddardaar:/usr/obj/usr/src/sys/DDARDAAR



>Description:


- Update to 3.6.5
- Utilize PORTDOCS and PLIST_FILES
- Remove pkg-plist


>How-To-Repeat:





>Fix:


--- ddclient3.diff begins here ---
diff -ruN ddclient.orig/Makefile ddclient/Makefile
--- ddclient.orig/Makefile	Wed Nov 24 19:25:11 2004
+++ ddclient/Makefile	Wed Nov 24 20:48:20 2004
@@ -6,34 +6,45 @@
 #
 
 PORTNAME=	ddclient
-PORTVERSION=	3.6.4
+PORTVERSION=	3.6.5
 CATEGORIES=	dns
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR=	ddclient
+MASTER_SITE_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	radek@raadradd.com
 COMMENT=	Update dynamic DNS entries
 
 USE_PERL5=	yes
 NO_BUILD=	yes
-
 USE_RC_SUBR=	yes
 
+PLIST_FILES=    etc/ddclient.conf.sample \
+		etc/rc.d/ddclient.sh \
+		sbin/ddclient
+
+PORTDOCS=	COPYING COPYRIGHT Changelog README README.cisco \
+		sample-etc_cron.d_ddclient sample-etc_dhclient-exit-hooks \
+		sample-etc_dhcpc_dhcpcd-eth0.exe sample-etc_ppp_ip-up.local
+
+post-patch:
+	@${PERL} -pi -e 's|/etc/ddclient/|${PREFIX}/etc/ddclient/|g' ${WRKSRC}/README
+
 do-install:
 	@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g; s|%%PERL%%|${PERL}|g' ${WRKSRC}/ddclient
-	@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin
-	@${INSTALL_DATA} ${WRKSRC}/sample-etc_ddclient.conf ${PREFIX}/etc/ddclient.conf.sample
-	@${MKDIR} ${PREFIX}/share/ddclient
-.for i in COPYING COPYRIGHT README README.cisco sample-etc_cron.d_ddclient \
-	sample-etc_dhclient-exit-hooks sample-etc_dhcpc_dhcpcd-eth0.exe \
-	sample-etc_ppp_ip-up.local
-	@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' < ${WRKSRC}/$i > ${WRKDIR}/$i
-	@${INSTALL_DATA} ${WRKDIR}/$i ${PREFIX}/share/ddclient
-.endfor
 	@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g; s|%%RC_SUBR%%|${RC_SUBR}|g' \
 		< ${FILESDIR}/ddclient.sh > ${WRKDIR}/ddclient.sh
+	@${INSTALL_DATA} ${WRKSRC}/sample-etc_ddclient.conf ${PREFIX}/etc/ddclient.conf.sample
+	@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin
 	@${INSTALL_SCRIPT} ${WRKDIR}/ddclient.sh ${PREFIX}/etc/rc.d/
 
+post-install:
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+	@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' < ${WRKSRC}/$i > ${WRKDIR}/$i
+	@${INSTALL_DATA} ${WRKDIR}/${i} ${DOCSDIR}
+.endfor
+.endif
 	@${PERL} -pe 's|/usr/local|${PREFIX}|g' < ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -ruN ddclient.orig/distinfo ddclient/distinfo
--- ddclient.orig/distinfo	Wed Nov 24 19:25:11 2004
+++ ddclient/distinfo	Wed Nov 24 19:26:27 2004
@@ -1,2 +1,2 @@
-MD5 (ddclient-3.6.4.tar.gz) = 3f360240cdd8675a5f3d956eb9ee4d78
-SIZE (ddclient-3.6.4.tar.gz) = 35460
+MD5 (ddclient-3.6.5.tar.gz) = 37656c8becb08e375c91954c25786aef
+SIZE (ddclient-3.6.5.tar.gz) = 35726
diff -ruN ddclient.orig/files/ddclient.sh ddclient/files/ddclient.sh
--- ddclient.orig/files/ddclient.sh	Wed Nov 24 19:25:10 2004
+++ ddclient/files/ddclient.sh	Wed Nov 24 20:29:08 2004
@@ -5,10 +5,10 @@
 
 # PROVIDE: ddclient
 # REQUIRE: LOGIN
-# KEYWORD: FreeBSD shutdown
+# KEYWORD: shutdown
 
 #
-# Add the following lines to /etc/rc.conf to enable ddclient:
+# Add the following line to /etc/rc.conf to enable ddclient:
 #
 #ddclient_enable="YES"
 #
diff -ruN ddclient.orig/pkg-plist ddclient/pkg-plist
--- ddclient.orig/pkg-plist	Wed Nov 24 19:25:11 2004
+++ ddclient/pkg-plist	Thu Jan  1 01:00:00 1970
@@ -1,12 +0,0 @@
-etc/ddclient.conf.sample
-etc/rc.d/ddclient.sh
-sbin/ddclient
-share/ddclient/COPYING
-share/ddclient/COPYRIGHT
-share/ddclient/README
-share/ddclient/README.cisco
-share/ddclient/sample-etc_cron.d_ddclient
-share/ddclient/sample-etc_dhclient-exit-hooks
-share/ddclient/sample-etc_dhcpc_dhcpcd-eth0.exe
-share/ddclient/sample-etc_ppp_ip-up.local
-@dirrm share/ddclient
--- ddclient3.diff ends here ---



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Sat Nov 27 05:52:17 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74334 
>Unformatted:
