]>
Commit | Line | Data |
---|---|---|
f9bbbc7f | 1 | Summary: Client for Dynamic DNS Services |
d222f31d | 2 | Summary(pl.UTF-8): Klient dla serwisów dynamicznego DNS |
8a074274 AM |
3 | Name: ez-ipupdate |
4 | Version: 3.0.11b8 | |
12932fb9 | 5 | Release: 5 |
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 |
66a94923 | 12 | Patch0: %{name}-CAN-2004-0980.patch |
ae68ecd8 | 13 | URL: http://ez-ipupdate.com/ |
8a074274 AM |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
c0c0300c | 16 | BuildRequires: perl-base |
8983d849 | 17 | BuildRequires: rpmbuild(macros) >= 1.268 |
c0c0300c | 18 | Requires(post,preun): /sbin/chkconfig |
d9e87858 | 19 | Requires: rc-scripts |
8a074274 AM |
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: | |
c0c0300c JB |
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 | |
8983d849 ER |
41 | /etc/ez-ipupdate.conf). You can find some examples in |
42 | %{_docdir}/%{name}-%{version}. | |
8a074274 | 43 | |
d222f31d JR |
44 | %description -l pl.UTF-8 |
45 | ez-ipupdate to małe narzędzie do uaktualniania nazwy hosta w dowolnym | |
46 | serwisie dynamicznego DNS spośród: | |
c0c0300c JB |
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/ | |
8a074274 | 59 | |
d222f31d | 60 | Jest napisane w czystym C i działa na Linuksie, *BSD oraz Solarisie. |
8a074274 | 61 | |
d222f31d JR |
62 | Nie należy zapomnieć o utworzeniu własnego pliku konfiguracyjnego |
63 | (/etc/ez-ipupdate.conf). Przykład można znaleźć w katalogu | |
8983d849 | 64 | %{_docdir}/%{name}-%{version}. |
8a074274 AM |
65 | |
66 | %prep | |
67 | %setup -q | |
66a94923 | 68 | %patch0 -p0 |
8a074274 AM |
69 | |
70 | %build | |
d0fa7d64 | 71 | install /usr/share/automake/config.* . |
8a074274 AM |
72 | %{__aclocal} |
73 | %{__autoconf} | |
74 | %configure | |
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
e4cc5ad9 | 79 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig} |
8a074274 AM |
80 | |
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
c0c0300c | 84 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
e4cc5ad9 | 85 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
8a074274 AM |
86 | touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
87 | ||
e4cc5ad9 | 88 | %{__perl} -pi -e "s|/usr/local/bin|%{_bindir}|" *.conf |
8a074274 AM |
89 | |
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post | |
94 | /sbin/chkconfig --add %{name} | |
8983d849 | 95 | %service %{name} restart "%{name} daemon" |
8a074274 AM |
96 | |
97 | %preun | |
98 | if [ "$1" = "0" ]; then | |
8983d849 | 99 | %service %{name} stop |
1921b7c1 | 100 | /sbin/chkconfig --del %{name} |
8a074274 AM |
101 | fi |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
c0c0300c | 105 | %doc README CHANGELOG *.conf |
8a074274 | 106 | %attr(755,root,root) %{_bindir}/* |
d9e87858 ER |
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} | |
c0c0300c | 109 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |