1 Summary: Client for Dynamic DNS Services
7 Source0: http://www.gusnet.cx/proj/ez-ipupdate/dist/%{name}-%{version}.tar.gz
8 # Source0-md5: 000211add4c4845ffa4211841bff4fb0
10 BuildRequires: autoconf
11 BuildRequires: automake
13 URL: http://www.gusnet.cx/proj/ez-ipupdate/
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 ez-ipupdate is a small utility for updating your host name for any of
18 the dynamic DNS service offered at:
20 - http://www.ez-ip.net
21 - http://www.justlinux.com
23 - http://www.dyndns.org
25 - http://gnudip.cheapnet.net (GNUDip)
26 - http://www.dyn.ca (GNUDip)
28 - http://www.easydns.com
31 - http://www.zoneedit.com
33 it is pure C and works on Linux, *BSD and Solaris.
35 Don't forget to create your own config file ( in /etc/ez-ipupdate.conf
36 ) You can find some example in /usr/share/doc/%{name}-%{version}
42 install %{_datadir}/automake/config.* .
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/
53 DESTDIR=$RPM_BUILD_ROOT
55 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
56 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
58 perl -pi -e "s|\%{_prefix}\/local\/bin|\%{_prefix}\/bin|" *.conf
61 rm -rf $RPM_BUILD_ROOT
64 /sbin/chkconfig --add %{name}
65 if [ -f /var/lock/subsys/%{name} ]; then
66 /etc/rc.d/init.d/%{name} restart >&2
68 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
72 if [ "$1" = "0" ]; then
73 if [ -f /var/lock/subsys/%{name} ]; then
74 /etc/rc.d/init.d/%{name} stop >&2
76 /sbin/chkconfig --del %{name}
80 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_bindir}/*
84 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf
85 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}