File ddclient-3.8.0-config.patch of Package ddclient

diff -ruN ddclient-3.8.0-orig/ddclient ddclient-3.8.0/ddclient
--- ddclient-3.8.0-orig/ddclient	2009-01-27 19:14:02.000000000 +0000
+++ ddclient-3.8.0/ddclient	2009-04-29 21:37:27.690282779 +0000
@@ -27,7 +27,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      = '';
diff -ruN ddclient-3.8.0-orig/sample-etc_ddclient.conf ddclient-3.8.0/sample-etc_ddclient.conf
--- ddclient-3.8.0-orig/sample-etc_ddclient.conf	2008-11-19 20:20:34.000000000 +0000
+++ ddclient-3.8.0/sample-etc_ddclient.conf	2009-04-30 14:14:47.793725557 +0000
@@ -18,12 +18,16 @@
 ##          are mentioned here.
 ##
 ######################################################################
+# daemon: consider to use /etc/sysconfig/ddclient instead of modifying here
+#
 daemon=300				# check every 300 seconds
+#
+######################################################################
 syslog=yes				# log update msgs to syslog
-mail=root				# mail all msgs to root
+#mail=root				# mail all msgs to root
 mail-failure=root			# mail failed update msgs to root
 pid=/var/run/ddclient.pid		# record PID in file.
-ssl=yes					# use ssl-support.  Works with
+ssl=no					# use ssl-support.  Works with
 					# ssl-library
 # postscript=script			# run script after updating.  The
 					# new IP is added as argument.
@@ -52,10 +56,17 @@
 ## To obtain an IP address from Web status page (using the proxy if defined)
 #use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
 #
+######################################################################
+# you do not need to define use= if you are using DSL (ppp0)
+# rc.ddclient is using "use=if, if=ppp0" as default
+#
 #use=ip,                     ip=127.0.0.1	# via static IP's
 #use=if,                     if=eth0		# via interfaces
+#use=if,                     if=ippp0           # when using ISDN
+#use=if,                     if=ppp0            # when using DSL
 #use=web					# via web
 #
+######################################################################
 #protocol=dyndns2				# default protocol
 #proxy=fasthttp.sympatico.ca:80			# default proxy
 #server=members.dyndns.org			# default server
openSUSE Build Service is sponsored by