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