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