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