]> git.pld-linux.org Git - SPECS.git/blob - noip.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / noip.spec
1 Summary:        noip - Linux client for the noip.com dynamic DNS service
2 Summary(pl.UTF-8):      noip - linuksowy klient serwisu dynamicznego DNS noip.com
3 Name:           noip
4 Version:        2.1.9
5 Release:        3
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://www.noip.com/client/linux/%{name}-duc-linux.tar.gz
9 # Source0-md5:  eed8e9ef9edfb7ddc36e187de867fe64
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
12 Patch0:         %{name}-Makefile.patch
13 Patch1:         %{name}-config_location.patch
14 Patch2:         format-security.patch
15 URL:            http://www.noip.com/
16 BuildRequires:  rpmbuild(macros) >= 1.268
17 Requires(post,preun):   /sbin/chkconfig
18 Requires:       rc-scripts
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 This is the NoIP.com Dynamic DNS update client page.
23
24 When configured correctly, the client will check your IP address at a
25 given time interval checking to see if your IP has changed. If your IP
26 address has changed it will notify NoIP DNS servers and update the IP
27 corresponding to your NoIP/NoIP+ hostname.
28
29 NOTE: You must add hostnames on the website <http://www.noip.com>
30 first before you can have the updater update them.
31
32 %description -l pl.UTF-8
33 To jest klient aktualizujący nasz wpis w systemie NoIP.com
34
35 Dobrze skonfigurowany klient będzie sprawdzał dany adres IP w
36 określonych odstępach czasu, aby wykryć zmiany. Jeśli adres IP się
37 zmieni, klient poinformuje serwery DNS NoIP i zaktualizuje numer IP
38 odnoszący się do odpowiedniej nazwy hosta w systemie NoIP/NoIP+.
39
40 UWAGA: aktualizacja nazw hostów za pomocą tego programu będzie możliwa
41 po ich dodaniu na stronie <http://www.noip.com>.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 %patch1 -p1
47 %patch2 -p1
48 %{__mv} %{name}2.c %{name}.c
49
50 %build
51 %{__make} \
52         PREFIX=%{_prefix} \
53         CONFDIR=%{_sysconfdir} \
54         CC="%{__cc}" \
55         CFLAGS="%{rpmcflags}"
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
60 %{__make} install \
61         CONFDIR=%{_sysconfdir} \
62         PREFIX=%{_prefix} \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
66 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
67 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 /sbin/chkconfig --add noip
74 %service noip restart "noip client daemon"
75
76 %preun
77 if [ "$1" = "0" ]; then
78         %service noip stop
79         /sbin/chkconfig --del noip
80 fi
81
82 %files
83 %defattr(644,root,root,755)
84 %doc README.FIRST
85 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
86 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
87 %attr(4750,root,adm) %{_sbindir}/noip
88 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.179282 seconds and 3 git commands to generate.