forked from pld-linux/ez-ipupdate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ez-ipupdate.spec
109 lines (93 loc) · 2.89 KB
/
ez-ipupdate.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Summary: Client for Dynamic DNS Services
Summary(pl.UTF-8): Klient dla serwisów dynamicznego DNS
Name: ez-ipupdate
Version: 3.0.11b8
Release: 5
License: GPL
Group: Networking
Source0: http://ez-ipupdate.com/dist/%{name}-%{version}.tar.gz
# Source0-md5: 000211add4c4845ffa4211841bff4fb0
Source1: %{name}.init
Source2: %{name}.config
Patch0: %{name}-CAN-2004-0980.patch
URL: http://ez-ipupdate.com/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: perl-base
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
ez-ipupdate is a small utility for updating your host name for any of
the dynamic DNS service offered at:
- http://www.ez-ip.net/
- http://www.justlinux.com/
- http://www.dhs.org/
- http://www.dyndns.org/
- http://www.ods.org/
- http://gnudip.cheapnet.net/ (GNUDip)
- http://www.dyn.ca/ (GNUDip)
- http://www.tzo.com/
- http://www.easydns.com/
- http://www.dyns.cx/
- http://www.hn.org/
- http://www.zoneedit.com/
It is pure C and works on Linux, *BSD and Solaris.
Don't forget to create your own config file (in
/etc/ez-ipupdate.conf). You can find some examples in
%{_docdir}/%{name}-%{version}.
%description -l pl.UTF-8
ez-ipupdate to małe narzędzie do uaktualniania nazwy hosta w dowolnym
serwisie dynamicznego DNS spośród:
- http://www.ez-ip.net/
- http://www.justlinux.com/
- http://www.dhs.org/
- http://www.dyndns.org/
- http://www.ods.org/
- http://gnudip.cheapnet.net/ (GNUDip)
- http://www.dyn.ca/ (GNUDip)
- http://www.tzo.com/
- http://www.easydns.com/
- http://www.dyns.cx/
- http://www.hn.org/
- http://www.zoneedit.com/
Jest napisane w czystym C i działa na Linuksie, *BSD oraz Solarisie.
Nie należy zapomnieć o utworzeniu własnego pliku konfiguracyjnego
(/etc/ez-ipupdate.conf). Przykład można znaleźć w katalogu
%{_docdir}/%{name}-%{version}.
%prep
%setup -q
%patch0 -p0
%build
install /usr/share/automake/config.* .
%{__aclocal}
%{__autoconf}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
%{__perl} -pi -e "s|/usr/local/bin|%{_bindir}|" *.conf
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add %{name}
%service %{name} restart "%{name} daemon"
%preun
if [ "$1" = "0" ]; then
%service %{name} stop
/sbin/chkconfig --del %{name}
fi
%files
%defattr(644,root,root,755)
%doc README CHANGELOG *.conf
%attr(755,root,root) %{_bindir}/*
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
%attr(754,root,root) /etc/rc.d/init.d/%{name}