From f9f391f1fd08065f17a6fe9743c590142abc4e17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 1 Jan 2004 17:35:38 +0000 Subject: [PATCH] - initial pld release Changed files: freedt.spec -> 1.1 --- freedt.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 freedt.spec diff --git a/freedt.spec b/freedt.spec new file mode 100644 index 0000000..70bb833 --- /dev/null +++ b/freedt.spec @@ -0,0 +1,61 @@ +Summary: freedt is a reimplementation of Dan Bernstein's daemontools +Name: freedt +Version: 0.18 +Release: 1 +License: GPL +Group: Networking/Admin +Source0: http://offog.org/files/%{name}-%{version}.tar.gz +# Source0-md5: 7751ecf870b58cb5d3725ca209339fe6 +Source2: %{name}.sysconfig +Source3: %{name}.init +URL: http://offog.org/code/freedt.html +Requires(post,preun): /sbin/chkconfig +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +freedt currently includes feature-equivalent replacements for argv0, envdir, envuidgid, setlock, setuidgid, softlimit, supervise, svc, svok, svscan, svstat and recordio. It also includes dumblog (a simple multilog replacement), mkservice (a script for automatically creating service directories), anonidentd (an anonimising identd implementation) and ratelimit (a bandwidth-limiting filter along the lines of recordio). All the tools include usage messages; for instance, do "ratelimit + +%prep +%setup -q + +%build +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ + $RPM_BUILD_ROOT/var/lib/service + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/svscan +install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svscan + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/chkconfig --add svscan +if [ -f /var/lock/subsys/svscan ]; then + /etc/rc.d/init.d/svscan restart >&2 +else + echo "Execute \"/etc/rc.d/init.d/svscan start\" to start svscan daemon." +fi + +%preun +if [ "$1" = "0" ]; then + if [ -f /var/lock/subsys/svscan ]; then + /etc/rc.d/init.d/svscan stop >&2 + fi + /sbin/chkconfig --del svscan +fi + +%files +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog README +%attr(755,root,root) %{_bindir}/* +%attr(700,root,root) /var/lib/service +%attr(754,root,root) /etc/rc.d/init.d/svscan +%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/svscan -- 2.44.0