]> git.pld-linux.org Git - packages/ddclient.git/blobdiff - ddclient.spec
- version 3.7.0
[packages/ddclient.git] / ddclient.spec
index dfa2b1bc4a2521c0dcb3ad5919d811fe877ed83e..d6cc01b4e9d8006c43cfe41ee9af8e0fa680abc3 100644 (file)
@@ -1,35 +1,55 @@
 %include       /usr/lib/rpm/macros.perl
-Name:          ddclient
-Epoch:         1
-Version:       3.6.3
-Release:       1
 Summary:       A dynamic IP address utility
+Summary(pl):   Narzêdzie do dynamicznych adresów IP
 Summary(pt_BR):        Cliente para atualizar entradas DNS dinâmicas no DynDNS.org
+Name:          ddclient
+Version:       3.7.0
+Release:       1
+Epoch:         1
+License:       GPL v2
 Group:         Networking
-License:       GPL
-URL:           http://burry.ca:4141/ddclient/
-Source0:       http://members.rogers.com/ddclient/pub/%{name}-%{version}.tar.gz
+Source0:       http://dl.sourceforge.net/ddclient/%{name}-%{version}.tar.bz2
+# Source0-md5: 41a3307ca32cce0f67c0f3281c5f17f2
 Source1:       %{name}.init
-BuildArch:     noarch
+URL:           http://ddclient.sourceforge.net/
 BuildRequires: rpm-perlprov
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Features: FULL DynDNS NIC2 support and now Custom updates and an RPM!
-DDclient is a small full featured client requiring only Perl and no
-additional modules. It runs under most UNIX OSes and has been tested
-under Linux and FreeBSD. Supported features include: operating as a
-daemon, manual and automatic updates, static and dynamic updates,
-optimized updates for multiple addresses, MX, wildcards, abuse
-avoidance, retrying failed updates, and sending update status to
-syslog and through e-mail. This release may now obtain your IP address
-from any interface, web based IP detection, Watchguard's SOHO router,
-Netopia's R910 router, SMC's Barricade broadband router, Netgear's
-RT3xx router, Linksys' broadband routers, MaxGate's UGATE-3x00
-routers, ELSA's LANCOM DSL/10 routers and now 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. See the README for more information.
+DDclient is a small full featured client with FULL DynDNS NIC2
+support, requiring only Perl and no additional modules. It runs under
+most UNIX OSes and has been tested under Linux and FreeBSD. Supported
+features include: operating as a daemon, manual and automatic updates,
+static and dynamic updates, optimized updates for multiple addresses,
+MX, wildcards, abuse avoidance, retrying failed updates, and sending
+update status to syslog and through e-mail. This release may now
+obtain your IP address from any interface, web based IP detection,
+Watchguard's SOHO router, Netopia's R910 router, SMC's Barricade
+broadband router, Netgear's RT3xx router, Linksys' broadband routers,
+MaxGate's UGATE-3x00 routers, ELSA's LANCOM DSL/10 routers and now
+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. See the README for more information.
+
+%description -l pl
+DDclient to ma³y, w pe³ni funkcjonalny klient z PE£N¡ obs³ug± DynDNS
+NIC2, wymagaj±cy tylko Perla bez ¿adnych dodatkowych modu³ów. Dzia³a
+pod wiêkszo¶ci± systemów uniksowych, by³ testowany pod Linuksem i
+FreeBSD. Jego mo¿liwo¶ci to miêdzy innymi: praca jako demon, rêczne
+i automatyczne uaktualnienia, statyczne i dynamiczne uaktualnienia,
+uaktualnienia zoptymalizowane dla wielu adresów, MX-y, wildcardy,
+zapobieganie nadu¿yciom, ponawianie nieudanych uaktualnieñ, wysy³anie
+statusu uaktualnieñ do sysloga i poczt±. Ta wersja mo¿e pobraæ adres
+IP z dowolnego interfejsu, wykrywania przez WWW, routerów: Watchguard
+SOGO, szerokopasmowych SMC Barricane, Netgear RT3xx, szerokopasmowych
+Linksys, MaxGate UGATE-3x00, ELSA LANCOM DSL/10, a teraz tak¿e ma
+pe³n± obs³ugê protoko³u DynDNS NIC2. Ma tak¿e wsparcie dla innych
+us³ug dynamicznego DNS. Zawiera przyk³adowe skrypty do u¿ywania z
+DHCP, PPP i cronem. Wiêcej informacji w README.
 
 %description -l pt_BR
 O ddclient é um cliente perl usada para atualizar entradas DNS
@@ -40,13 +60,11 @@ gratuita.
 %prep
 %setup -q
 
-%build
-
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sbindir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ddclient,/etc/rc.d/init.d,%{_sbindir}}
 
-install sample-etc_ddclient.conf $RPM_BUILD_ROOT/etc/%{name}.conf
+install sample-etc_ddclient.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
 install %{name} $RPM_BUILD_ROOT%{_sbindir}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
@@ -54,25 +72,27 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 rm -rf $RPM_BUILD_ROOT
 
 %post
-umask 022
 /sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/%{name} ]; then
-        /etc/rc.d/init.d/%{name} restart >&2
-else
-        echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
-fi
+%service %{name} restart "%{name} daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-        if [ -f /var/lock/subsys/%{name} ]; then
-                /etc/rc.d/init.d/%{name} stop >&2
-        fi
-        /sbin/chkconfig --del %{name}
+       %service %{name} stop
+       /sbin/chkconfig --del %{name}
+fi
+
+%triggerpostun -- ddclient < 1:3.6.4
+if [ -f /etc/ddclient.conf.rpmsave ]; then
+       echo "Moving config to new location /etc/ddclient"
+       mv -f /etc/ddclient/ddclient.conf /etc/ddclient/ddclient.conf.rpmnew
+       mv -f /etc/ddclient.conf.rpmsave /etc/ddclient/ddclient.conf
+       mv -f /etc/ddclient.cache /etc/ddclient.cache.rpmsave
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc README*
+%doc Changelog README*
 %attr(755,root,root) %{_sbindir}/*
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/%{name}.conf
+%dir %{_sysconfdir}/%{name}
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.113633 seconds and 4 git commands to generate.