# $Id: e-smith-runit.spec,v 1.12 2021/03/16 19:53:36 jpp Exp $ Summary: generic support framework for Gerrit Pape's runit package %define name e-smith-runit Name: %{name} %define version 2.6.0 %define release 12 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Networking/Daemons Source: %{name}-%{version}.tar.xz Patch0: e-smith-runit-2.6.0-systemd.patch Patch1: e-smith-runit-2.6.0-bootstrap.patch Patch2: e-smith-runit-2.6.0-bz9688.skipredirect.patch Patch3: e-smith-runit-2.6.0-bz11013-sme-server.target.patch Patch4: e-smith-runit-2.6.0-bz11088-beforenetwork.patch Patch5: e-smith-runit-2.6.0-bz11013-fixunitfile.patch Patch6: e-smith-runit-2.6.0-bz11156-update.patch #Patch7: e-smith-runit-2.6.0-bz9692-cleanup.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRequires: e-smith-devtools BuildArchitectures: noarch Requires: runit >= 1.0.5 Provides: e-smith-daemontools = 1.7.1-09 Obsoletes: e-smith-daemontools Obsoletes: supervise-scripts %changelog * Thu Mar 18 2021 Jean-Philippe Pialasse 2.6.0-12.sme - reverting removal of deamontools [SME: 9692] could be needed for legacy support with rc7.d services * Tue Mar 16 2021 Jean-Philippe Pialasse 2.6.0-11.sme - cleanup of /etc/rc.d [SME: 9692] * Sun Jan 03 2021 Jean-Philipe Pialasse 2.6.0-10.sme - create e-smith-runit-update event [SME: 11156] also tidy target wantedby: should run from basic.target * Thu Dec 03 2020 Jean-Philipe Pialasse 2.6.0-9.sme - fix issue with Before rules in unit file [SME: 11013] * Sun Nov 08 2020 Jean-Philipe Pialasse 2.6.0-8.sme - run before network-pre.target [SME: 11088] * Wed Sep 30 2020 Jean-Philipe Pialasse 2.6.0-7.sme - enable for sme-server.target [SME: 11013] * Fri Jul 22 2016 Jean-Philipe Pialasse 2.6.0-6.sme - add systemd skip redirect [SME: 9688] * Mon Apr 11 2016 Jean-Philipe Pialasse 2.6.0-5.sme - start runit before bootstrap console [SME: 9352] * Sun Mar 27 2016 Jean-Philipe Pialasse 2.6.0-4.sme - fix typo in patch [SME: 9366] * Wed Mar 23 2016 Jean-Philipe Pialasse 2.6.0-3.sme - make runit working with systemd [SME: 9366] * Fri Mar 18 2016 Jean-Philipe Pialasse 2.6.0-2.sme - rebuild for Bug [SME: 9347] * Fri Feb 05 2016 stephane de Labrusse 2.6.0-1.sme - Initial release to sme10 * Wed Jan 30 2013 Ian Wells 2.4.0-2.sme - Remove 15runsvdir and create /etc/init/runit.conf, by Charlie Brady [SME: 7325] * Fri Jan 25 2013 Shad L. Lords 2.4.0-1.sme - Roll new stream for sme9 * Tue Oct 7 2008 Shad L. Lords 2.2.0-1.sme - Roll new stream to separate sme7/sme8 trees [SME: 4633] * Wed Mar 26 2008 Shad L. Lords 1.0.0-6 - Make daemontools script use same echo that is translated [SME: 4120] * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Fri Feb 16 2007 Shad L. Lords 1.0.0-5 - Fix signals sent to prevent errors and delays [SME: 1179] * Fri Feb 16 2007 Shad L. Lords 1.0.0-4 - Change runsvctrl to sv to support runit v1.7.x [SME: 1179] * Thu Dec 07 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Tue Aug 22 2006 Charlie Brady 1.0.0-02 - Add support for 'condrestart' param. [SME: 1870] * Wed Mar 15 2006 Charlie Brady 1.0.0-01 - Roll stable stream version. [SME: 1016] * Wed Nov 30 2005 Gordon Rowell 0.0.1-06 - Bump release number only * Wed Jun 15 2005 Charlie Brady - [0.0.1-05] - Provide more user feedback from init.d/daemontools script. [SF: 1218682] * Tue Apr 26 2005 Charlie Brady - [0.0.1-04] - Reopen stdin from /dev/null before running runsvdir. This prevents any supervised services from stealing console input from VT1's getty/console. * Wed Dec 1 2004 Charlie Brady - [0.0.1-03] - Call runsvctrl multiple times for multiple args - can't combine them (unlike svc). * Tue Sep 28 2004 Charlie Brady - [0.0.1-02] - Add Obsoletes header for supervise-scripts * Fri Sep 24 2004 Charlie Brady 0.0.1-01 - Initial - functional replacement for e-smith-daemontools 1.7.1-09. %description Provide integration of Gerrit Pape's runit package into a SysV init script process environment. %prep %setup %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 mkdir -p root/etc/e-smith/events %build perl createlinks %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-%{release}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ > %{name}-%{version}-%{release}-filelist echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist %clean rm -rf $RPM_BUILD_ROOT %pre %preun %post %postun %files -f %{name}-%{version}-%{release}-filelist %defattr(-,root,root)