]> git.pld-linux.org Git - SPECS.git/blob - openntpd.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / openntpd.spec
1 Summary:        FREE and easy to use implementation of the Network Time Protocol
2 Summary(pl.UTF-8):      Wolnodostępna i łatwa w użyciu implementacja protokołu NTP
3 Name:           openntpd
4 Version:        6.0p1
5 Release:        1
6 License:        BSD
7 Group:          Daemons
8 Source0:        https://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/%{name}-%{version}.tar.gz
9 # Source0-md5:  9388979cc2713551bfbdfb3864291abe
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
12 Source3:        %{name}.service
13 URL:            http://www.openntpd.org/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gettext-tools
17 BuildRequires:  intltool
18 BuildRequires:  openssl-devel
19 BuildRequires:  rpmbuild(macros) >= 1.647
20 Requires(post,preun):   /sbin/chkconfig
21 Requires(post,preun,postun):    systemd-units >= 38
22 Requires:       rc-scripts
23 Requires:       systemd-units >= 0.38
24 Provides:       ntpclient
25 Provides:       ntpdaemon
26 Obsoletes:      ntpclient
27 Obsoletes:      ntpdaemon
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         privsepdir      /usr/share/empty
31
32 %description
33 OpenNTPD is a FREE, easy to use implementation of the Network Time
34 Protocol.
35
36 It provides the ability to sync the local clock to remote NTP servers
37 and can act as NTP server itself, redistributing the local clock.
38
39 %description -l pl.UTF-8
40 OpenNTPD to wolnodostępna, łatwa w użyciu implementacja protokołu NTP
41 (Network Time Protocol).
42
43 Daje możliwość synchronizacji lokalnego zegara ze zdalnymi serwerami
44 NTP i może działać samemu jako serwer NTP, rozpowszechniając lokalny
45 zegar.
46
47 %prep
48 %setup -q
49
50 %build
51 %configure \
52         --with-privsep-path=%{privsepdir} \
53         --with-privsep-user=nobody
54
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \
60         $RPM_BUILD_ROOT%{systemdunitdir}
61
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntpd
66 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ntpd
67
68 install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/ntpd.service
69
70 %post
71 /sbin/chkconfig --add ntpd
72 %service ntpd restart "OpenNTP Daemon"
73 %systemd_post ntpd.service
74
75 %preun
76 if [ "$1" = "0" ]; then
77         %service ntpd stop
78         /sbin/chkconfig --del ntpd
79 fi
80 %systemd_preun ntpd.service
81
82 %postun
83 %systemd_reload
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc README ChangeLog
91 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ntpd.conf
92 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ntpd
93 %attr(754,root,root) /etc/rc.d/init.d/ntpd
94 %attr(755,root,root) %{_sbindir}/ntpctl
95 %attr(755,root,root) %{_sbindir}/ntpd
96 %{systemdunitdir}/ntpd.service
97 %{_mandir}/man5/ntpd.conf.5*
98 %{_mandir}/man8/ntpctl.8*
99 %{_mandir}/man8/ntpd.8*
This page took 0.699568 seconds and 3 git commands to generate.