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