aboutsummaryrefslogtreecommitdiffstats
path: root/dns/ddclient/files
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2001-08-27 00:07:09 +0800
committerdirk <dirk@FreeBSD.org>2001-08-27 00:07:09 +0800
commit34504510c8c16901f86625a1936171d8f191937a (patch)
treefd37ce72914d44c1ba57ab6d5e1f7a745fa33d09 /dns/ddclient/files
parentde151258a0922571f32a3bbd428314e7856c6c5f (diff)
downloadfreebsd-ports-gnome-34504510c8c16901f86625a1936171d8f191937a.tar.gz
freebsd-ports-gnome-34504510c8c16901f86625a1936171d8f191937a.tar.zst
freebsd-ports-gnome-34504510c8c16901f86625a1936171d8f191937a.zip
Add ddclient - a perl client used to update dynamic DNS entries for
accounts on many dynamic DNS services. WWW: http://burry.ca:4141/ddclient/
Diffstat (limited to 'dns/ddclient/files')
-rw-r--r--dns/ddclient/files/ddclient.sh.sample18
-rw-r--r--dns/ddclient/files/patch-aa25
2 files changed, 43 insertions, 0 deletions
diff --git a/dns/ddclient/files/ddclient.sh.sample b/dns/ddclient/files/ddclient.sh.sample
new file mode 100644
index 000000000000..7d849d315d7b
--- /dev/null
+++ b/dns/ddclient/files/ddclient.sh.sample
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ if [ -x %%PREFIX%%/sbin/ddclient ]; then
+ %%PREFIX%%/sbin/ddclient -daemon 300 && echo -n ' ddclient'
+ fi
+ ;;
+ stop)
+ /usr/bin/killall ddclient
+ 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
new file mode 100644
index 000000000000..fdf4b1f30fcb
--- /dev/null
+++ b/dns/ddclient/files/patch-aa
@@ -0,0 +1,25 @@
+--- ddclient.orig Sun Jul 22 23:23:11 2001
++++ ddclient Sun Aug 26 14:56:45 2001
+@@ -1,5 +1,4 @@
+-#!/usr/bin/perl -w
+-#!/usr/local/bin/perl -w
++#!%%PERL%% -w
+ ######################################################################
+ # $Header: /home/paul/src/ddclient/RCS/ddclient,v 1.91 2001/07/22 21:01:33 root Exp $
+ #
+@@ -20,12 +19,12 @@
+ $program =~ s/d$//;
+ my $now = time;
+ my $hostname = hostname();
+-my $etc = ($program =~ /test/i) ? './' : '/etc/';
+-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 = '';
+
+-$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'};