aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dns/ddclient/Makefile15
-rw-r--r--dns/ddclient/distinfo4
-rw-r--r--dns/ddclient/files/ddclient.sh27
-rw-r--r--dns/ddclient/files/ddclient.sh.sample19
-rw-r--r--dns/ddclient/files/patch-aa14
-rw-r--r--dns/ddclient/files/patch-ab20
-rw-r--r--dns/ddclient/pkg-descr2
-rw-r--r--dns/ddclient/pkg-message8
-rw-r--r--dns/ddclient/pkg-plist2
9 files changed, 61 insertions, 50 deletions
diff --git a/dns/ddclient/Makefile b/dns/ddclient/Makefile
index 9a8dec1da76e..1a4fd2ccbe72 100644
--- a/dns/ddclient/Makefile
+++ b/dns/ddclient/Makefile
@@ -6,16 +6,20 @@
#
PORTNAME= ddclient
-PORTVERSION= 3.6.3
+PORTVERSION= 3.6.4
CATEGORIES= dns
-MASTER_SITES= http://members.rogers.com/ddclient/pub/
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ddclient
+DISTNAME= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= radek@raadradd.com
COMMENT= Update dynamic DNS entries
USE_PERL5= yes
NO_BUILD= yes
+USE_RC_SUBR= yes
+
do-install:
@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g; s|%%PERL%%|${PERL}|g' ${WRKSRC}/ddclient
@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin
@@ -27,8 +31,9 @@ do-install:
@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' < ${WRKSRC}/$i > ${WRKDIR}/$i
@${INSTALL_DATA} ${WRKDIR}/$i ${PREFIX}/share/ddclient
.endfor
- @${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' < ${FILESDIR}/ddclient.sh.sample > ${WRKDIR}/ddclient.sh.sample
- @${INSTALL_SCRIPT} ${WRKDIR}/ddclient.sh.sample ${PREFIX}/etc/rc.d
+ @${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g; s|%%RC_SUBR%%|${RC_SUBR}|g' \
+ < ${FILESDIR}/ddclient.sh > ${WRKDIR}/ddclient.sh
+ @${INSTALL_SCRIPT} ${WRKDIR}/ddclient.sh ${PREFIX}/etc/rc.d/
@${PERL} -pe 's|/usr/local|${PREFIX}|g' < ${PKGMESSAGE}
diff --git a/dns/ddclient/distinfo b/dns/ddclient/distinfo
index 98ac152f40e5..1cf2046afe8b 100644
--- a/dns/ddclient/distinfo
+++ b/dns/ddclient/distinfo
@@ -1,2 +1,2 @@
-MD5 (ddclient-3.6.3.tar.gz) = dfa5ff6967cb854de804d4e7b9633fdc
-SIZE (ddclient-3.6.3.tar.gz) = 34497
+MD5 (ddclient.tar.gz) = e4c9753dc61f3622b166cf914b12acd3
+SIZE (ddclient.tar.gz) = 35633
diff --git a/dns/ddclient/files/ddclient.sh b/dns/ddclient/files/ddclient.sh
new file mode 100644
index 000000000000..ff8d78ddc20f
--- /dev/null
+++ b/dns/ddclient/files/ddclient.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: ddclient
+# REQUIRE: LOGIN
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines 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 --git a/dns/ddclient/files/ddclient.sh.sample b/dns/ddclient/files/ddclient.sh.sample
deleted file mode 100644
index 7ee5f70dd1ad..000000000000
--- a/dns/ddclient/files/ddclient.sh.sample
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-case "$1" in
- start)
- if [ -x %%PREFIX%%/sbin/ddclient ]; then
- %%PREFIX%%/sbin/ddclient -daemon 300 && echo -n ' ddclient'
- fi
- ;;
- stop)
- /bin/kill `cat /var/run/ddclient.pid`
- echo -n ' ddclient'
- ;;
- *)
- echo ""
- echo "Usage: `basename $0` { start | stop }"
- echo ""
- exit 64
- ;;
-esac
diff --git a/dns/ddclient/files/patch-aa b/dns/ddclient/files/patch-aa
index b056bf8db657..3a4d900b38e5 100644
--- a/dns/ddclient/files/patch-aa
+++ b/dns/ddclient/files/patch-aa
@@ -1,29 +1,29 @@
---- ddclient.orig Sat Aug 25 17:17:28 2001
-+++ ddclient Sun Aug 26 19:52:01 2001
+--- 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: /home/paul/src/ddclient/RCS/ddclient,v 3.5 2001/08/25 14:22:00 root Exp $
+ # $Header: /cvsroot/ddclient/ddclient/ddclient,v 1.5 2004/10/17 21:31:31 wimpunk Exp $
#
-@@ -20,8 +19,8 @@
+@@ -21,8 +20,8 @@
$program =~ s/d$//;
my $now = time;
my $hostname = hostname();
--my $etc = ($program =~ /test/i) ? './' : '/etc/';
+-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 = '';
-@@ -29,7 +28,7 @@
+@@ -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";
++$ENV{'PATH'} = (exists($ENV{PATH}) ? "$ENV{PATH}:" : "") . "/sbin:/usr/sbin:/bin:/usr/bin:";
sub T_ANY {'any'};
sub T_STRING {'string'};
diff --git a/dns/ddclient/files/patch-ab b/dns/ddclient/files/patch-ab
index 70b376a45b90..ede989357d7d 100644
--- a/dns/ddclient/files/patch-ab
+++ b/dns/ddclient/files/patch-ab
@@ -1,5 +1,5 @@
---- sample-etc_cron.d_ddclient.orig Sun Jun 15 03:39:16 2003
-+++ sample-etc_cron.d_ddclient Thu Aug 7 14:31:15 2003
+--- 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)
@@ -11,11 +11,11 @@
##
-##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 Jun 15 03:39:16 2003
-+++ sample-etc_dhclient-exit-hooks Thu Aug 7 14:38:38 2003
+--- 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: /home/paul/src/ddclient/RCS/sample-etc_dhclient-exit-hooks,v 1.1 2002/11/03 20:20:16 root Exp $
+ ## $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
@@ -26,19 +26,19 @@
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 Jun 15 03:39:16 2003
-+++ sample-etc_dhcpc_dhcpcd-eth0.exe Thu Aug 7 14:33:00 2003
+--- 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: /home/paul/src/ddclient/RCS/sample-etc_dhcpc_dhcpcd-eth0.exe,v 3.6 2002/11/03 20:20:16 root Exp $
+ ## $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 Jun 15 03:39:16 2003
-+++ sample-etc_ppp_ip-up.local Thu Aug 7 14:33:32 2003
+--- 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.
##
diff --git a/dns/ddclient/pkg-descr b/dns/ddclient/pkg-descr
index efddd008704b..36dfdf9be7d6 100644
--- a/dns/ddclient/pkg-descr
+++ b/dns/ddclient/pkg-descr
@@ -1,4 +1,4 @@
ddclient is a Perl client used to update dynamic DNS entries for
accounts on many dynamic DNS services.
-WWW: http://members.rogers.com/ddclient/pub/
+WWW: http://ddclient.sourceforge.net/
diff --git a/dns/ddclient/pkg-message b/dns/ddclient/pkg-message
index a024f33a9649..a63657022697 100644
--- a/dns/ddclient/pkg-message
+++ b/dns/ddclient/pkg-message
@@ -8,12 +8,10 @@ to
and edit it to fit your needs.
-If you would like to run ddclient as a daemon consider
-copying
+If you would like to run ddclient as a daemon add the
+following line to /etc/rc.conf
- /usr/local/etc/rc.d/ddclient.sh.sample
-to
- /usr/local/etc/rc.d/ddclient.sh
+ ddclient_enable="YES"
***********************************************************
diff --git a/dns/ddclient/pkg-plist b/dns/ddclient/pkg-plist
index d94a95d99a41..7b2f0da17451 100644
--- a/dns/ddclient/pkg-plist
+++ b/dns/ddclient/pkg-plist
@@ -1,5 +1,5 @@
etc/ddclient.conf.sample
-etc/rc.d/ddclient.sh.sample
+etc/rc.d/ddclient.sh
sbin/ddclient
share/ddclient/COPYING
share/ddclient/COPYRIGHT