diff options
author | Jan Rękorajski | 1999-10-29 11:25:16 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 929bd764b0e69b447ccb46b6a4213c3dad9e41e8 (patch) | |
tree | 5728946f3c793fad60fcadd0da702b24e22a45aa | |
parent | 471c5efceeb0aae78ff24f16c29a4d1e3f6dc3f3 (diff) | |
download | intimed-929bd764b0e69b447ccb46b6a4213c3dad9e41e8.zip intimed-929bd764b0e69b447ccb46b6a4213c3dad9e41e8.tar.gz |
- added inetd configs
- prereq rc-inetd
- post/preun scripts
Changed files:
intimed.spec -> 1.3
-rw-r--r-- | intimed.spec | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/intimed.spec b/intimed.spec index 5238660..b357662 100644 --- a/intimed.spec +++ b/intimed.spec @@ -1,10 +1,14 @@ Summary: A time server for synchronizing networked machines' clocks. Name: intimed Version: 1.10 -Release: 10 +Release: 11 Copyright: freeware -Group: System Environment/Daemons -Source: ftp://sunsite.unc.edu/pub/Linux/system/network/sunacm/Other/intimed/intimed-1.10.tar.gz +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: /tmp/%{named}-%{version}-root %description @@ -21,13 +25,28 @@ make %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_sbindir} +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 restart 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 restart +fi + %files -%defattr(-,root,root) +%defattr(644,root,root,755) %attr(755,root,root) %{_sbindir}/in.timed |