]> git.pld-linux.org Git - packages/ez-ipupdate.git/blob - ez-ipupdate.spec
- adapterized (sorted %verify flags)
[packages/ez-ipupdate.git] / ez-ipupdate.spec
1 Summary:        Client for Dynamic DNS Services
2 Summary(pl):    Klient dla serwisów dynamicznego DNS
3 Name:           ez-ipupdate
4 Version:        3.0.11b8
5 Release:        4
6 Group:          Networking
7 License:        GPL
8 Source0:        http://ez-ipupdate.com/dist/%{name}-%{version}.tar.gz
9 # Source0-md5:  000211add4c4845ffa4211841bff4fb0
10 Source1:        %{name}.init
11 Source2:        %{name}.config
12 Patch0:         %{name}-CAN-2004-0980.patch
13 URL:            http://ez-ipupdate.com/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  perl-base
17 Requires(post,preun):   /sbin/chkconfig
18 Requires:       rc-scripts
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 ez-ipupdate is a small utility for updating your host name for any of
23 the dynamic DNS service offered at:
24  - http://www.ez-ip.net/
25  - http://www.justlinux.com/
26  - http://www.dhs.org/
27  - http://www.dyndns.org/
28  - http://www.ods.org/
29  - http://gnudip.cheapnet.net/ (GNUDip)
30  - http://www.dyn.ca/ (GNUDip)
31  - http://www.tzo.com/
32  - http://www.easydns.com/
33  - http://www.dyns.cx/
34  - http://www.hn.org/
35  - http://www.zoneedit.com/
36
37 It is pure C and works on Linux, *BSD and Solaris.
38
39 Don't forget to create your own config file (in
40 /etc/ez-ipupdate.conf). You can find some example in
41 /usr/share/doc/%{name}-%{version}.
42
43 %description -l pl
44 ez-ipupdate to ma³e narzêdzie do uaktualniania nazwy hosta w dowolnym
45 serwisie dynamicznego DNS spo¶ród:
46  - http://www.ez-ip.net/
47  - http://www.justlinux.com/
48  - http://www.dhs.org/
49  - http://www.dyndns.org/
50  - http://www.ods.org/
51  - http://gnudip.cheapnet.net/ (GNUDip)
52  - http://www.dyn.ca/ (GNUDip)
53  - http://www.tzo.com/
54  - http://www.easydns.com/
55  - http://www.dyns.cx/
56  - http://www.hn.org/
57  - http://www.zoneedit.com/
58
59 Jest napisane w czystym C i dzia³a na Linuksie, *BSD oraz Solarisie.
60
61 Nie nale¿y zapomnieæ o utworzeniu w³asnego pliku konfiguracyjnego
62 (/etc/ez-ipupdate.conf). Przyk³ad mo¿na znale¼æ w katalogu
63 /usr/share/doc/%{name}-%{version}.
64
65 %prep
66 %setup -q
67 %patch0 -p0
68
69 %build
70 install %{_datadir}/automake/config.* .
71 %{__aclocal}
72 %{__autoconf}
73 %configure
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig}
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
84 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
85 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
86
87 %{__perl} -pi -e "s|/usr/local/bin|%{_bindir}|" *.conf
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post
93 /sbin/chkconfig --add %{name}
94 if [ -f /var/lock/subsys/%{name} ]; then
95         /etc/rc.d/init.d/%{name} restart >&2
96 else
97         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
98 fi
99
100 %preun
101 if [ "$1" = "0" ]; then
102         if [ -f /var/lock/subsys/%{name} ]; then
103                 /etc/rc.d/init.d/%{name} stop >&2
104         fi
105         /sbin/chkconfig --del %{name}
106 fi
107
108 %files
109 %defattr(644,root,root,755)
110 %doc README CHANGELOG *.conf
111 %attr(755,root,root) %{_bindir}/*
112 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
113 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
114 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.047168 seconds and 3 git commands to generate.