Hello community, here is the log from the commit of package ddclient checked in at Mon Feb 12 16:18:43 CET 2007. -------- --- ddclient/ddclient.changes 2007-01-08 12:31:38.000000000 +0100 +++ /mounts/work_src_done/STABLE/ddclient/ddclient.changes 2007-02-12 16:11:35.505241000 +0100 @@ -1,0 +2,31 @@ +Mon Feb 12 16:11:18 CET 2007 - kssingvo@suse.de + +- update to version 3.7.1: + * URL of zoneedit has changed (see bug #1558483) + * Added initscript for Ubuntu (posted by Paolo Martinelli) + * Added patch "Patch: Treat --daemon values as intervals" + (submitted by James deBoer) + * Don't send any mail when in not running daemon mode (patch + submitted by Daniel Thaler) + * Changed Changelog syntax + * Applied patches submitted by Torsten: + abuse_msg.diff: ddclient still reports the email to contact + dyndns.org but they prefer a web form today (IIRC). This patch + adjusts the abuse warning printed by ddclient. + cachedir.diff: Original ddclient stores a cache file in /etc + which would belong in /var/cache in my opinion and according + to the FHS. + help_nonroot.diff: Allow calling the help function as non-root. + update-new-config.patch: Force update if config has changed + smc-barricade-7401bra.patch: Support for SMC Barricade 7401BRA + FW firewall + cisco_fw.diff: Use configured hostname for firewall access with + -use=cisco (closes: #345712). Thanks to Per Carlson for the + patch! See http://bugs.debian.org/345712. + maxinterval.diff: Increase max interval for updates. + See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=129370 + http://www.dyndns.com/support/services/dyndns/faq.html#q15 +- added Suggests: for perl-IO-SSL-Socket (bugzilla#232005) +- adapted /etc config patch to new version + +------------------------------------------------------------------- Old: ---- ddclient-3.6.5-config.patch ddclient-3.7.0.tar.bz2 New: ---- ddclient-3.7.1-config.patch ddclient-3.7.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ddclient.spec ++++++ --- /var/tmp/diff_new_pack.b24650/_old 2007-02-12 16:18:30.000000000 +0100 +++ /var/tmp/diff_new_pack.b24650/_new 2007-02-12 16:18:30.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package ddclient (Version 3.7.0) +# spec file for package ddclient (Version 3.7.1) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -14,16 +14,17 @@ License: GNU General Public License (GPL) Group: Productivity/Networking/DNS/Utilities Requires: perl >= 5.004 +Suggests: perl-IO-Socket-SSL Autoreqprov: on -Version: 3.7.0 -Release: 24 +Version: 3.7.1 +Release: 1 URL: http://ddclient.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: A Perl Client to Update Dynamic DNS Entries Source0: http://switch.dl.sourceforge.net/sourceforge/ddclient/%{name}-%{version}.tar.bz2 Source1: rc.ddclient Patch0: ddclient-3.6.3-config.patch -Patch1: ddclient-3.6.5-config.patch +Patch1: ddclient-3.7.1-config.patch %description ddclient is a small full-featured client requiring only Perl. Supported @@ -94,6 +95,34 @@ %doc COPY* README* sample* %changelog -n ddclient +* Mon Feb 12 2007 - kssingvo@suse.de +- update to version 3.7.1: + * URL of zoneedit has changed (see bug #1558483) + * Added initscript for Ubuntu (posted by Paolo Martinelli) + * Added patch "Patch: Treat --daemon values as intervals" + (submitted by James deBoer) + * Don't send any mail when in not running daemon mode (patch + submitted by Daniel Thaler) + * Changed Changelog syntax + * Applied patches submitted by Torsten: + abuse_msg.diff: ddclient still reports the email to contact + dyndns.org but they prefer a web form today (IIRC). This patch + adjusts the abuse warning printed by ddclient. + cachedir.diff: Original ddclient stores a cache file in /etc + which would belong in /var/cache in my opinion and according + to the FHS. + help_nonroot.diff: Allow calling the help function as non-root. + update-new-config.patch: Force update if config has changed + smc-barricade-7401bra.patch: Support for SMC Barricade 7401BRA + FW firewall + cisco_fw.diff: Use configured hostname for firewall access with + -use=cisco (closes: #345712). Thanks to Per Carlson for the + patch! See http://bugs.debian.org/345712. + maxinterval.diff: Increase max interval for updates. + See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=129370 + http://www.dyndns.com/support/services/dyndns/faq.html#q15 +- added Suggests: for perl-IO-SSL-Socket (bugzilla#232005) +- adapted /etc config patch to new version * Mon Jan 08 2007 - kssingvo@suse.de - fixed checkproc in init script (bugzilla#229460) * Wed Sep 20 2006 - kssingvo@suse.de ++++++ ddclient-3.6.5-config.patch -> ddclient-3.7.1-config.patch ++++++ --- ddclient/ddclient-3.6.5-config.patch 2005-03-29 14:15:14.000000000 +0200 +++ /mounts/work_src_done/STABLE/ddclient/ddclient-3.7.1-config.patch 2007-02-12 16:10:32.785024000 +0100 @@ -1,11 +1,11 @@ ---- ddclient-3.6.5/ddclient.orig 2004-11-24 17:23:55.000000000 +0100 -+++ ddclient-3.6.5/ddclient 2005-03-29 14:13:16.000000000 +0200 +--- ddclient-3.7.1/ddclient.orig 2007-01-25 16:42:22.000000000 +0100 ++++ ddclient-3.7.1/ddclient 2007-02-12 16:09:53.000000000 +0100 @@ -21,7 +21,7 @@ $program =~ s/d$//; my $now = time; my $hostname = hostname(); -my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/'; +my $etc = ($program =~ /test/i) ? './' : '/etc/'; + my $cachedir = ($program =~ /test/i) ? './' : '/var/cache/ddclient/'; my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/'; my $msgs = ''; - my $last_msgs = ''; ++++++ ddclient-3.7.0.tar.bz2 -> ddclient-3.7.1.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/Changelog new/ddclient-3.7.1/Changelog --- old/ddclient-3.7.0/Changelog 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/Changelog 2007-01-25 16:42:22.000000000 +0100 @@ -1,6 +1,34 @@ Changelog -cvs +3.7.1 + * URL of zoneedit has changed (see bug #1558483) + * Added initscript for Ubuntu (posted by Paolo Martinelli) + * Added patch "Patch: Treat --daemon values as intervals" + (submitted by James deBoer) + * Don't send any mail when in not running daemon mode + (patch submitted by Daniel Thaler) + * Changed Changelog syntax + * Applied patches submitted by Torsten: + abuse_msg.diff: ddclient still reports the email to contact dyndns.org + but they prefer a web form today (IIRC). This patch adjusts the abuse + warning printed by ddclient. + cachedir.diff: Original ddclient stores a cache file in /etc which + would belong in /var/cache in my opinion and according to the FHS. + help_nonroot.diff: Allow calling the help function as non-root. + update-new-config.patch: Force update if config has changed + smc-barricade-7401bra.patch: Support for SMC Barricade 7401BRA FW + firewall + cisco_fw.diff: Use configured hostname for firewall access + with -use=cisco (closes: #345712). Thanks to Per Carlson for the + patch! See http://bugs.debian.org/345712. + maxinterval.diff: Increase max interval for updates. + See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=129370 + http://www.dyndns.com/support/services/dyndns/faq.html#q15 + * Changed max-interval to 25days. See + https://www.dyndns.com/services/dns/dyndns/faq.html + + +3.7.0 - Added vi tag - Added support for 2Wire 1701HG Gateway (see https://sourceforge.net/forum/message.php?msg_id=3496041 submitted by hemo) @@ -255,4 +283,5 @@ network connectivity problems or a DynDNS server outage ------------------------------------------------------------------------------- -$Id: Changelog 10 2006-06-14 19:59:31Z wimpunk $ +$Id: Changelog 40 2007-01-24 23:41:16Z wimpunk $ +------------------------------------------------------------------------ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/ddclient new/ddclient-3.7.1/ddclient --- old/ddclient-3.7.0/ddclient 2006-06-14 22:03:52.000000000 +0200 +++ new/ddclient-3.7.1/ddclient 2007-01-25 16:42:22.000000000 +0100 @@ -1,7 +1,7 @@ #!/usr/bin/perl -w #!/usr/local/bin/perl -w ###################################################################### -# $Id: ddclient 10 2006-06-14 19:59:31Z wimpunk $ +# $Id: ddclient 40 2007-01-24 23:41:16Z wimpunk $ # # DDCLIENT - a Perl client for updating DynDNS information # @@ -14,7 +14,7 @@ use Sys::Hostname; use IO::Socket; -my $version = "3.7.0"; +my $version = "3.7.1"; my $programd = $0; $programd =~ s%^.*/%%; my $program = $programd; @@ -22,6 +22,7 @@ my $now = time; my $hostname = hostname(); my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/'; +my $cachedir = ($program =~ /test/i) ? './' : '/var/cache/ddclient/'; my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/'; my $msgs = ''; my $last_msgs = ''; @@ -72,6 +73,11 @@ 'url' => '/status.htm', 'skip' => 'IP Address', }, + 'smc-barricade-7401bra' => { + 'name' => 'SMC Barricade 7401BRA FW', + 'url' => '/admin/wan1.htm', + 'skip' => 'IP Address', + }, 'netgear-rt3xx' => { 'name' => 'Netgear FW', 'url' => '/mtenSysStatus.html', @@ -296,7 +302,7 @@ 'global-defaults' => { 'daemon' => setv(T_DELAY, 0, 0, 1, 0, interval('60s')), 'file' => setv(T_FILE, 0, 0, 1, "$etc$program.conf", undef), - 'cache' => setv(T_FILE, 0, 0, 1, "$etc$program.cache", undef), + 'cache' => setv(T_FILE, 0, 0, 1, "$cachedir$program.cache", undef), 'pid' => setv(T_FILE, 0, 0, 1, "", undef), 'proxy' => setv(T_FQDNP, 0, 0, 1, '', undef), 'protocol' => setv(T_PROTO, 0, 0, 1, 'dyndns2', undef), @@ -346,7 +352,7 @@ 'atime' => setv(T_NUMBER, 0, 1, 0, 0, undef), 'status' => setv(T_ANY, 0, 1, 0, '', undef), 'min-interval' => setv(T_DELAY, 0, 0, 1, interval('30s'), 0), - 'max-interval' => setv(T_DELAY, 0, 0, 1, interval('15d'), 0), + 'max-interval' => setv(T_DELAY, 0, 0, 1, interval('25d'), 0), 'min-error-interval' => setv(T_DELAY, 0, 0, 1, interval('5m'), 0), 'warned-min-interval' => setv(T_ANY, 0, 1, 0, 0, undef), @@ -418,7 +424,7 @@ 'update' => \&nic_zoneedit1_update, 'examples' => \&nic_zoneedit1_examples, 'variables' => merge( - { 'server' => setv(T_FQDNP, 1, 0, 1, 'www.zoneedit.com', undef) }, + { 'server' => setv(T_FQDNP, 1, 0, 1, 'dynamic.zoneedit.com', undef) }, { 'min-interval' => setv(T_DELAY, 0, 0, 1, interval('5m'), 0),}, $variables{'service-common-defaults'}, ), @@ -542,6 +548,12 @@ test_geturl(opt('geturl')) if opt('geturl'); +## process help option +if (opt('help')) { + *STDERR = *STDOUT; + usage(0); +} + ## read config file because 'daemon' mode may be defined there. read_config(define($opt{'file'}, default('file')), \%config, \%globals); init_config(); @@ -593,7 +605,7 @@ usage("invalid argument '-use %s'; possible values are:\n%s", $opt{'use'}, join("\n",ip_strategies_usage())) unless exists $ip_strategies{lc opt('use')}; - $daemon = define($opt{'daemon'}, $globals{'daemon'}); + $daemon = $opt{'daemon'}; $daemon = 0 if opt('force'); ## obtain the IP address to use. @@ -979,9 +991,13 @@ $opt{'min-error-interval'} = max(interval(opt('min-error-interval')), interval(default('min-error-interval'))); $opt{'timeout'} = 0 if opt('timeout') < 0; - $opt{'daemon'} = minimum('daemon') - if define($opt{'daemon'},$globals{'daemon'},0) - && define($opt{'daemon'},$globals{'daemon'}) < minimum('daemon'); + + ## only set $opt{'daemon'} if it has been explicitly passed in + if (define($opt{'daemon'},$globals{'daemon'},0)) { + $opt{'daemon'} = interval(opt('daemon')); + $opt{'daemon'} = minimum('daemon') + if ($opt{'daemon'} < minimum('daemon')); + } ## define or modify host options specified on the command-line if (exists $opt{'options'} && defined $opt{'options'}) { @@ -1096,16 +1112,14 @@ $config{$h}{'cacheable'} = [ @{$services{$proto}{'cacheable'}} ]; } } - if (opt('help')) { - *STDERR = *STDOUT; - usage(); - } } ###################################################################### ## usage ###################################################################### sub usage { + my $exitcode = 1; + $exitcode = shift if @_ != 0; # use first arg if given my $msg = ''; if (@_) { my $format = shift; @@ -1115,7 +1129,7 @@ } printf STDERR "%s%s\n", $msg, $opt_usage; sendmail(); - exit 1; + exit $exitcode; } ###################################################################### @@ -1349,7 +1363,7 @@ sub sendmail { my $recipients = opt('mail'); - if (opt('mail-failure') && ($result ne 'OK')) { + if (opt('mail-failure') && ($result ne 'OK' && $result != 0)) { $recipients = opt('mail-failure'); } if ($msgs && $recipients && $msgs ne $last_msgs) { @@ -1806,7 +1820,7 @@ # Protect special HTML characters (like '?') $queryif =~ s/([\?&= ])/sprintf("%%%02x",ord($1))/ge; - $url = "http://${arg}/level/1/exec/show/ip/interface/brief/${queryif}/CR"; + $url = "http://".opt('fw')."/level/1/exec/show/ip/interface/brief/${queryif}/CR"; $reply = geturl('', $url, opt('fw-login'), opt('fw-password')) || ''; $arg = $url; @@ -1995,6 +2009,13 @@ } elsif (defined($sub) && &$sub($host)) { $update = 1; + } elsif (($cache{$host}{'static'} ne $config{$host}{'static'}) || + ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'}) || + ($cache{$host}{'mx'} ne $config{$host}{'mx'}) || + ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) { + info("updating %s because host settings have been changed.", $host); + $update = 1; + } else { success("%s: skipped: IP address was already set to %s.", $host, $ip) if opt('verbose'); @@ -2211,7 +2232,7 @@ '!yours' => 'The hostname specified exists, but not under the username currently being used', '!donator' => 'The offline setting was set, when the user is not a donator', '!active' => 'The hostname specified is in a Custom DNS domain which has not yet been activated.', - 'abuse', => 'The hostname specified is blocked for abuse; contact support@dyndns.org to be unblocked', + 'abuse', => 'The hostname specified is blocked for abuse; fill in the form at http://support.dyndns.org/abuse.php to be unblocked', 'numhost' => 'System error: Too many or too few hosts found. Contact support@dyndns.org', 'dnserr' => 'System error: DNS error encountered. Contact support@dyndns.org', diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/README new/ddclient-3.7.1/README --- old/ddclient-3.7.0/README 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/README 2007-01-25 16:42:22.000000000 +0100 @@ -170,4 +170,4 @@ and monitor your ethernet interface. ------------------------------------------------------------------------------- -$Id: README 10 2006-06-14 19:59:31Z wimpunk $ +$Id: README 2 2006-05-22 19:37:19Z wimpunk $ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/README.cisco new/ddclient-3.7.1/README.cisco --- old/ddclient-3.7.0/README.cisco 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/README.cisco 2007-01-25 16:42:22.000000000 +0100 @@ -1,4 +1,4 @@ -$Id: README.cisco 10 2006-06-14 19:59:31Z wimpunk $ +$Id: README.cisco 2 2006-05-22 19:37:19Z wimpunk $ Method 1 ------------------------------------------------------ The following config will allow the Linux machine (10.1.1.2) to read diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/README.ssl new/ddclient-3.7.1/README.ssl --- old/ddclient-3.7.0/README.ssl 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/README.ssl 2007-01-25 16:42:22.000000000 +0100 @@ -1,4 +1,4 @@ -$Id: README.ssl 10 2006-06-14 19:59:31Z wimpunk $ +$Id: README.ssl 6 2006-06-14 19:28:49Z wimpunk $ Since 3.7.0, ddclient support ssl-updates To use ssl, put "ssl=yes" in your configuration and make sure diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/sample-etc_cron.d_ddclient new/ddclient-3.7.1/sample-etc_cron.d_ddclient --- old/ddclient-3.7.0/sample-etc_cron.d_ddclient 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/sample-etc_cron.d_ddclient 2007-01-25 16:42:22.000000000 +0100 @@ -1,6 +1,6 @@ ###################################################################### ## ddclient is an IP address updater for www.dyndns.org -## $Id: sample-etc_cron.d_ddclient 10 2006-06-14 19:59:31Z wimpunk $ +## $Id: sample-etc_cron.d_ddclient 2 2006-05-22 19:37:19Z wimpunk $ ###################################################################### ## minute 0-59 ## hour 0-23 diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/sample-etc_ddclient.conf new/ddclient-3.7.1/sample-etc_ddclient.conf --- old/ddclient-3.7.0/sample-etc_ddclient.conf 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/sample-etc_ddclient.conf 2007-01-25 16:42:22.000000000 +0100 @@ -1,6 +1,6 @@ ###################################################################### ## -## $Id: sample-etc_ddclient.conf 10 2006-06-14 19:59:31Z wimpunk $ +## $Id: sample-etc_ddclient.conf 2 2006-05-22 19:37:19Z wimpunk $ ## ## Define default global variables with lines like: ## var=value [, var=value]* diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/sample-etc_dhclient-exit-hooks new/ddclient-3.7.1/sample-etc_dhclient-exit-hooks --- old/ddclient-3.7.0/sample-etc_dhclient-exit-hooks 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/sample-etc_dhclient-exit-hooks 2007-01-25 16:42:22.000000000 +0100 @@ -1,6 +1,6 @@ #!/bin/sh ###################################################################### -## $Id: sample-etc_dhclient-exit-hooks 10 2006-06-14 19:59:31Z wimpunk $ +## $Id: sample-etc_dhclient-exit-hooks 2 2006-05-22 19:37:19Z wimpunk $ ###################################################################### # The /etc/dhclient-enter-hooks script is run by the ISC DHCP client's standard # update script whenever dhclient obtains or renews an address. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/sample-etc_dhcpc_dhcpcd-eth0.exe new/ddclient-3.7.1/sample-etc_dhcpc_dhcpcd-eth0.exe --- old/ddclient-3.7.0/sample-etc_dhcpc_dhcpcd-eth0.exe 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/sample-etc_dhcpc_dhcpcd-eth0.exe 2007-01-25 16:42:22.000000000 +0100 @@ -1,6 +1,6 @@ #!/bin/sh ###################################################################### -## $Id: sample-etc_dhcpc_dhcpcd-eth0.exe 10 2006-06-14 19:59:31Z wimpunk $ +## $Id: sample-etc_dhcpc_dhcpcd-eth0.exe 2 2006-05-22 19:37:19Z wimpunk $ ###################################################################### PATH=/usr/sbin:${PATH} diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/sample-etc_ppp_ip-up.local new/ddclient-3.7.1/sample-etc_ppp_ip-up.local --- old/ddclient-3.7.0/sample-etc_ppp_ip-up.local 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/sample-etc_ppp_ip-up.local 2007-01-25 16:42:22.000000000 +0100 @@ -1,6 +1,6 @@ #!/bin/sh ###################################################################### -## $Id: sample-etc_ppp_ip-up.local 10 2006-06-14 19:59:31Z wimpunk $ +## $Id: sample-etc_ppp_ip-up.local 35 2006-12-02 14:46:01Z wimpunk $ ###################################################################### ## ## On my host, pppd invokes this script with args: @@ -34,7 +34,7 @@ ;; *) ( sleep 5 - ddclient -daemon=0 -syslog -use=if -if=$1 >/dev/null 2>&1 + ddclient -daemon=0 -syslog -use=if -if=$IP >/dev/null 2>&1 ) & ;; esac diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/sample-etc_rc.d_init.d_ddclient.lsb new/ddclient-3.7.1/sample-etc_rc.d_init.d_ddclient.lsb --- old/ddclient-3.7.0/sample-etc_rc.d_init.d_ddclient.lsb 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/sample-etc_rc.d_init.d_ddclient.lsb 2007-01-25 16:42:22.000000000 +0100 @@ -21,7 +21,7 @@ # can be used on many types of firewalls ### END INIT INFO # -# $Id: sample-etc_rc.d_init.d_ddclient.lsb 10 2006-06-14 19:59:31Z wimpunk $ +# $Id: sample-etc_rc.d_init.d_ddclient.lsb 2 2006-05-22 19:37:19Z wimpunk $ # ### diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/sample-etc_rc.d_init.d_ddclient.redhat new/ddclient-3.7.1/sample-etc_rc.d_init.d_ddclient.redhat --- old/ddclient-3.7.0/sample-etc_rc.d_init.d_ddclient.redhat 2006-06-14 21:59:40.000000000 +0200 +++ new/ddclient-3.7.1/sample-etc_rc.d_init.d_ddclient.redhat 2007-01-25 16:42:22.000000000 +0100 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: sample-etc_rc.d_init.d_ddclient.redhat 10 2006-06-14 19:59:31Z wimpunk $ +# $Id: sample-etc_rc.d_init.d_ddclient.redhat 2 2006-05-22 19:37:19Z wimpunk $ # ddclient This shell script takes care of starting and stopping # ddclient. # diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ddclient-3.7.0/sample-etc_rc.d_init.d_ddclient.ubuntu new/ddclient-3.7.1/sample-etc_rc.d_init.d_ddclient.ubuntu --- old/ddclient-3.7.0/sample-etc_rc.d_init.d_ddclient.ubuntu 1970-01-01 01:00:00.000000000 +0100 +++ new/ddclient-3.7.1/sample-etc_rc.d_init.d_ddclient.ubuntu 2007-01-25 16:42:22.000000000 +0100 @@ -0,0 +1,47 @@ +#!/bin/sh +# +# Start ddclient that provides support for updating dynamic DNS services. +# +# Submitted by paolo martinelli + +DDCLIENT=/usr/sbin/ddclient +CONF=/etc/ddclient/ddclient.conf +PIDFILE=/var/run/ddclient.pid + +test -x $DDCLIENT || exit 0 +test -f $CONF || exit 0 + +. /lib/lsb/init-functions + +case "$1" in +start) +log_begin_msg "Starting ddclient..." +DELAY=`grep -v '^\s*#' $CONF | grep -i -m 1 "daemon" | awk -F '=' '{print $2}'` +if [ -z "$DELAY" ] ; then +DELAY="-daemon 300" +else +DELAY='' +fi +start-stop-daemon -S -q -p $PIDFILE -x $DDCLIENT -- $DELAY +log_end_msg $? +;; +stop) +if [ -f $PIDFILE ] ; then +log_begin_msg "Stopping ddclient..." +start-stop-daemon -K -q -p $PIDFILE +log_end_msg $? +rm -f $PIDFILE +fi +;; +restart|reload|force-reload) +$0 stop +$0 start +;; +*) +log_success_msg "Usage: $0 {start|stop|restart|reload|force-reload}" +exit 1 +;; +esac + +exit 0 + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org