]> git.pld-linux.org Git - SPECS.git/blob - inadyn-mt.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / inadyn-mt.spec
1 Summary:        Dynamic DNS Client
2 Name:           inadyn-mt
3 Version:        2.24.36
4 Release:        1
5 License:        GPL v3
6 Group:          Daemons
7 Source0:        http://downloads.sourceforge.net/inadyn-mt/%{name}.v.0%{version}.tar.gz
8 # Source0-md5:  14c044a2754417b344be364eeccc6779
9 Source1:        %{name}.conf
10 Source2:        inadyn.service
11 Source3:        inadyn-nm-dispatcher
12 Patch1:         sig11.patch
13 URL:            http://inadyn-mt.sourceforge.net/
14 BuildRequires:  libao-devel
15 BuildRequires:  rpmbuild(macros) >= 1.647
16 Requires:       systemd-units >= 38
17 Obsoletes:      inadyn < 2.24
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 INADYN-MT is a dynamic DNS client. It maintains the IP address of a
22 host name. It periodically checks wheather the IP address stored by
23 the DSN server is the real current address of the machine that is
24 running INADYN-MT.
25
26 Before using inadyn-mt for the first time you must use the DynDNS
27 provider's web interface to create the entry for the hostname. You
28 should then fill in /etc/inadyn.conf with the appropriate detail
29
30 %prep
31 %setup -q -n %{name}.v.0%{version}
32 %patch1 -p1
33 %{__rm} -r bin
34
35 %build
36 %configure
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},%{_mandir}/man{5,8}}
42
43 install -p src/inadyn-mt $RPM_BUILD_ROOT%{_sbindir}/inadyn
44 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
45
46 cp -p man/inadyn.8 $RPM_BUILD_ROOT%{_mandir}/man8
47 cp -p man/inadyn.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
48
49 install -d $RPM_BUILD_ROOT%{_datadir}/inadyn-mt/lang
50 cp -p lang/* $RPM_BUILD_ROOT%{_datadir}/inadyn-mt/lang
51
52 install -d $RPM_BUILD_ROOT%{_datadir}/inadyn-mt/extra
53 cp -a extra/* $RPM_BUILD_ROOT%{_datadir}/inadyn-mt/extra
54
55 install -d $RPM_BUILD_ROOT%{systemdunitdir}
56 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}
57
58 install -d $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher
59 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher/30-inadyn
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 %systemd_post inadyn.service
66
67 %preun
68 %systemd_preun inadyn.service
69
70 %postun
71 %systemd_reload
72
73 %files
74 %defattr(644,root,root,755)
75 %doc readme.html
76 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
77 %attr(755,root,root) %{_sysconfdir}/NetworkManager/dispatcher/30-inadyn
78 %attr(755,root,root) %{_sbindir}/inadyn
79 %{systemdunitdir}/inadyn.service
80 %{_mandir}/man5/inadyn.conf.5*
81 %{_mandir}/man8/inadyn.8*
82 %dir %{_datadir}/%{name}
83 %dir %{_datadir}/inadyn-mt/lang
84 %{_datadir}/inadyn-mt/lang/en.lng
85 %{_datadir}/%{name}/extra
This page took 0.128233 seconds and 3 git commands to generate.