]> git.pld-linux.org Git - packages/ntp.git/blame - ntp.spec
- ntpdaemon/ntpclient are the virtuals with openntp
[packages/ntp.git] / ntp.spec
CommitLineData
df3fadd8 1%include /usr/lib/rpm/macros.perl
71bab42e 2Summary: Network Time Protocol utilities
fcc994b7
ER
3Summary(pl.UTF-8): Narzędzia do synchronizacji czasu (Network Time Protocol)
4Summary(pt_BR.UTF-8): Network Time Protocol versão 4
45771d3d 5Name: ntp
7f599231 6Version: 4.2.4p8
bbd786c4 7Release: 2
a030fe3d 8License: distributable
71bab42e 9Group: Daemons
5aa7cc17 10Source0: http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/%{name}-%{version}.tar.gz
7f599231 11# Source0-md5: fe137056e7e611798a46971a783567ce
28dfddc3 12Source1: %{name}.conf
13Source2: %{name}.keys
14Source3: %{name}.init
15Source4: %{name}.sysconfig
bc6615d5
ER
16Source5: %{name}-client.init
17Source6: %{name}-client.sysconfig
18Source7: %{name}-manpages.tar.gz
19# Source7-md5: 208fcc9019e19ab26d28e4597290bffb
29f00086 20Patch0: %{name}-time.patch
dbdd74ae 21Patch1: %{name}-no_libelf.patch
262e8067 22Patch2: %{name}-ipv6.patch
e35272e3 23Patch3: %{name}-openssl_check.patch
9cbac658 24Patch4: %{name}-clock_settime.patch
636118eb 25Patch5: %{name}-md5.patch
89dff987 26Patch6: %{name}-nano.patch
7f599231 27Patch7: %{name}-manpage.patch
6cd8a392 28URL: http://www.ntp.org/
8338fb6d 29BuildRequires: autoconf
1ef6c8b4 30BuildRequires: automake
61dbaaf1 31BuildRequires: libcap-devel
8338fb6d 32BuildRequires: libtool
e35272e3 33BuildRequires: openssl-devel >= 0.9.7d
ba10b9ba 34BuildRequires: readline-devel >= 4.2
df3fadd8 35BuildRequires: rpm-perlprov >= 4.1-13
b9625068 36BuildRequires: rpmbuild(macros) >= 1.268
19a5162b 37Requires(post,preun): /sbin/chkconfig
8fb3cd7e 38Requires: rc-scripts >= 0.4.0.10
aacb7559
ER
39Provides: ntpdaemon
40Obsoletes: ntpdaemon
9f807058 41Obsoletes: openntpd
1bf23378 42Obsoletes: xntp3
71bab42e 43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%define _sysconfdir /etc/ntp
46%define _bindir %{_sbindir}
47
e24d986a 48%description
28dfddc3 49The Network Time Protocol (NTP) is used to synchronize a computer's
50time with another reference time source. The ntp package contains
51utilities and daemons which will synchronize your computer's time to
a47685aa 52Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
dc3158f9
JB
53ntp package includes ntpd (a daemon which continuously adjusts system
54time), while ntp-client package contains ntpdate (a program for
55retrieving the date and time from remote machines via a network).
71bab42e 56
00337413
JR
57%description -l pl.UTF-8
58Network Time Protocol (NTP) służy do synchronizacji czasu komputera z
59innym, wzorcowym źródłem czasu. Pakiet ntp zawiera narzędzia i demony
60służące do dokładnego synchronizowania czasu komputera według czasu
61uniwersalnego (UTC) poprzez protokół NTP z serwerami NTP. Pakiet ntp
62zawiera ntpd (demona, który w sposób ciągły aktualizuje czas
dc3158f9
JB
63systemowy), natomiast pakiet ntp-client zawiera program ntpdate
64(program do odczytywania daty i czasu z innych maszyn po sieci).
71bab42e 65
00337413
JR
66%description -l pt_BR.UTF-8
67Esta é a versão 4 do Network Time Protocol (NTP). Este protocolo é
68utilizado para sincronizar o relógio do computador com uma outra
69referência de horário. Este pacote contém utilitários e servidores que
70sincronizarão o relógio do seu computador com o horário universal
71(UTC) através do protocolo NTP e utilizando servidores NTP públicos.
608ad171 72
00337413
JR
73Instale o pacote ntp se você necessitar de ferramentas para manter o
74relógio do seu computador constantemente atualizado.
608ad171 75
76Este pacote obsoleta o antigo xntp3.
77
2d74fa1d 78%package doc-html
a47685aa 79Summary: HTML documentation for ntp
fcc994b7
ER
80Summary(pl.UTF-8): Dokumentacja HTML dla ntp
81Summary(pt_BR.UTF-8): Documentação adicional para o pacote ntp
df3fadd8 82Group: Documentation
2d74fa1d 83
84%description doc-html
85HTML documentation for ntp.
86
00337413 87%description doc-html -l pl.UTF-8
2d74fa1d 88Dokumentacja do ntp w HTML.
89
00337413
JR
90%description doc-html -l pt_BR.UTF-8
91Este pacote contém documentação adicional sobre o NTP versão 4.
608ad171 92
e1e25342
MK
93%package client
94Summary: Network Time Protocol client
fcc994b7 95Summary(pl.UTF-8): Klient do synchronizacji czasu po NTP (Network Time Protocol)
df3fadd8 96Group: Applications/Networking
5acc7945 97Requires(post,preun): /sbin/chkconfig
aacb7559
ER
98Provides: ntpclient
99Obsoletes: ntpclient
691bd31f 100Conflicts: ntp < 4.2.0-3
e1e25342
MK
101
102%description client
c771054a 103Network Time Protocol client.
e1e25342 104
9dc70137 105%description client -l pl.UTF-8
c771054a 106Klient do synchronizacji czasu po NTP (Network Time Protocol).
e1e25342 107
2cf5b026
ER
108%package tools
109Summary: NTP tools
110Group: Applications/Networking
a9d9ccd1 111Obsoletes: ntp-ntptrace
2cf5b026
ER
112
113%description tools
114This package contains ntp tools:
115- ntptrace: Trace a chain of NTP servers back to the primary source
116- ntp-wait: Wait for NTP server to synchronize
117
e24d986a 118%prep
bc6615d5 119%setup -q -a7
29f00086 120%patch0 -p1
be68fcb1 121%patch1 -p1
262e8067 122%patch2 -p1
e35272e3 123%patch3 -p1
9cbac658 124%patch4 -p0
636118eb 125%patch5 -p1
89dff987 126%patch6 -p1
7f599231 127%patch7 -p0
71bab42e 128
2c17d85d
AM
129echo 'AM_CONDITIONAL([NEED_LIBOPTS], false)' >> configure.ac
130
71bab42e 131%build
e35272e3 132%{__libtoolize}
2c17d85d 133%{__aclocal} -I m4 -I libopts/m4
e35272e3
JK
134%{__autoconf}
135%{__automake}
636118eb 136%configure \
2c17d85d
AM
137 --with-binsubdir=sbin \
138 --enable-linuxcaps \
139 --enable-getifaddrs \
140 --enable-ipv6 \
282eb0fc 141 --with-crypto=openssl
deb05b4c 142
e24d986a 143%{__make}
71bab42e 144
145%install
146rm -rf $RPM_BUILD_ROOT
bc6615d5 147install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,cron.hourly},%{_mandir}/man1}
71bab42e 148
1bf23378 149%{__make} install \
150 DESTDIR=$RPM_BUILD_ROOT
71bab42e 151
28dfddc3 152install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ntp.conf
153install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/keys
e1e25342 154install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntpd
bc6615d5 155install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntp
e1e25342 156install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/ntpd
bc6615d5
ER
157install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ntp
158install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
71bab42e 159
df3fadd8 160cat > $RPM_BUILD_ROOT/etc/cron.hourly/ntp <<'EOF'
394789ea 161#!/bin/sh
df3fadd8 162/sbin/service ntp cronsettime
394789ea
AM
163EOF
164
71bab42e 165%clean
be68fcb1 166rm -rf $RPM_BUILD_ROOT
71bab42e 167
168%post
e1e25342 169/sbin/chkconfig --add ntpd
b9625068 170%service ntpd restart "ntpd daemon"
e1e25342
MK
171
172%preun
173if [ "$1" = "0" ]; then
b9625068 174 %service ntpd stop
e1e25342 175 /sbin/chkconfig --del ntpd
a1183963 176 rm -f /etc/ntp/drift
e1e25342
MK
177fi
178
179%post client
d470477a 180/sbin/chkconfig --add ntp
b9625068 181%service ntp restart
e24d986a 182
e1e25342 183%preun client
d470477a 184if [ "$1" = "0" ]; then
b9625068 185 %service ntp stop
d470477a 186 /sbin/chkconfig --del ntp
187fi
71bab42e 188
189%files
190%defattr(644,root,root,755)
38034725 191%doc NEWS TODO WHERE-TO-START conf/*.conf COPYRIGHT
c771054a 192%attr(750,root,root) %dir %{_sysconfdir}
8fb3cd7e 193%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
8fb3cd7e 194%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ntpd
2cf5b026
ER
195%attr(754,root,root) /etc/rc.d/init.d/ntpd
196%attr(755,root,root) %{_sbindir}/ntpd
197%attr(755,root,root) %{_sbindir}/ntpdc
198%attr(755,root,root) %{_sbindir}/ntp-keygen
199%attr(755,root,root) %{_sbindir}/ntpq
200%attr(755,root,root) %{_sbindir}/ntptime
201%attr(755,root,root) %{_sbindir}/sntp
202%attr(755,root,root) %{_sbindir}/tickadj
203%{_mandir}/man1/ntpd.1*
204%{_mandir}/man1/ntpdc.1*
205%{_mandir}/man1/ntpdsim.1*
206%{_mandir}/man1/ntp-keygen.1*
207%{_mandir}/man1/ntpq.1*
208%{_mandir}/man1/ntptime.1*
209%{_mandir}/man1/sntp.1*
210
211%files tools
df3fadd8
ER
212%defattr(644,root,root,755)
213%attr(755,root,root) %{_sbindir}/ntptrace
2cf5b026 214%attr(755,root,root) %{_sbindir}/ntp-wait
bc6615d5 215%{_mandir}/man1/ntptrace*
2d74fa1d 216
217%files doc-html
a47685aa 218%defattr(644,root,root,755)
2d74fa1d 219%doc html/*
e1e25342
MK
220
221%files client
b1da2ebb 222%defattr(644,root,root,755)
38034725 223%doc COPYRIGHT
e1e25342
MK
224%attr(755,root,root) %{_sbindir}/ntpdate
225%attr(754,root,root) /etc/rc.d/init.d/ntp
394789ea 226%attr(754,root,root) /etc/cron.hourly/ntp
8fb3cd7e 227%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ntp
bc6615d5 228%{_mandir}/man1/ntpdate*
This page took 0.104815 seconds and 4 git commands to generate.