1 %include /usr/lib/rpm/macros.perl
2 Summary: A dynamic IP address utility
3 Summary(pl): Narzêdzie do dynamicznych adresów IP
4 Summary(pt_BR): Cliente para atualizar entradas DNS dinâmicas no DynDNS.org
11 Source0: http://dl.sourceforge.net/ddclient/%{name}-%{version}.tar.bz2
12 # Source0-md5: b07a29a891dcf40b941b9bc5ef3ce598
14 URL: http://ddclient.sourceforge.net/
15 BuildRequires: rpm-perlprov
16 BuildRequires: rpmbuild(macros) >= 1.268
17 Requires(post,preun): /sbin/chkconfig
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 DDclient is a small full featured client with FULL DynDNS NIC2
24 support, requiring only Perl and no additional modules. It runs under
25 most UNIX OSes and has been tested under Linux and FreeBSD. Supported
26 features include: operating as a daemon, manual and automatic updates,
27 static and dynamic updates, optimized updates for multiple addresses,
28 MX, wildcards, abuse avoidance, retrying failed updates, and sending
29 update status to syslog and through e-mail. This release may now
30 obtain your IP address from any interface, web based IP detection,
31 Watchguard's SOHO router, Netopia's R910 router, SMC's Barricade
32 broadband router, Netgear's RT3xx router, Linksys' broadband routers,
33 MaxGate's UGATE-3x00 routers, ELSA's LANCOM DSL/10 routers and now
34 provides Full support for DynDNS.org's NIC2 protocol. Support is also
35 included for other dynamic DNS services. Comes with sample scripts for
36 use with DHCP, PPP, and cron. See the README for more information.
39 DDclient to ma³y, w pe³ni funkcjonalny klient z PE£N¡ obs³ug± DynDNS
40 NIC2, wymagaj±cy tylko Perla bez ¿adnych dodatkowych modu³ów. Dzia³a
41 pod wiêkszo¶ci± systemów uniksowych, by³ testowany pod Linuksem i
42 FreeBSD. Jego mo¿liwo¶ci to miêdzy innymi: praca jako demon, rêczne
43 i automatyczne uaktualnienia, statyczne i dynamiczne uaktualnienia,
44 uaktualnienia zoptymalizowane dla wielu adresów, MX-y, wildcardy,
45 zapobieganie nadu¿yciom, ponawianie nieudanych uaktualnieñ, wysy³anie
46 statusu uaktualnieñ do sysloga i poczt±. Ta wersja mo¿e pobraæ adres
47 IP z dowolnego interfejsu, wykrywania przez WWW, routerów: Watchguard
48 SOGO, szerokopasmowych SMC Barricane, Netgear RT3xx, szerokopasmowych
49 Linksys, MaxGate UGATE-3x00, ELSA LANCOM DSL/10, a teraz tak¿e ma
50 pe³n± obs³ugê protoko³u DynDNS NIC2. Ma tak¿e wsparcie dla innych
51 us³ug dynamicznego DNS. Zawiera przyk³adowe skrypty do u¿ywania z
52 DHCP, PPP i cronem. Wiêcej informacji w README.
55 O ddclient é um cliente perl usada para atualizar entradas DNS
56 dinâmicas em contas do serviço de DNS dinâmico gratuito. Veja
57 http://www.dyndns.org para obter detalhes sobre como obter uma conta
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ddclient,/etc/rc.d/init.d,%{_sbindir}}
67 install sample-etc_ddclient.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
68 install %{name} $RPM_BUILD_ROOT%{_sbindir}
69 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
72 rm -rf $RPM_BUILD_ROOT
75 /sbin/chkconfig --add %{name}
76 %service %{name} restart "%{name} daemon"
79 if [ "$1" = "0" ]; then
81 /sbin/chkconfig --del %{name}
84 %triggerpostun -- ddclient < 1:3.6.4
85 if [ -f /etc/ddclient.conf.rpmsave ]; then
86 echo "Moving config to new location /etc/ddclient"
87 mv -f /etc/ddclient/ddclient.conf /etc/ddclient/ddclient.conf.rpmnew
88 mv -f /etc/ddclient.conf.rpmsave /etc/ddclient/ddclient.conf
89 mv -f /etc/ddclient.cache /etc/ddclient.cache.rpmsave
93 %defattr(644,root,root,755)
94 %doc Changelog README*
95 %attr(755,root,root) %{_sbindir}/*
96 %dir %{_sysconfdir}/%{name}
97 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
98 %attr(754,root,root) /etc/rc.d/init.d/%{name}