]> git.pld-linux.org Git - packages/ez-ipupdate.git/blob - ez-ipupdate.spec
- rel 6; fixes from debian and new services from openwrt
[packages/ez-ipupdate.git] / ez-ipupdate.spec
1 Summary:        Client for Dynamic DNS Services
2 Summary(pl.UTF-8):      Klient dla serwisów dynamicznego DNS
3 Name:           ez-ipupdate
4 Version:        3.0.11b8
5 Release:        6
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}-debian.patch
13 # https://dev.openwrt.org/browser/packages/net/ez-ipupdate/patches
14 Patch1:         002-ez_ipupdate_everydns.patch
15 Patch2:         003-dnsexit.patch
16 URL:            http://ez-ipupdate.com/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  perl-base
20 BuildRequires:  rpmbuild(macros) >= 1.268
21 Requires(post,preun):   /sbin/chkconfig
22 Requires:       rc-scripts
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 ez-ipupdate is a small utility for updating your host name for any of
27 the dynamic DNS service offered at:
28  - http://www.ez-ip.net/
29  - http://www.justlinux.com/
30  - http://www.dhs.org/
31  - http://www.dyndns.org/
32  - http://www.ods.org/
33  - http://gnudip.cheapnet.net/ (GNUDip)
34  - http://www.dyn.ca/ (GNUDip)
35  - http://www.tzo.com/
36  - http://www.easydns.com/
37  - http://www.dyns.cx/
38  - http://www.hn.org/
39  - http://www.zoneedit.com/
40
41 It is pure C and works on Linux, *BSD and Solaris.
42
43 Don't forget to create your own config file (in
44 /etc/ez-ipupdate.conf). You can find some examples in
45 %{_docdir}/%{name}-%{version}.
46
47 %description -l pl.UTF-8
48 ez-ipupdate to małe narzędzie do uaktualniania nazwy hosta w dowolnym
49 serwisie dynamicznego DNS spośród:
50  - http://www.ez-ip.net/
51  - http://www.justlinux.com/
52  - http://www.dhs.org/
53  - http://www.dyndns.org/
54  - http://www.ods.org/
55  - http://gnudip.cheapnet.net/ (GNUDip)
56  - http://www.dyn.ca/ (GNUDip)
57  - http://www.tzo.com/
58  - http://www.easydns.com/
59  - http://www.dyns.cx/
60  - http://www.hn.org/
61  - http://www.zoneedit.com/
62
63 Jest napisane w czystym C i działa na Linuksie, *BSD oraz Solarisie.
64
65 Nie należy zapomnieć o utworzeniu własnego pliku konfiguracyjnego
66 (/etc/ez-ipupdate.conf). Przykład można znaleźć w katalogu
67 %{_docdir}/%{name}-%{version}.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72 %patch1 -p1
73 %patch2 -p1
74
75 %build
76 install /usr/share/automake/config.* .
77 %{__aclocal}
78 %{__autoconf}
79 %configure
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig}
85
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
90 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
91 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
92
93 %{__perl} -pi -e "s|/usr/local/bin|%{_bindir}|" *.conf
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post
99 /sbin/chkconfig --add %{name}
100 %service %{name} restart "%{name} daemon"
101
102 %preun
103 if [ "$1" = "0" ]; then
104         %service %{name} stop
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.0702 seconds and 3 git commands to generate.