diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-10-28 00:04:57 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-10-28 00:04:57 +0000 |
commit | f3a0d1bb65756f7d8a4c6107804e3ccfb18819f6 (patch) | |
tree | 67bd3022d5ab7d2d41e12a9c48541e0fa8cf37a1 /dns/ddclient/files | |
parent | b41537ea0defb85def1cf1a64f435343f7708257 (diff) | |
download | ports-f3a0d1bb65756f7d8a4c6107804e3ccfb18819f6.tar.gz ports-f3a0d1bb65756f7d8a4c6107804e3ccfb18819f6.zip |
Notes
Diffstat (limited to 'dns/ddclient/files')
-rw-r--r-- | dns/ddclient/files/ddclient.sh | 27 | ||||
-rw-r--r-- | dns/ddclient/files/ddclient.sh.sample | 19 | ||||
-rw-r--r-- | dns/ddclient/files/patch-aa | 14 | ||||
-rw-r--r-- | dns/ddclient/files/patch-ab | 20 |
4 files changed, 44 insertions, 36 deletions
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. ## |