]> git.pld-linux.org Git - packages/ntp.git/blob - ntp.spec
added URL:
[packages/ntp.git] / ntp.spec
1 Summary:        Network Time Protocol utilities
2 Summary(pl):    Narzêdzia do synchronizacji czasu (Network Time Protocol)
3 Name:           ntp
4 Version:        4.0.99k
5 Release:        7
6 Copyright:      distributable
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        ftp://ftp.udel.edu/pub/ntp/%{name}-%{version}.tar.gz
11 Source1:        %{name}.conf
12 Source2:        %{name}.keys
13 Source3:        %{name}.init
14 Source4:        %{name}.sysconfig
15 Patch0:         %{name}-time.patch
16 Patch1:         %{name}-overflow.patch
17 URL:            http://www.ntp.org/
18 Prereq:         rc-scripts
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _sysconfdir     /etc/ntp
22 %define         _bindir         %{_sbindir}
23
24 %description 
25 The Network Time Protocol (NTP) is used to synchronize a computer's
26 time with another reference time source. The ntp package contains
27 utilities and daemons which will synchronize your computer's time to
28 Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
29 The ntp package includes ntpdate (a program for retrieving the date
30 and time from remote machines via a network) and ntpd (a daemon which
31 continuously adjusts system time).
32
33 %description -l pl
34 Pakiet zawiera narzêdzia i demony s³u¿±ce do dok³adnego
35 synchronizowania czasu Twojego komputera: ntpdate, program podobny do
36 rdatei xntpd, demon aktualizuj±cy czas w sposób ci±g³y.
37
38 %package doc-html
39 Summary:        HTML documentation for ntp
40 Group:          Daemons
41 Group(de):      Server
42 Group(pl):      Serwery
43
44 %description doc-html
45 HTML documentation for ntp.
46
47 %description doc-html
48 Dokumentacja do ntp w HTML.
49
50 %prep 
51 %setup -q
52 %patch0 -p1
53 %patch1 -p1
54
55 %build
56 %configure
57
58 %{__make} 
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}}
63
64 %{__make} install DESTDIR=$RPM_BUILD_ROOT
65
66 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ntp.conf
67 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/keys
68 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntp
69 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/ntp
70
71 gzip -9nf NEWS TODO conf/*.conf
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post
77 /sbin/chkconfig --add ntp
78
79 if [ -f /var/lock/subsys/ntp ]; then
80         /etc/rc.d/init.d/ntp restart >&2
81 else
82         echo "Run \"/etc/rc.d/init.d/ntp start\" to start ntp daemon."
83 fi
84     
85 %preun
86 if [ "$1" = "0" ]; then
87         if [ -f /var/lock/subsys/ntp ]; then
88                 /etc/rc.d/init.d/ntp stop >&2
89         fi
90         /sbin/chkconfig --del ntp
91 fi
92
93 %files
94 %defattr(644,root,root,755)
95 %doc conf/*.gz *.gz
96
97 %attr(750,root,root) %dir %{_sysconfdir}
98 %attr(640,root,root) %config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/*
99 %attr(755,root,root) %{_sbindir}/*
100 %attr(754,root,root) /etc/rc.d/init.d/ntp
101 %attr(640,root,root) %config %verify(not size md5 mtime) /etc/sysconfig/*
102
103 %files doc-html
104 %defattr(644,root,root,755)
105 %doc html/*
This page took 0.033533 seconds and 3 git commands to generate.