blob: 971fe5931d5e386b3b110a09edfa54de30af19c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
Summary: A time server for synchronizing networked machines' clocks.
Name: intimed
Version: 1.10
Release: 11
Copyright: freeware
Group: Daemons
Group(pl): Servery
Source0: ftp://sunsite.unc.edu/pub/Linux/system/network/sunacm/Other/intimed/intimed-1.10.tar.gz
Source1: timedt.inetd
Source2: timedu.inetd
Prereq: rc-inetd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
The intimed package contains a server (in.timed), which keeps networked
machines' clocks correctly synchronized to the server's time.
Install intimed if you need a network time server.
%prep
%setup -q -c
%build
make CFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig/rc-inetd}
install -s in.timed $RPM_BUILD_ROOT%{_sbindir}
install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/timedt
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/timedu
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ -f /var/lock/subsys/rc-inetd ]; then
/etc/rc.d/init.d/rc-inetd reload 1>&2
else
echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
fi
%postun
if [ -f /var/lock/subsys/rc-inetd ]; then
/etc/rc.d/init.d/rc-inetd reload
fi
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/in.timed
%attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/rc-inetd/*
|