]>
Commit | Line | Data |
---|---|---|
90a82b10 | 1 | # TODO: |
a4cc90b2 ER |
2 | # - enable and package ntpdsim? |
3 | # - net-snmp-ntpd needs initscript | |
6e00857d | 4 | # - update FC patches |
8f6c2b65 JK |
5 | # |
6 | # Conditional build: | |
7 | %bcond_without avahi # disable DNS-SD support via Avahi | |
7b176879 | 8 | %bcond_with seccomp # enable experimental support for libseccomp sandboxing |
a4cc90b2 | 9 | |
df3fadd8 | 10 | %include /usr/lib/rpm/macros.perl |
71bab42e | 11 | Summary: Network Time Protocol utilities |
fcc994b7 ER |
12 | Summary(pl.UTF-8): Narzędzia do synchronizacji czasu (Network Time Protocol) |
13 | Summary(pt_BR.UTF-8): Network Time Protocol versão 4 | |
45771d3d | 14 | Name: ntp |
aade2e58 | 15 | Version: 4.2.8p3 |
7b176879 | 16 | Release: 2 |
a030fe3d | 17 | License: distributable |
aa729c5d | 18 | Group: Networking/Daemons |
5aa7cc17 | 19 | Source0: http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/%{name}-%{version}.tar.gz |
aade2e58 | 20 | # Source0-md5: b98b0cbb72f6df04608e1dd5f313808b |
28dfddc3 | 21 | Source1: %{name}.conf |
22 | Source2: %{name}.keys | |
39873f43 ER |
23 | Source3: %{name}d.init |
24 | Source4: %{name}d.sysconfig | |
25 | Source5: %{name}date.init | |
26 | Source6: %{name}date.sysconfig | |
bc6615d5 ER |
27 | Source7: %{name}-manpages.tar.gz |
28 | # Source7-md5: 208fcc9019e19ab26d28e4597290bffb | |
299584e5 ER |
29 | Source10: %{name}date-wrapper |
30 | Source11: %{name}d.service | |
31 | Source12: %{name}date.service | |
87172492 | 32 | Source13: http://www.ietf.org/timezones/data/leap-seconds.list |
db90c4a2 | 33 | # Source13-md5: e99a84cf28b14c77fba76c05565604ac |
6e00857d | 34 | Patch0: %{name}-build.patch |
dbdd74ae | 35 | Patch1: %{name}-no_libelf.patch |
262e8067 | 36 | Patch2: %{name}-ipv6.patch |
0ffcfbfc KK |
37 | Patch3: %{name}-nano.patch |
38 | Patch4: %{name}-no_avahi.patch | |
72596e38 | 39 | Patch5: %{name}-printf_format_string.patch |
a8809dbd ER |
40 | # FC patches + 100 |
41 | Patch101: %{name}-4.2.6p1-sleep.patch | |
42 | Patch102: %{name}-4.2.6p1-droproot.patch | |
43 | Patch103: %{name}-4.2.6p1-bcast.patch | |
44 | Patch104: %{name}-4.2.6p1-cmsgalign.patch | |
45 | Patch105: %{name}-4.2.6p1-linkfastmath.patch | |
a8809dbd ER |
46 | Patch107: %{name}-4.2.6p1-retcode.patch |
47 | Patch108: %{name}-4.2.6p1-rtnetlink.patch | |
5e943971 | 48 | Patch110: %{name}-logdefault.patch |
15931ca5 | 49 | Patch111: %{name}-4.2.6p1-mlock.patch |
6cd8a392 | 50 | URL: http://www.ntp.org/ |
8338fb6d | 51 | BuildRequires: autoconf |
6e00857d | 52 | BuildRequires: autogen-devel |
1ef6c8b4 | 53 | BuildRequires: automake |
8f6c2b65 | 54 | %{?with_avahi:BuildRequires: avahi-compat-libdns_sd-devel} |
61dbaaf1 | 55 | BuildRequires: libcap-devel |
6e00857d | 56 | BuildRequires: libevent-devel |
8ee97dcb | 57 | BuildRequires: libnl-devel |
7b176879 | 58 | %{?with_seccomp:BuildRequires: libseccomp-devel} |
8338fb6d | 59 | BuildRequires: libtool |
5ecb988f | 60 | BuildRequires: net-snmp-devel |
e35272e3 | 61 | BuildRequires: openssl-devel >= 0.9.7d |
28341528 | 62 | BuildRequires: pciutils-devel |
ba10b9ba | 63 | BuildRequires: readline-devel >= 4.2 |
df3fadd8 | 64 | BuildRequires: rpm-perlprov >= 4.1-13 |
034cfc5e | 65 | BuildRequires: rpmbuild(macros) >= 1.626 |
71bab42e | 66 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
67 | ||
68 | %define _sysconfdir /etc/ntp | |
69 | %define _bindir %{_sbindir} | |
a4cc90b2 | 70 | %define mibdir %{_datadir}/mibs |
71bab42e | 71 | |
e24d986a | 72 | %description |
28dfddc3 | 73 | The Network Time Protocol (NTP) is used to synchronize a computer's |
74 | time with another reference time source. The ntp package contains | |
75 | utilities and daemons which will synchronize your computer's time to | |
a47685aa | 76 | Coordinated Universal Time (UTC) via the NTP protocol and NTP servers. |
71bab42e | 77 | |
00337413 JR |
78 | %description -l pl.UTF-8 |
79 | Network Time Protocol (NTP) służy do synchronizacji czasu komputera z | |
80 | innym, wzorcowym źródłem czasu. Pakiet ntp zawiera narzędzia i demony | |
81 | służące do dokładnego synchronizowania czasu komputera według czasu | |
cb15c3e4 | 82 | uniwersalnego (UTC) poprzez protokół NTP z serwerami NTP. |
71bab42e | 83 | |
00337413 JR |
84 | %description -l pt_BR.UTF-8 |
85 | Esta é a versão 4 do Network Time Protocol (NTP). Este protocolo é | |
86 | utilizado para sincronizar o relógio do computador com uma outra | |
87 | referência de horário. Este pacote contém utilitários e servidores que | |
88 | sincronizarão o relógio do seu computador com o horário universal | |
89 | (UTC) através do protocolo NTP e utilizando servidores NTP públicos. | |
608ad171 | 90 | |
00337413 JR |
91 | Instale o pacote ntp se você necessitar de ferramentas para manter o |
92 | relógio do seu computador constantemente atualizado. | |
608ad171 | 93 | |
cb15c3e4 ER |
94 | %package -n ntpd |
95 | Summary: The NTP daemon | |
96 | Summary(pl.UTF-8): Narzędzia do synchronizacji czasu (Network Time Protocol) | |
97 | Summary(pt_BR.UTF-8): Network Time Protocol versão 4 | |
98 | Group: Daemons | |
99 | Requires(post,preun): /sbin/chkconfig | |
932bc1ee ER |
100 | Requires(postun): /usr/sbin/groupdel |
101 | Requires(postun): /usr/sbin/userdel | |
102 | Requires(pre): /bin/id | |
103 | Requires(pre): /usr/bin/getgid | |
104 | Requires(pre): /usr/sbin/groupadd | |
105 | Requires(pre): /usr/sbin/useradd | |
6ff9635b | 106 | Requires(post,preun,postun): systemd-units >= 38 |
0d2671b6 | 107 | Requires: rc-scripts >= 0.4.3.0 |
6ff9635b | 108 | Requires: systemd-units >= 38 |
932bc1ee | 109 | Provides: group(ntp) |
cb15c3e4 ER |
110 | Provides: ntp = %{version}-%{release} |
111 | Provides: ntpdaemon | |
932bc1ee | 112 | Provides: user(ntp) |
f6fec3df | 113 | Obsoletes: ntp < 4.2.4p8-6 |
cb15c3e4 ER |
114 | Obsoletes: ntpdaemon |
115 | Obsoletes: openntpd | |
116 | Obsoletes: xntp3 | |
117 | ||
118 | %description -n ntpd | |
119 | The Network Time Protocol (NTP) is used to synchronize a computer's | |
120 | time with another reference time source. The ntp package contains | |
121 | utilities and daemons which will synchronize your computer's time to | |
122 | Coordinated Universal Time (UTC) via the NTP protocol and NTP servers. | |
123 | ||
124 | This package includes ntpd (a daemon which continuously adjusts system | |
125 | time) | |
126 | ||
127 | %description -n ntpd -l pl.UTF-8 | |
128 | Network Time Protocol (NTP) służy do synchronizacji czasu komputera z | |
129 | innym, wzorcowym źródłem czasu. Pakiet ntp zawiera narzędzia i demony | |
130 | służące do dokładnego synchronizowania czasu komputera według czasu | |
131 | uniwersalnego (UTC) poprzez protokół NTP z serwerami NTP. | |
132 | ||
133 | Pakiet ntp zawiera ntpd (demona, który w sposób ciągły aktualizuje | |
134 | czas systemowy) | |
135 | ||
136 | %description -n ntpd -l pt_BR.UTF-8 | |
137 | Esta é a versão 4 do Network Time Protocol (NTP). Este protocolo é | |
138 | utilizado para sincronizar o relógio do computador com uma outra | |
139 | referência de horário. Este pacote contém utilitários e servidores que | |
140 | sincronizarão o relógio do seu computador com o horário universal | |
141 | (UTC) através do protocolo NTP e utilizando servidores NTP públicos. | |
142 | ||
143 | %package -n ntpdate | |
144 | Summary: Utility to set the date and time via NTP | |
fcc994b7 | 145 | Summary(pl.UTF-8): Klient do synchronizacji czasu po NTP (Network Time Protocol) |
df3fadd8 | 146 | Group: Applications/Networking |
5acc7945 | 147 | Requires(post,preun): /sbin/chkconfig |
932bc1ee ER |
148 | Requires(postun): /usr/sbin/groupdel |
149 | Requires(postun): /usr/sbin/userdel | |
150 | Requires(pre): /bin/id | |
151 | Requires(pre): /usr/bin/getgid | |
152 | Requires(pre): /usr/sbin/groupadd | |
153 | Requires(pre): /usr/sbin/useradd | |
6ff9635b | 154 | Requires(post,preun,postun): systemd-units >= 38 |
b2073411 | 155 | Requires: rc-scripts >= 0.4.3.0 |
6ff9635b | 156 | Requires: systemd-units >= 38 |
92517d76 ER |
157 | Provides: group(ntp) |
158 | Provides: user(ntp) | |
691bd31f | 159 | Conflicts: ntp < 4.2.0-3 |
cb15c3e4 ER |
160 | # for upgrades |
161 | Provides: ntp-client = %{version}-%{release} | |
f6fec3df | 162 | Obsoletes: ntp-client < 4.2.4p8-6 |
92517d76 ER |
163 | # virtual |
164 | Provides: ntpclient | |
165 | Obsoletes: ntpclient | |
e1e25342 | 166 | |
cb15c3e4 ER |
167 | %description -n ntpdate |
168 | ntpdate is a program for retrieving the date and time from NTP | |
169 | servers. | |
e1e25342 | 170 | |
cb15c3e4 | 171 | %description -n ntpdate -l pl.UTF-8 |
c771054a | 172 | Klient do synchronizacji czasu po NTP (Network Time Protocol). |
e1e25342 | 173 | |
a4cc90b2 ER |
174 | %package -n mibs-ntp |
175 | Summary: MIBs for NTP time entities | |
7599a442 | 176 | Summary(pl.UTF-8): Pliki MIB dla elementów czasu NTP |
a4cc90b2 ER |
177 | Group: Applications/System |
178 | Requires: mibs-dirs | |
179 | ||
180 | %description -n mibs-ntp | |
181 | The Management Information Base for NTP time entities. | |
182 | ||
7599a442 JB |
183 | %description -n mibs-ntp -l pl.UTF-8 |
184 | Pliki MIB (Management Information Base) dla elementów czasu NTP | |
185 | ||
a4cc90b2 ER |
186 | %package -n net-snmp-ntpd |
187 | Summary: NTP SNMP subagent for Net-SNMP | |
7599a442 | 188 | Summary(pl.UTF-8): Podagent SNMP NTP dla usługi Net-SNMP |
a4cc90b2 ER |
189 | Group: Daemons |
190 | Requires(post,preun): /sbin/chkconfig | |
191 | Requires: net-snmp | |
192 | Requires: rc-scripts | |
193 | Suggests: mibs-ntp | |
194 | ||
195 | %description -n net-snmp-ntpd | |
196 | NTP SNMP AgentX subagent for Net-SNMP. | |
197 | ||
7599a442 JB |
198 | %description -n net-snmp-ntpd -l pl.UTF-8 |
199 | Podagent SNMP AgentX NTP dla usługi Net-SNMP. | |
200 | ||
2cf5b026 ER |
201 | %package tools |
202 | Summary: NTP tools | |
7599a442 | 203 | Summary(pl.UTF-8): Narzędzia NTP |
2cf5b026 | 204 | Group: Applications/Networking |
a9d9ccd1 | 205 | Obsoletes: ntp-ntptrace |
2cf5b026 ER |
206 | |
207 | %description tools | |
7599a442 | 208 | This package contains NTP tools: |
2cf5b026 ER |
209 | - ntptrace: Trace a chain of NTP servers back to the primary source |
210 | - ntp-wait: Wait for NTP server to synchronize | |
7599a442 JB |
211 | - calc_tickadj: Calculate optimal value for tick given ntp drift file |
212 | ||
213 | %description tools -l pl.UTF-8 | |
214 | Ten pakiet zawiera narzędzia NTP: | |
215 | - ntptrace: śledzenie łańcucha serwerów NTP aż do oryginalnego źródła | |
216 | - ntp-wait: oczekiwanie na synchronizację serwera NTP | |
217 | - calc_tickadj: obliczenie optymalnej wartości dla pliku dryfu ntp | |
2cf5b026 | 218 | |
82f74dd4 ER |
219 | %package doc-html |
220 | Summary: HTML documentation for ntp | |
221 | Summary(pl.UTF-8): Dokumentacja HTML dla ntp | |
222 | Summary(pt_BR.UTF-8): Documentação adicional para o pacote ntp | |
223 | Group: Documentation | |
224 | ||
225 | %description doc-html | |
226 | HTML documentation for ntp. | |
227 | ||
228 | %description doc-html -l pl.UTF-8 | |
229 | Dokumentacja do ntp w HTML. | |
230 | ||
231 | %description doc-html -l pt_BR.UTF-8 | |
232 | Este pacote contém documentação adicional sobre o NTP versão 4. | |
233 | ||
e24d986a | 234 | %prep |
bc6615d5 | 235 | %setup -q -a7 |
29f00086 | 236 | %patch0 -p1 |
be68fcb1 | 237 | %patch1 -p1 |
262e8067 | 238 | %patch2 -p1 |
e35272e3 | 239 | %patch3 -p1 |
0ffcfbfc | 240 | %{!?with_avahi:%patch4 -p1} |
72596e38 | 241 | %patch5 -p1 |
71bab42e | 242 | |
23bc47dc | 243 | ## FC patches |
6e00857d | 244 | #%patch101 -p1 |
eb371d2a | 245 | %patch102 -p1 |
6e00857d | 246 | #%patch103 -p1 |
eb371d2a ER |
247 | %patch104 -p1 |
248 | %patch105 -p1 | |
eb371d2a ER |
249 | %patch107 -p1 |
250 | %patch108 -p1 | |
5e943971 JB |
251 | %patch110 -p1 |
252 | #%patch111 -p1 -- obsolete? | |
6fca7355 | 253 | |
2c17d85d | 254 | echo 'AM_CONDITIONAL([NEED_LIBOPTS], false)' >> configure.ac |
740223e3 | 255 | echo 'AM_CONDITIONAL([NEED_LIBOPTS], false)' >> sntp/configure.ac |
2c17d85d | 256 | |
5e943971 | 257 | %{__rm} sntp/m4/{lt*,libtool}.m4 sntp/libevent/m4/{lt*,libtool}.m4 |
6e00857d | 258 | |
71bab42e | 259 | %build |
e35272e3 | 260 | %{__libtoolize} |
6e00857d | 261 | %{__aclocal} -I sntp/m4 -I sntp/libopts/m4 -I sntp/libevent/m4 |
e35272e3 JK |
262 | %{__autoconf} |
263 | %{__automake} | |
506da0ac | 264 | cd sntp |
265 | %{__libtoolize} | |
6e00857d | 266 | %{__aclocal} -I libopts/m4 -I libevent/m4 |
506da0ac | 267 | %{__autoconf} |
268 | %{__automake} | |
506da0ac | 269 | cd .. |
740223e3 | 270 | |
90a82b10 | 271 | CPPFLAGS="%{rpmcppflags} -I/usr/include/readline" |
636118eb | 272 | %configure \ |
2c17d85d AM |
273 | --with-binsubdir=sbin \ |
274 | --enable-linuxcaps \ | |
275 | --enable-getifaddrs \ | |
7b176879 | 276 | %{?with_seccomp:--enable-libseccomp} \ |
2c17d85d | 277 | --enable-ipv6 \ |
784e30ae | 278 | --enable-ntp-signd \ |
90a82b10 | 279 | --with-lineeditlibs=readline \ |
6e00857d AM |
280 | --with-crypto=openssl \ |
281 | --disable-local-libopts \ | |
282 | --disable-local-libevent | |
deb05b4c | 283 | |
93d5cc3d | 284 | %{__make} -j1 |
71bab42e | 285 | |
286 | %install | |
287 | rm -rf $RPM_BUILD_ROOT | |
4aef70db | 288 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man1,%{systemdunitdir}} \ |
ba8c171f | 289 | $RPM_BUILD_ROOT%{_libexecdir}/systemd/ntp-units.d \ |
e68375ae | 290 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,cron.hourly} |
71bab42e | 291 | |
1bf23378 | 292 | %{__make} install \ |
293 | DESTDIR=$RPM_BUILD_ROOT | |
71bab42e | 294 | |
299584e5 ER |
295 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ntp.conf |
296 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/keys | |
87172492 | 297 | cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/ntp.leapseconds |
299584e5 | 298 | |
740223e3 | 299 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntpd |
cb15c3e4 | 300 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntpdate |
299584e5 ER |
301 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/ntpd |
302 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ntpdate | |
4aef70db | 303 | |
a114c2aa ER |
304 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir}/ntpdate-wrapper |
305 | cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}/ntpd.service | |
306 | cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/ntpdate.service | |
ba8c171f AM |
307 | echo 'ntpd.service' > \ |
308 | $RPM_BUILD_ROOT%{_libexecdir}/systemd/ntp-units.d/50-ntpd.list | |
4aef70db | 309 | |
299584e5 | 310 | cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
71bab42e | 311 | |
c52fbdbb ER |
312 | install -d $RPM_BUILD_ROOT/var/lib/ntp |
313 | touch $RPM_BUILD_ROOT/var/lib/ntp/drift | |
314 | ||
cb15c3e4 | 315 | cat > $RPM_BUILD_ROOT/etc/cron.hourly/ntpdate <<'EOF' |
394789ea | 316 | #!/bin/sh |
7d2f2be2 ER |
317 | # Source function library. |
318 | . /etc/rc.d/init.d/functions | |
319 | ||
a114c2aa ER |
320 | # Source ntpdate configuration |
321 | . /etc/sysconfig/ntpdate | |
322 | ||
323 | is_yes "$NTPDATE_CRON" || exit 0 | |
299584e5 | 324 | exec %{_sbindir}/ntpdate-wrapper |
394789ea AM |
325 | EOF |
326 | ||
a4cc90b2 | 327 | install -d $RPM_BUILD_ROOT%{mibdir} |
299584e5 | 328 | cp -p ntpsnmpd/ntpv4-mib.mib $RPM_BUILD_ROOT%{mibdir} |
a4cc90b2 | 329 | |
aade2e58 | 330 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/{ntp,sntp} |
6e00857d | 331 | |
71bab42e | 332 | %clean |
be68fcb1 | 333 | rm -rf $RPM_BUILD_ROOT |
71bab42e | 334 | |
932bc1ee ER |
335 | %pre -n ntpd |
336 | %groupadd -g 246 ntp | |
337 | %useradd -u 246 -d %{_sysconfdir} -g ntp -c "NTP Daemon" ntp | |
338 | ||
cb15c3e4 | 339 | %post -n ntpd |
e1e25342 | 340 | /sbin/chkconfig --add ntpd |
740223e3 | 341 | %service ntpd restart "NTP Daemon" |
4aef70db | 342 | %systemd_post ntpd.service |
e1e25342 | 343 | |
cb15c3e4 | 344 | %preun -n ntpd |
e1e25342 | 345 | if [ "$1" = "0" ]; then |
b9625068 | 346 | %service ntpd stop |
e1e25342 | 347 | /sbin/chkconfig --del ntpd |
c52fbdbb | 348 | rm -f /var/lib/ntp/drift |
e1e25342 | 349 | fi |
4aef70db | 350 | %systemd_preun ntpd.service |
e1e25342 | 351 | |
932bc1ee ER |
352 | %postun -n ntp |
353 | if [ "$1" = "0" ]; then | |
354 | %userremove ntp | |
355 | %groupremove ntp | |
356 | fi | |
4aef70db JR |
357 | %systemd_reload |
358 | ||
92517d76 ER |
359 | %pre -n ntpdate |
360 | %groupadd -g 246 ntp | |
361 | %useradd -u 246 -d %{_sysconfdir} -g ntp -c "NTP Daemon" ntp | |
362 | ||
cb15c3e4 ER |
363 | %post -n ntpdate |
364 | /sbin/chkconfig --add ntpdate | |
365 | %service ntpdate restart "NTP Date" | |
4aef70db | 366 | %systemd_post ntpdate.service |
e24d986a | 367 | |
cb15c3e4 | 368 | %preun -n ntpdate |
d470477a | 369 | if [ "$1" = "0" ]; then |
cb15c3e4 ER |
370 | %service ntpdate stop |
371 | /sbin/chkconfig --del ntpdate | |
d470477a | 372 | fi |
4aef70db | 373 | %systemd_preun ntpdate.service |
71bab42e | 374 | |
92517d76 ER |
375 | %postun -n ntpdate |
376 | if [ "$1" = "0" ]; then | |
377 | %userremove ntp | |
378 | %groupremove ntp | |
379 | fi | |
4aef70db JR |
380 | %systemd_reload |
381 | ||
7e284bc0 ER |
382 | %triggerun -n ntpd -- ntp < 4.2.4p8-3.14 |
383 | # Prevent preun from ntp from working | |
384 | chmod a-x /etc/rc.d/init.d/ntpd | |
c52fbdbb | 385 | |
7e284bc0 ER |
386 | %triggerpostun -n ntpd -- ntp < 4.2.4p8-3.14 |
387 | # Restore what triggerun removed | |
388 | chmod 754 /etc/rc.d/init.d/ntpd | |
c52fbdbb | 389 | sed -i -e 's,/etc/ntp/drift,/var/lib/ntp/drift,' %{_sysconfdir}/ntp.conf |
7e284bc0 ER |
390 | mv -f /etc/ntp/ntp.drift /var/lib/ntp/drift 2>/dev/null |
391 | mv -f /etc/ntp/drift /var/lib/ntp/drift 2>/dev/null | |
c52fbdbb | 392 | %service -q ntpd restart |
4aef70db JR |
393 | %systemd_trigger ntpd.service |
394 | %systemd_post ntpdate | |
395 | ||
396 | %triggerpostun -n ntpd -- ntpd < 4.2.6p5-2 | |
397 | %systemd_trigger ntpd.service | |
c52fbdbb | 398 | |
45735b52 ER |
399 | %triggerpostun -n ntpdate -- ntp-client < 4.2.4p8-3.2 |
400 | if [ -f /etc/sysconfig/ntp.rpmsave ]; then | |
401 | cp -f /etc/sysconfig/ntpdate{,.rpmnew} | |
402 | mv -f /etc/sysconfig/ntp.rpmsave /etc/sysconfig/ntpdate | |
403 | fi | |
4aef70db JR |
404 | %systemd_trigger ntpdate.service |
405 | ||
406 | %triggerpostun -n ntpdate -- ntpdate < 4.2.6p5-2 | |
407 | %systemd_trigger ntpdate.service | |
45735b52 | 408 | |
cb15c3e4 | 409 | %files -n ntpd |
71bab42e | 410 | %defattr(644,root,root,755) |
38034725 | 411 | %doc NEWS TODO WHERE-TO-START conf/*.conf COPYRIGHT |
c771054a | 412 | %attr(750,root,root) %dir %{_sysconfdir} |
299584e5 ER |
413 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/keys |
414 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ntp.conf | |
87172492 | 415 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ntp.leapseconds |
8fb3cd7e | 416 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ntpd |
2cf5b026 | 417 | %attr(754,root,root) /etc/rc.d/init.d/ntpd |
4aef70db | 418 | %{systemdunitdir}/ntpd.service |
0ab6a8a6 ER |
419 | # dir not handled by systemd in pld |
420 | #%{_libexecdir}/systemd/ntp-units.d/50-ntpd.list | |
2cf5b026 ER |
421 | %attr(755,root,root) %{_sbindir}/ntpd |
422 | %attr(755,root,root) %{_sbindir}/ntpdc | |
423 | %attr(755,root,root) %{_sbindir}/ntp-keygen | |
424 | %attr(755,root,root) %{_sbindir}/ntpq | |
425 | %attr(755,root,root) %{_sbindir}/ntptime | |
426 | %attr(755,root,root) %{_sbindir}/sntp | |
427 | %attr(755,root,root) %{_sbindir}/tickadj | |
aade2e58 | 428 | %attr(755,root,root) %{_sbindir}/update-leap |
2cf5b026 ER |
429 | %{_mandir}/man1/ntpd.1* |
430 | %{_mandir}/man1/ntpdc.1* | |
2cf5b026 ER |
431 | %{_mandir}/man1/ntp-keygen.1* |
432 | %{_mandir}/man1/ntpq.1* | |
433 | %{_mandir}/man1/ntptime.1* | |
434 | %{_mandir}/man1/sntp.1* | |
aade2e58 | 435 | %{_mandir}/man1/update-leap.1* |
7599a442 JB |
436 | %{_mandir}/man5/ntp.conf.5* |
437 | %{_mandir}/man5/ntp.keys.5* | |
2cf5b026 | 438 | |
c52fbdbb ER |
439 | %dir %attr(770,root,ntp) /var/lib/ntp |
440 | %attr(640,ntp,ntp) %ghost /var/lib/ntp/drift | |
441 | ||
cb15c3e4 ER |
442 | %files -n ntpdate |
443 | %defattr(644,root,root,755) | |
444 | %doc COPYRIGHT | |
445 | %attr(755,root,root) %{_sbindir}/ntpdate | |
4aef70db | 446 | %attr(755,root,root) %{_sbindir}/ntpdate-wrapper |
cb15c3e4 ER |
447 | %attr(754,root,root) /etc/rc.d/init.d/ntpdate |
448 | %attr(754,root,root) /etc/cron.hourly/ntpdate | |
449 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ntpdate | |
4aef70db | 450 | %{systemdunitdir}/ntpdate.service |
7599a442 | 451 | %{_mandir}/man1/ntpdate.1* |
cb15c3e4 | 452 | |
a4cc90b2 ER |
453 | %files -n mibs-ntp |
454 | %defattr(644,root,root,755) | |
455 | %{mibdir}/ntpv4-mib.mib | |
456 | ||
457 | %files -n net-snmp-ntpd | |
458 | %defattr(644,root,root,755) | |
936bfaef | 459 | %doc ntpsnmpd/README |
a4cc90b2 ER |
460 | %attr(755,root,root) %{_sbindir}/ntpsnmpd |
461 | %{_mandir}/man1/ntpsnmpd.1* | |
462 | ||
2cf5b026 | 463 | %files tools |
df3fadd8 | 464 | %defattr(644,root,root,755) |
7599a442 | 465 | %attr(755,root,root) %{_sbindir}/calc_tickadj |
2cf5b026 | 466 | %attr(755,root,root) %{_sbindir}/ntp-wait |
7599a442 JB |
467 | %attr(755,root,root) %{_sbindir}/ntptrace |
468 | %dir %{_datadir}/ntp | |
469 | %{_datadir}/ntp/lib | |
470 | %{_mandir}/man1/calc_tickadj.1* | |
471 | %{_mandir}/man1/ntp-wait.1* | |
472 | %{_mandir}/man1/ntptrace.1* | |
2d74fa1d | 473 | |
474 | %files doc-html | |
a47685aa | 475 | %defattr(644,root,root,755) |
2d74fa1d | 476 | %doc html/* |