]>
Commit | Line | Data |
---|---|---|
f9bbbc7f | 1 | Summary: Client for Dynamic DNS Services |
a03d990a | 2 | Summary(pl.UTF-8): Klient dla serwisów dynamicznego DNS |
8a074274 AM |
3 | Name: ez-ipupdate |
4 | Version: 3.0.11b8 | |
ef6d6fdd | 5 | Release: 6 |
8a074274 | 6 | License: GPL |
8983d849 | 7 | Group: Networking |
ae68ecd8 | 8 | Source0: http://ez-ipupdate.com/dist/%{name}-%{version}.tar.gz |
8a074274 AM |
9 | # Source0-md5: 000211add4c4845ffa4211841bff4fb0 |
10 | Source1: %{name}.init | |
e4cc5ad9 | 11 | Source2: %{name}.config |
ef6d6fdd AM |
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 | |
ae68ecd8 | 16 | URL: http://ez-ipupdate.com/ |
8a074274 AM |
17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
c0c0300c | 19 | BuildRequires: perl-base |
8983d849 | 20 | BuildRequires: rpmbuild(macros) >= 1.268 |
c0c0300c | 21 | Requires(post,preun): /sbin/chkconfig |
d9e87858 | 22 | Requires: rc-scripts |
8a074274 AM |
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: | |
c0c0300c JB |
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 | |
8983d849 ER |
44 | /etc/ez-ipupdate.conf). You can find some examples in |
45 | %{_docdir}/%{name}-%{version}. | |
8a074274 | 46 | |
d222f31d JR |
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: | |
c0c0300c JB |
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/ | |
8a074274 | 62 | |
d222f31d | 63 | Jest napisane w czystym C i działa na Linuksie, *BSD oraz Solarisie. |
8a074274 | 64 | |
d222f31d JR |
65 | Nie należy zapomnieć o utworzeniu własnego pliku konfiguracyjnego |
66 | (/etc/ez-ipupdate.conf). Przykład można znaleźć w katalogu | |
8983d849 | 67 | %{_docdir}/%{name}-%{version}. |
8a074274 AM |
68 | |
69 | %prep | |
70 | %setup -q | |
ef6d6fdd AM |
71 | %patch0 -p1 |
72 | %patch1 -p1 | |
73 | %patch2 -p1 | |
8a074274 AM |
74 | |
75 | %build | |
d0fa7d64 | 76 | install /usr/share/automake/config.* . |
8a074274 AM |
77 | %{__aclocal} |
78 | %{__autoconf} | |
79 | %configure | |
80 | %{__make} | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
e4cc5ad9 | 84 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig} |
8a074274 AM |
85 | |
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
c0c0300c | 89 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
e4cc5ad9 | 90 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
8a074274 AM |
91 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
92 | ||
e4cc5ad9 | 93 | %{__perl} -pi -e "s|/usr/local/bin|%{_bindir}|" *.conf |
8a074274 AM |
94 | |
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post | |
99 | /sbin/chkconfig --add %{name} | |
8983d849 | 100 | %service %{name} restart "%{name} daemon" |
8a074274 AM |
101 | |
102 | %preun | |
103 | if [ "$1" = "0" ]; then | |
8983d849 | 104 | %service %{name} stop |
1921b7c1 | 105 | /sbin/chkconfig --del %{name} |
8a074274 AM |
106 | fi |
107 | ||
108 | %files | |
109 | %defattr(644,root,root,755) | |
c0c0300c | 110 | %doc README CHANGELOG *.conf |
8a074274 | 111 | %attr(755,root,root) %{_bindir}/* |
d9e87858 ER |
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} | |
c0c0300c | 114 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |