1 Summary: Client for Dynamic DNS Services
2 Summary(pl): Klient dla serwisów dynamicznego DNS
8 Source0: http://www.gusnet.cx/proj/ez-ipupdate/dist/%{name}-%{version}.tar.gz
9 # Source0-md5: 000211add4c4845ffa4211841bff4fb0
11 Source2: %{name}.config
12 URL: http://www.gusnet.cx/proj/ez-ipupdate/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: perl-base
17 Requires(post,preun): /sbin/chkconfig
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 ez-ipupdate is a small utility for updating your host name for any of
22 the dynamic DNS service offered at:
23 - http://www.ez-ip.net/
24 - http://www.justlinux.com/
26 - http://www.dyndns.org/
28 - http://gnudip.cheapnet.net/ (GNUDip)
29 - http://www.dyn.ca/ (GNUDip)
31 - http://www.easydns.com/
34 - http://www.zoneedit.com/
36 It is pure C and works on Linux, *BSD and Solaris.
38 Don't forget to create your own config file (in
39 /etc/ez-ipupdate.conf). You can find some example in
40 /usr/share/doc/%{name}-%{version}.
43 ez-ipupdate to ma³e narzêdzie do uaktualniania nazwy hosta w dowolnym
44 serwisie dynamicznego DNS spo¶ród:
45 - http://www.ez-ip.net/
46 - http://www.justlinux.com/
48 - http://www.dyndns.org/
50 - http://gnudip.cheapnet.net/ (GNUDip)
51 - http://www.dyn.ca/ (GNUDip)
53 - http://www.easydns.com/
56 - http://www.zoneedit.com/
58 Jest napisane w czystym C i dzia³a na Linuksie, *BSD oraz Solarisie.
60 Nie nale¿y zapomnieæ o utworzeniu w³asnego pliku konfiguracyjnego
61 (/etc/ez-ipupdate.conf). Przyk³ad mo¿na znale¼æ w katalogu
62 /usr/share/doc/%{name}-%{version}.
68 install %{_datadir}/automake/config.* .
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig}
79 DESTDIR=$RPM_BUILD_ROOT
81 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
82 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
83 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
85 %{__perl} -pi -e "s|/usr/local/bin|%{_bindir}|" *.conf
88 rm -rf $RPM_BUILD_ROOT
91 /sbin/chkconfig --add %{name}
92 if [ -f /var/lock/subsys/%{name} ]; then
93 /etc/rc.d/init.d/%{name} restart >&2
95 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
99 if [ "$1" = "0" ]; then
100 if [ -f /var/lock/subsys/%{name} ]; then
101 /etc/rc.d/init.d/%{name} stop >&2
103 /sbin/chkconfig --del %{name}
107 %defattr(644,root,root,755)
108 %doc README CHANGELOG *.conf
109 %attr(755,root,root) %{_bindir}/*
110 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf
111 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name}
112 %attr(754,root,root) /etc/rc.d/init.d/%{name}