]> git.pld-linux.org Git - packages/ddclient.git/blob - ddclient.spec
- add trigger for clean update
[packages/ddclient.git] / ddclient.spec
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
5 Name:           ddclient
6 Epoch:          1
7 Version:        3.6.5
8 Release:        2
9 Group:          Networking
10 License:        GPL
11 Source0:        http://dl.sourceforge.net/ddclient/%{name}-%{version}.tar.bz2
12 # Source0-md5:  ade98b62699dbc86fb05f9000ba57448
13 Source1:        %{name}.init
14 URL:            http://ddclient.sourceforge.net/
15 BuildRequires:  rpm-perlprov
16 PreReq:         rc-scripts
17 Requires(post,preun):   /sbin/chkconfig
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 DDclient is a small full featured client with FULL DynDNS NIC2
23 support, requiring only Perl and no additional modules. It runs under
24 most UNIX OSes and has been tested under Linux and FreeBSD. Supported
25 features include: operating as a daemon, manual and automatic updates,
26 static and dynamic updates, optimized updates for multiple addresses,
27 MX, wildcards, abuse avoidance, retrying failed updates, and sending
28 update status to syslog and through e-mail. This release may now
29 obtain your IP address from any interface, web based IP detection,
30 Watchguard's SOHO router, Netopia's R910 router, SMC's Barricade
31 broadband router, Netgear's RT3xx router, Linksys' broadband routers,
32 MaxGate's UGATE-3x00 routers, ELSA's LANCOM DSL/10 routers and now
33 provides Full support for DynDNS.org's NIC2 protocol. Support is also
34 included for other dynamic DNS services. Comes with sample scripts for
35 use with DHCP, PPP, and cron. See the README for more information.
36
37 %description -l pl
38 DDclient to ma³y, w pe³ni funkcjonalny klient z PE£N¡ obs³ug± DynDNS
39 NIC2, wymagaj±cy tylko Perla bez ¿adnych dodatkowych modu³ów. Dzia³a
40 pod wiêkszo¶ci± systemów uniksowych, by³ testowany pod Linuksem i
41 FreeBSD. Jego mo¿liwo¶ci to miêdzy innymi: praca jako demon, rêczne
42 i automatyczne uaktualnienia, statyczne i dynamiczne uaktualnienia,
43 uaktualnienia zoptymalizowane dla wielu adresów, MX-y, wildcardy,
44 zapobieganie nadu¿yciom, ponawianie nieudanych uaktualnieñ, wysy³anie
45 statusu uaktualnieñ do sysloga i poczt±. Ta wersja mo¿e pobraæ adres
46 IP z dowolnego interfejsu, wykrywania przez WWW, routerów: Watchguard
47 SOGO, szerokopasmowych SMC Barricane, Netgear RT3xx, szerokopasmowych
48 Linksys, MaxGate UGATE-3x00, ELSA LANCOM DSL/10, a teraz tak¿e ma
49 pe³n± obs³ugê protoko³u DynDNS NIC2. Ma tak¿e wsparcie dla innych
50 us³ug dynamicznego DNS. Zawiera przyk³adowe skrypty do u¿ywania z
51 DHCP, PPP i cronem. Wiêcej informacji w README.
52
53 %description -l pt_BR
54 O ddclient é um cliente perl usada para atualizar entradas DNS
55 dinâmicas em contas do serviço de DNS dinâmico gratuito. Veja
56 http://www.dyndns.org para obter detalhes sobre como obter uma conta
57 gratuita.
58
59 %prep
60 %setup -q
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ddclient,/etc/rc.d/init.d,%{_sbindir}}
65
66 install sample-etc_ddclient.conf $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf
67 install %{name} $RPM_BUILD_ROOT%{_sbindir}
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post
74 /sbin/chkconfig --add %{name}
75 if [ -f /var/lock/subsys/%{name} ]; then
76         /etc/rc.d/init.d/%{name} restart >&2
77 else
78         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
79 fi
80
81 %preun
82 if [ "$1" = "0" ]; then
83         if [ -f /var/lock/subsys/%{name} ]; then
84                 /etc/rc.d/init.d/%{name} stop >&2
85         fi
86         /sbin/chkconfig --del %{name}
87 fi
88
89 %triggerpostun -- ddclient < 1:3.6.4
90 if [ -f /etc/ddclient.conf.rpmsave ]; then
91         echo "Move config to new location /etc/ddclient"
92         mv -f /etc/ddclient/ddclient.conf /etc/ddclient/ddclient.conf.rpmnew
93         mv -f /etc/ddclient.conf.rpmsave /etc/ddclient/ddclient.conf
94         mv -f /etc/ddclient.cache /etc/ddclient.cache.rpmsave
95 fi
96
97 %files
98 %defattr(644,root,root,755)
99 %doc README*
100 %attr(755,root,root) %{_sbindir}/*
101 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) /etc/%{name}/%{name}.conf
102 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.121164 seconds and 4 git commands to generate.