commit 7e259260d8815f1aaa7bf7a7b87dec89ce271bd5a79999069e783c1785543fed Author: OBS User unknown Date: Mon Jan 8 12:54:53 2007 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ddclient?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ddclient-3.6.3-config.patch b/ddclient-3.6.3-config.patch new file mode 100644 index 0000000..530b99d --- /dev/null +++ b/ddclient-3.6.3-config.patch @@ -0,0 +1,11 @@ +--- ddclient-3.6.3/sample-etc_ddclient.conf.orig 2003-06-14 19:39:16.000000000 +0200 ++++ ddclient-3.6.3/sample-etc_ddclient.conf 2003-08-13 15:20:58.000000000 +0200 +@@ -14,7 +14,7 @@ + ###################################################################### + 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. + # diff --git a/ddclient-3.6.5-config.patch b/ddclient-3.6.5-config.patch new file mode 100644 index 0000000..0e9b53f --- /dev/null +++ b/ddclient-3.6.5-config.patch @@ -0,0 +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 +@@ -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 $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/'; + my $msgs = ''; + my $last_msgs = ''; diff --git a/ddclient-3.7.0.tar.bz2 b/ddclient-3.7.0.tar.bz2 new file mode 100644 index 0000000..9a168b0 --- /dev/null +++ b/ddclient-3.7.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2b6878833e443f5e86fc1d94347e26d72a23de8026d5e6aec263a65d2de0025 +size 36800 diff --git a/ddclient.changes b/ddclient.changes new file mode 100644 index 0000000..b1f49f9 --- /dev/null +++ b/ddclient.changes @@ -0,0 +1,73 @@ +------------------------------------------------------------------- +Mon Jan 8 12:31:20 CET 2007 - kssingvo@suse.de + +- fixed checkproc in init script (bugzilla#229460) + +------------------------------------------------------------------- +Wed Sep 20 16:56:41 CEST 2006 - kssingvo@suse.de + +- added init script (bugzilla#201548) + +------------------------------------------------------------------- +Wed Jun 28 16:46:05 CEST 2006 - kssingvo@suse.de + +- update to version 3.7.0: +- support of many new routers +- fix to have a '#' char in the password +- renamed .orig to _orig in %doc section + +------------------------------------------------------------------- +Wed Jan 25 21:35:24 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Wed Jan 11 14:32:12 CET 2006 - kssingvo@suse.de + +- update to version 3.6.7 + +------------------------------------------------------------------- +Tue Jul 26 15:49:56 CEST 2005 - kssingvo@suse.de + +- update to version 3.6.6 + +------------------------------------------------------------------- +Tue Mar 29 14:17:01 CEST 2005 - kssingvo@suse.de + +- fix of config directory location (bugzilla#74539) + +------------------------------------------------------------------- +Tue Feb 1 17:04:29 CET 2005 - kssingvo@suse.de + +- new version 3.6.5: there was a bug in the linksys-ver2 + +------------------------------------------------------------------- +Thu Nov 4 11:45:06 CET 2004 - kssingvo@suse.de + +- new version 3.6.4 and now maintained at sourceforge + +------------------------------------------------------------------- +Sun Jan 11 11:57:08 CET 2004 - adrian@suse.de + +- fix build as user + +------------------------------------------------------------------- +Wed Aug 13 15:22:09 CEST 2003 - kssingvo@suse.de + +- fixed defaults (bugzilla#27701) + +------------------------------------------------------------------- +Tue Jun 24 16:13:03 CEST 2003 - kssingvo@suse.de + +- upgraded to ddclient-3.6.3 + +------------------------------------------------------------------- +Tue Jan 14 17:08:21 CET 2003 - kssingvo@suse.de + +- updated to ddclient-3.6.3beta3 + +------------------------------------------------------------------- +Mon Oct 28 13:01:07 CET 2002 - kssingvo@suse.de + +- first shot. + diff --git a/ddclient.spec b/ddclient.spec new file mode 100644 index 0000000..2d4b1e9 --- /dev/null +++ b/ddclient.spec @@ -0,0 +1,127 @@ +# +# spec file for package ddclient (Version 3.7.0) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: ddclient +License: GNU General Public License (GPL) +Group: Productivity/Networking/DNS/Utilities +Requires: perl >= 5.004 +Autoreqprov: on +Version: 3.7.0 +Release: 24 +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 + +%description +ddclient is a small full-featured client requiring only Perl. Supported +features include daemon operation, manual and automatic updates, static +and dynamic updates, optimized updates for multiple addresses, MX, wild +cards, abuse avoidance, retry for failed updates, and status updates to +syslog and through e-mail. ddclient can obtain the IP address from any +interface, through a Web-based IP detection service, and for multiple +routers using custom FW definitions. It also provides full support for +DynDNS.org's NIC2 protocol. Support is also included for other dynamic +DNS services. Comes with sample scripts for use with DHCP, PPP, and +cron. + + + +Authors: +-------- + Wim Vinckier + Paul Burry + +%prep +%setup +%patch0 -p1 -b _orig +%patch1 -p1 + +%build +#export CFLAGS="$RPM_OPT_FLAGS" +#./configure \ +# --mandir=%{_mandir} \ +# --prefix=%{prefix} \ +# --libdir=%{_libdir} \ +# --infodir=%{_infodir} \ +# --sysconfdir=%{_sysconfdir} \ +# +# If the package provides automatic testing +#make test +# nothing to do here (yet) + +%install +[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; +#make DESTDIR=$RPM_BUILD_ROOT install +mkdir -p $RPM_BUILD_ROOT/usr/sbin +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/init.d +install -m 755 %{name} $RPM_BUILD_ROOT/usr/sbin/ +install -m 644 sample-etc_ddclient.conf $RPM_BUILD_ROOT/%{_sysconfdir}/ddclient.conf +# init script +install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/ddclient +ln -s %{_sysconfdir}/init.d/ddclient $RPM_BUILD_ROOT/usr/sbin/rcddclient + + +%preun +%stop_on_removal ddclient + +%postun +%restart_on_update ddclient +%insserv_cleanup + +%clean +# Clear up the mess +[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; + +%files +%defattr(-, root, root) +%config %attr(600,root,root) %{_sysconfdir}/ddclient.conf +%config %attr(0755,root,root) /etc/init.d/ddclient +/usr/sbin/%{name} +/usr/sbin/rcddclient +%doc COPY* README* sample* + +%changelog -n ddclient +* Mon Jan 08 2007 - kssingvo@suse.de +- fixed checkproc in init script (bugzilla#229460) +* Wed Sep 20 2006 - kssingvo@suse.de +- added init script (bugzilla#201548) +* Wed Jun 28 2006 - kssingvo@suse.de +- update to version 3.7.0: +- support of many new routers +- fix to have a '#' char in the password +- renamed .orig to _orig in %%doc section +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Wed Jan 11 2006 - kssingvo@suse.de +- update to version 3.6.7 +* Tue Jul 26 2005 - kssingvo@suse.de +- update to version 3.6.6 +* Tue Mar 29 2005 - kssingvo@suse.de +- fix of config directory location (bugzilla#74539) +* Tue Feb 01 2005 - kssingvo@suse.de +- new version 3.6.5: there was a bug in the linksys-ver2 +* Thu Nov 04 2004 - kssingvo@suse.de +- new version 3.6.4 and now maintained at sourceforge +* Sun Jan 11 2004 - adrian@suse.de +- fix build as user +* Wed Aug 13 2003 - kssingvo@suse.de +- fixed defaults (bugzilla#27701) +* Tue Jun 24 2003 - kssingvo@suse.de +- upgraded to ddclient-3.6.3 +* Tue Jan 14 2003 - kssingvo@suse.de +- updated to ddclient-3.6.3beta3 +* Mon Oct 28 2002 - kssingvo@suse.de +- first shot. diff --git a/rc.ddclient b/rc.ddclient new file mode 100644 index 0000000..ad95679 --- /dev/null +++ b/rc.ddclient @@ -0,0 +1,78 @@ +#!/bin/sh +# Copyright (c) 2005-2006 SUSE Linux AG, Nuernberg, Germany. +# All rights reserved. +# +# Author: Klaus Singvogel. +# Please send feedback to http://www.suse.de/feedback +# +# ddclient This shell script takes care of starting and stopping +# ddclient. +# +# +### BEGIN INIT INFO +# Provides: ddclient +# Required-Start: $syslog $local_fs $network +# Should-Start: $time ypbind sendmail $remote_fs +# Required-Stop: $syslog $local_fs +# Should-Stop: $time ypbind sendmail $remote_fs +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Short-Description: ddclient a daemon to update dynamic DNS entries +# Description: ddclient is a Perl client used to update dynamic DNS +# entries for accounts on many dynamic DNS services and +# can be used on many types of firewalls +### END INIT INFO +# + + +# Source SuSE config, only if exists with size greater zero +test -s /etc/rc.status && . /etc/rc.status + +DDCLIENT_CONFIG=/etc/ddclient.conf +DDCLIENT_BIN=/usr/sbin/ddclient + +test -s "$DDCLIENT_CONFIG" || exit 6 + +rc_reset + +case "$1" in + start) + echo -n "Starting ddclient daemon" + startproc "$DDCLIENT_BIN" -daemon 300 + rc_status -v + ;; + stop) + echo -n "Shutting down ddclient daemon" + killproc -TERM `basename "$DDCLIENT_BIN"` + rc_status -v + ;; + try-restart) + $0 status >/dev/null && $0 restart + # Remember status and be quiet + rc_status + ;; + restart) + $0 stop + $0 start + rc_status + ;; + force-reload) +# echo -n "Reload service ddclient" + rc_failed 3 + rc_status -v + ;; + reload) + rc_failed 3 + rc_status -v + ;; + status) + echo -n "Checking for service ddclient " + checkproc `basename "$DDCLIENT_BIN"` + rc_status -v + ;; + *) + echo "Usage: ddclient {start|stop|try-restart|restart|status}" + exit 1 +esac + +rc_exit diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4