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