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