ports/96667: update dns/ddclient to 3.6.7

Andrew Pantyukhin infofarmer at gmail.com
Tue May 2 15:20:15 UTC 2006


>Number:         96667
>Category:       ports
>Synopsis:       update dns/ddclient to 3.6.7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 02 15:20:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Pantyukhin
>Release:        FreeBSD 6.1-RC i386
>Organization:
>Environment:
System: FreeBSD thror.intranet.gubkin.ru 6.1-RC FreeBSD 6.1-RC #8: Mon Apr 10 16:20:57 MSD 2006 sat at thror.intranet.gubkin.ru:/usr/obj/usr/src/sys/SATH i386


	
>Description:
o Update to 3.6.7
o Rework build without perl
o Rework patching
o Use RC_SUBR
	
>How-To-Repeat:
	
>Fix:

	

--- ddclient.diff begins here ---
diff -urN /usr/ports/dns/ddclient/Makefile ddclient/Makefile
--- /usr/ports/dns/ddclient/Makefile	Tue Apr  5 21:03:40 2005
+++ ddclient/Makefile	Tue May  2 19:11:11 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	ddclient
-PORTVERSION=	3.6.6
+PORTVERSION=	3.6.7
 CATEGORIES=	dns
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,37 +15,30 @@
 COMMENT=	Update dynamic DNS entries
 
 USE_BZIP2=	yes
-USE_PERL5=	yes
+USE_PERL5_RUN=	yes
 NO_BUILD=	yes
-USE_RC_SUBR=	yes
+USE_RC_SUBR=	${PORTNAME}
 
-PLIST_FILES=    etc/ddclient.conf.sample \
-		etc/rc.d/ddclient.sh \
-		sbin/ddclient
+SUB_FILES=	pkg-message
+PKGMESSAGE=	${WRKDIR}/pkg-message
+PLIST_FILES=	etc/ddclient.conf.sample 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
+	@${GREP} -lr '/usr' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g'
+	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
+		-e 's|/usr.*perl|${PERL}|g' ${WRKSRC}/ddclient
 
 do-install:
-	@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g; s|%%PERL%%|${PERL}|g' ${WRKSRC}/ddclient
-	@${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:
+	@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin/
 .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
+	@${INSTALL} -d ${DOCSDIR}
+	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
 .endif
-	@${PERL} -pe 's|/usr/local|${PREFIX}|g' < ${PKGMESSAGE}
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -urN /usr/ports/dns/ddclient/distinfo ddclient/distinfo
--- /usr/ports/dns/ddclient/distinfo	Sun Jan 22 11:31:38 2006
+++ ddclient/distinfo	Tue May  2 18:37:36 2006
@@ -1,3 +1,3 @@
-MD5 (ddclient-3.6.6.tar.bz2) = 5fd0f82446fbed857c841a4deb83cdb9
-SHA256 (ddclient-3.6.6.tar.bz2) = 70ede28229ec944634ac67734e37d04c47e0df38b376a2478089c21b0005bb2d
-SIZE (ddclient-3.6.6.tar.bz2) = 34009
+MD5 (ddclient-3.6.7.tar.bz2) = b07a29a891dcf40b941b9bc5ef3ce598
+SHA256 (ddclient-3.6.7.tar.bz2) = d8b6a1b23cd8ef46ae3a5060e98f31f1f439c688e3fd3e16badf97e7763eba67
+SIZE (ddclient-3.6.7.tar.bz2) = 35040
diff -urN /usr/ports/dns/ddclient/files/ddclient.in ddclient/files/ddclient.in
--- /usr/ports/dns/ddclient/files/ddclient.in	Thu Jan  1 03:00:00 1970
+++ ddclient/files/ddclient.in	Tue May  2 18:50:51 2006
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/dns/ddclient/files/ddclient.sh,v 1.2 2004/11/27 05:52:15 edwin Exp $
+#
+
+# PROVIDE: ddclient
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable ddclient:
+#
+#ddclient_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name="ddclient"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/sbin/${name}"
+required_files="%%PREFIX%%/etc/${name}.conf"
+
+load_rc_config ${name}
+: ${ddclient_enable="NO"}
+: ${ddclient_flags="-daemon 300"}
+
+run_rc_command "$1"
diff -urN /usr/ports/dns/ddclient/files/ddclient.sh ddclient/files/ddclient.sh
--- /usr/ports/dns/ddclient/files/ddclient.sh	Sat Nov 27 08:52:15 2004
+++ ddclient/files/ddclient.sh	Thu Jan  1 03:00:00 1970
@@ -1,27 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: ports/dns/ddclient/files/ddclient.sh,v 1.2 2004/11/27 05:52:15 edwin Exp $
-#
-
-# PROVIDE: ddclient
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-
-#
-# Add the following line to /etc/rc.conf to enable ddclient:
-#
-#ddclient_enable="YES"
-#
-ddclient_enable=${ddclient_enable-"NO"}
-ddclient_flags=${ddclient_flags-"-daemon 300"}
-
-. %%RC_SUBR%%
-
-name="ddclient"
-rcvar=`set_rcvar`
-command="%%PREFIX%%/sbin/${name}"
-required_files="%%PREFIX%%/etc/${name}.conf"
-
-load_rc_config ${name}
-
-run_rc_command "$1"
diff -urN /usr/ports/dns/ddclient/files/patch-aa ddclient/files/patch-aa
--- /usr/ports/dns/ddclient/files/patch-aa	Thu Oct 28 04:04:57 2004
+++ ddclient/files/patch-aa	Thu Jan  1 03:00:00 1970
@@ -1,29 +0,0 @@
---- ddclient.orig	Sun Oct 24 03:45:24 2004
-+++ ddclient	Sun Oct 24 03:47:57 2004
-@@ -1,5 +1,4 @@
--#!/usr/bin/perl -w
--#!/usr/local/bin/perl -w
-+#!%%PERL%% -w
- ######################################################################
- # $Header: /cvsroot/ddclient/ddclient/ddclient,v 1.5 2004/10/17 21:31:31 wimpunk Exp $
- #
-@@ -21,8 +20,8 @@
- $program  =~ s/d$//;
- my $now       = time;
- my $hostname  = hostname();
--my $etc       = ($program =~ /test/i) ? './'   : '/etc/ddclient/';
--my $savedir   = ($program =~ /test/i) ? 'URL/' : '/tmp/';
-+my $etc       = '%%PREFIX%%/etc/';
-+my $savedir   = (exists($ENV{TMPDIR}) ? "$ENV{TMPDIR}/" : "/var/tmp/");
- my $msgs      = '';
- my $last_msgs = '';
- 
-@@ -30,7 +29,7 @@
- local $file   = '';
- local $lineno = '';
- 
--$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:/etc:/usr/lib:";
-+$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:";
- 
- sub T_ANY	{'any'};
- sub T_STRING	{'string'};
diff -urN /usr/ports/dns/ddclient/files/patch-ab ddclient/files/patch-ab
--- /usr/ports/dns/ddclient/files/patch-ab	Thu Oct 28 04:04:57 2004
+++ ddclient/files/patch-ab	Thu Jan  1 03:00:00 1970
@@ -1,50 +0,0 @@
---- sample-etc_cron.d_ddclient.orig	Sun Oct 24 03:48:56 2004
-+++ sample-etc_cron.d_ddclient	Sun Oct 24 03:49:48 2004
-@@ -10,8 +10,8 @@
- ######################################################################
- ## force an update twice a month (only if you are not using daemon-mode)
- ##
--## 30 23 1,15 * *	root    /usr/sbin/ddclient -daemon=0 -syslog -quiet -force
-+## 30 23 1,15 * *	root    %%PREFIX%%/sbin/ddclient -daemon=0 -syslog -quiet -force
- ######################################################################
- ## retry failed updates every hour (only if you are not using daemon-mode)
- ##
--##0 * * * *	root    /usr/sbin/ddclient -daemon=0 -syslog -quiet retry
-+##0 * * * *	root    %%PREFIX%%/sbin/ddclient -daemon=0 -syslog -quiet retry
---- sample-etc_dhclient-exit-hooks.orig	Sun Oct 24 03:51:37 2004
-+++ sample-etc_dhclient-exit-hooks	Sun Oct 24 03:52:20 2004
-@@ -2,10 +2,10 @@
- ######################################################################
- ## $Header: /cvsroot/ddclient/ddclient/sample-etc_dhclient-exit-hooks,v 1.1.1.1 2004/08/13 22:29:17 wimpunk Exp $
- ######################################################################
--# The /etc/dhclient-enter-hooks script is run by the ISC DHCP client's standard
-+# The /etc/dhclient-exit-hooks script is run by the ISC DHCP client's standard
- # update script whenever dhclient obtains or renews an address. 
- 
--PATH=/usr/sbin:${PATH}
-+PATH=%%PREFIX%%/sbin:${PATH}
- case "$new_ip_address" in
- 10.*)   	;;
- 172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*)	;;
---- sample-etc_dhcpc_dhcpcd-eth0.exe.orig	Sun Oct 24 03:52:38 2004
-+++ sample-etc_dhcpc_dhcpcd-eth0.exe	Sun Oct 24 03:52:58 2004
-@@ -2,7 +2,7 @@
- ######################################################################
- ## $Header: /cvsroot/ddclient/ddclient/sample-etc_dhcpc_dhcpcd-eth0.exe,v 1.1 2004/10/07 19:19:37 wimpunk Exp $
- ######################################################################
--PATH=/usr/sbin:${PATH}
-+PATH=%%PREFIX%%/sbin:${PATH}
- 
- ## update the DNS server unless the IP address is a private address
- ## that may be used as a internal LAN address. This may be true if
---- sample-etc_ppp_ip-up.local.orig	Sun Oct 24 03:53:15 2004
-+++ sample-etc_ppp_ip-up.local	Sun Oct 24 03:54:06 2004
-@@ -16,7 +16,7 @@
- ## in the environment as either PPP_LOCAL or IPLOCAL.
- ##
- ######################################################################
--PATH=/usr/sbin:${PATH}
-+PATH=%%PREFIX%%/sbin:${PATH}
- IP=
- IP=${IP:-$PPP_LOCAL}
- IP=${IP:-$IPLOCAL}
diff -urN /usr/ports/dns/ddclient/files/patch-ddclient ddclient/files/patch-ddclient
--- /usr/ports/dns/ddclient/files/patch-ddclient	Thu Jan  1 03:00:00 1970
+++ ddclient/files/patch-ddclient	Tue May  2 18:57:04 2006
@@ -0,0 +1,22 @@
+--- ./ddclient.orig	Sun Dec 18 18:03:42 2005
++++ ./ddclient	Tue May  2 18:38:16 2006
+@@ -21,8 +20,8 @@
+ $program  =~ s/d$//;
+ my $now       = time;
+ my $hostname  = hostname();
+-my $etc       = ($program =~ /test/i) ? './'   : '/etc/ddclient/';
+-my $savedir   = ($program =~ /test/i) ? 'URL/' : '/tmp/';
++my $etc       = '%%PREFIX%%/etc/';
++my $savedir   = (exists($ENV{TMPDIR}) ? "$ENV{TMPDIR}/" : "/var/tmp/");
+ my $msgs      = '';
+ my $last_msgs = '';
+ 
+@@ -30,7 +29,7 @@
+ local $file   = '';
+ local $lineno = '';
+ 
+-$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:/etc:/usr/lib:";
++$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:";
+ 
+ sub T_ANY	{'any'};
+ sub T_STRING	{'string'};
diff -urN /usr/ports/dns/ddclient/files/pkg-message.in ddclient/files/pkg-message.in
--- /usr/ports/dns/ddclient/files/pkg-message.in	Thu Jan  1 03:00:00 1970
+++ ddclient/files/pkg-message.in	Tue May  2 18:48:50 2006
@@ -0,0 +1,17 @@
+
+***********************************************************
+Copy
+
+	%%PREFIX%%/etc/ddclient.conf.sample
+to
+	%%PREFIX%%/etc/ddclient.conf
+
+and edit it to fit your needs.
+
+If you would like to run ddclient as a daemon add the
+following line to /etc/rc.conf
+
+	ddclient_enable="YES"
+
+***********************************************************
+
diff -urN /usr/ports/dns/ddclient/pkg-message ddclient/pkg-message
--- /usr/ports/dns/ddclient/pkg-message	Thu Oct 28 04:04:57 2004
+++ ddclient/pkg-message	Thu Jan  1 03:00:00 1970
@@ -1,17 +0,0 @@
-
-***********************************************************
-Copy
-
-	/usr/local/etc/ddclient.conf.sample
-to
-	/usr/local/etc/ddclient.conf
-
-and edit it to fit your needs.
-
-If you would like to run ddclient as a daemon add the
-following line to /etc/rc.conf
-
-	ddclient_enable="YES"
-
-***********************************************************
-
--- ddclient.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list