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