diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2005-04-01 22:20:38 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2005-04-01 22:20:38 +0000 |
commit | 013736f71b77a9a134e79292270989d2f96647fb (patch) | |
tree | 05205a0618c9d07b30a703a3a54e7ad582510eae /net-dns/ddclient/files | |
parent | Stable on ppc. (diff) | |
download | gentoo-2-013736f71b77a9a134e79292270989d2f96647fb.tar.gz gentoo-2-013736f71b77a9a134e79292270989d2f96647fb.tar.bz2 gentoo-2-013736f71b77a9a134e79292270989d2f96647fb.zip |
Get rid of some crufy diffs in files/ -- the changes across the versioned diffs were not real changes, and so the diffs are shared now. Additionally, with this version bump is a new initscript to take advantage of the chuid argument to start-stop-daemon so that ddclient runs as the ddclient user, rather than root.
(Portage version: 1.585-cvs)
Diffstat (limited to 'net-dns/ddclient/files')
-rw-r--r-- | net-dns/ddclient/files/ddclient-3.6.2-gentoo.diff | 11 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient-daemon0inconfig.diff | 15 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient-gentoo.diff (renamed from net-dns/ddclient/files/ddclient-3.6.3-gentoo.diff) | 0 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient-mss1.diff (renamed from net-dns/ddclient/files/ddclient-3.6.3-mss1.diff) | 0 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.init | 30 | ||||
-rw-r--r-- | net-dns/ddclient/files/digest-ddclient-3.6.6 | 1 |
6 files changed, 46 insertions, 11 deletions
diff --git a/net-dns/ddclient/files/ddclient-3.6.2-gentoo.diff b/net-dns/ddclient/files/ddclient-3.6.2-gentoo.diff deleted file mode 100644 index 8b5c383a0fa9..000000000000 --- a/net-dns/ddclient/files/ddclient-3.6.2-gentoo.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- ddclient-3.6.2/ddclient~ Mon Jul 2 18:18:12 2001 -+++ ddclient-3.6.2/ddclient Mon Jul 9 16:52:02 2001 -@@ -20,7 +20,7 @@ - $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 $msgs = ''; - my $last_msgs = ''; diff --git a/net-dns/ddclient/files/ddclient-daemon0inconfig.diff b/net-dns/ddclient/files/ddclient-daemon0inconfig.diff new file mode 100644 index 000000000000..732a6e9362d4 --- /dev/null +++ b/net-dns/ddclient/files/ddclient-daemon0inconfig.diff @@ -0,0 +1,15 @@ +--- ddclient.orig 2005-01-16 15:18:36.485003496 -0500 ++++ ddclient 2005-01-16 15:19:15.628052848 -0500 +@@ -924,6 +924,12 @@ + my $def = $variables{'merged'}{$k}; + my $ovalue = define($globals{$k}, $def->{'default'}); + my $value = check_value($ovalue, $def); ++ ++ # we should really be allowed to set daemon to 0 in the config file ++ if ($k eq 'daemon' && $ovalue == 0) { ++ $value = $ovalue; ++ } ++ + if ($def->{'required'} && !defined $value) { + $value = default($k); + warning("'%s=%s' is an invalid %s. (using default of %s)", $k, $ovalue, $def->{'type'}, $value); diff --git a/net-dns/ddclient/files/ddclient-3.6.3-gentoo.diff b/net-dns/ddclient/files/ddclient-gentoo.diff index 01f224ce9850..01f224ce9850 100644 --- a/net-dns/ddclient/files/ddclient-3.6.3-gentoo.diff +++ b/net-dns/ddclient/files/ddclient-gentoo.diff diff --git a/net-dns/ddclient/files/ddclient-3.6.3-mss1.diff b/net-dns/ddclient/files/ddclient-mss1.diff index 27ca8b143e29..27ca8b143e29 100644 --- a/net-dns/ddclient/files/ddclient-3.6.3-mss1.diff +++ b/net-dns/ddclient/files/ddclient-mss1.diff diff --git a/net-dns/ddclient/files/ddclient.init b/net-dns/ddclient/files/ddclient.init new file mode 100644 index 000000000000..6af552acef32 --- /dev/null +++ b/net-dns/ddclient/files/ddclient.init @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/files/ddclient.init,v 1.1 2005/04/01 22:20:38 seemant Exp $ + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/ddclient/ddclient.conf ] ; then + eerror "You need a /etc/ddclient/ddclient.conf file to run ddclient" + eerror "There is a sample file in /etc/ddclient/" + return 1 + fi + +} + +start() { + checkconfig || return 1 + ebegin "Starting DDClient" + start-stop-daemon --start --chuid ddclient --quiet --exec /usr/sbin/ddclient 2&>/dev/null + eend $? +} + +stop() { + ebegin "Stopping DDClient" + start-stop-daemon --stop --quiet --name ddclient + eend $? +} diff --git a/net-dns/ddclient/files/digest-ddclient-3.6.6 b/net-dns/ddclient/files/digest-ddclient-3.6.6 new file mode 100644 index 000000000000..2bcb01da561b --- /dev/null +++ b/net-dns/ddclient/files/digest-ddclient-3.6.6 @@ -0,0 +1 @@ +MD5 9bdc93c0352c5fcc650773da7ecedb6d ddclient-3.6.6.tar.gz 36726 |