1 |
# $Id: e-smith-runit.spec,v 1.7 2020/09/30 20:57:53 jpp Exp $ |
2 |
|
3 |
Summary: generic support framework for Gerrit Pape's runit package |
4 |
%define name e-smith-runit |
5 |
Name: %{name} |
6 |
%define version 2.6.0 |
7 |
%define release 8 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: e-smith-runit-2.6.0-systemd.patch |
14 |
Patch1: e-smith-runit-2.6.0-bootstrap.patch |
15 |
Patch2: e-smith-runit-2.6.0-bz9688.skipredirect.patch |
16 |
Patch3: e-smith-runit-2.6.0-bz11013-sme-server.target.patch |
17 |
Patch4: e-smith-runit-2.6.0-bz11088-beforenetwork.patch |
18 |
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildRequires: e-smith-devtools |
21 |
BuildArchitectures: noarch |
22 |
Requires: runit >= 1.0.5 |
23 |
Provides: e-smith-daemontools = 1.7.1-09 |
24 |
Obsoletes: e-smith-daemontools |
25 |
Obsoletes: supervise-scripts |
26 |
|
27 |
%changelog |
28 |
* Sun Nov 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
29 |
- run before network-pre.target [SME: 11088] |
30 |
|
31 |
* Wed Sep 30 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
32 |
- enable for sme-server.target [SME: 11013] |
33 |
|
34 |
* Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
35 |
- add systemd skip redirect [SME: 9688] |
36 |
|
37 |
* Mon Apr 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
38 |
- start runit before bootstrap console [SME: 9352] |
39 |
|
40 |
* Sun Mar 27 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
41 |
- fix typo in patch [SME: 9366] |
42 |
|
43 |
* Wed Mar 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
44 |
- make runit working with systemd [SME: 9366] |
45 |
|
46 |
* Fri Mar 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme |
47 |
- rebuild for Bug [SME: 9347] |
48 |
|
49 |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
50 |
- Initial release to sme10 |
51 |
|
52 |
* Wed Jan 30 2013 Ian Wells <esmith@wellsi.com> 2.4.0-2.sme |
53 |
- Remove 15runsvdir and create /etc/init/runit.conf, |
54 |
by Charlie Brady [SME: 7325] |
55 |
|
56 |
* Fri Jan 25 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
57 |
- Roll new stream for sme9 |
58 |
|
59 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
60 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
61 |
|
62 |
* Wed Mar 26 2008 Shad L. Lords <slords@mail.com> 1.0.0-6 |
63 |
- Make daemontools script use same echo that is translated [SME: 4120] |
64 |
|
65 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
66 |
- Clean up spec so package can be built by koji/plague |
67 |
|
68 |
* Fri Feb 16 2007 Shad L. Lords <slords@mail.com> 1.0.0-5 |
69 |
- Fix signals sent to prevent errors and delays [SME: 1179] |
70 |
|
71 |
* Fri Feb 16 2007 Shad L. Lords <slords@mail.com> 1.0.0-4 |
72 |
- Change runsvctrl to sv to support runit v1.7.x [SME: 1179] |
73 |
|
74 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
75 |
- Update to new release naming. No functional changes. |
76 |
- Make Packager generic |
77 |
|
78 |
* Tue Aug 22 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-02 |
79 |
- Add support for 'condrestart' param. [SME: 1870] |
80 |
|
81 |
* Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-01 |
82 |
- Roll stable stream version. [SME: 1016] |
83 |
|
84 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-06 |
85 |
- Bump release number only |
86 |
|
87 |
* Wed Jun 15 2005 Charlie Brady <charlieb@e-smith.com> |
88 |
- [0.0.1-05] |
89 |
- Provide more user feedback from init.d/daemontools script. |
90 |
[SF: 1218682] |
91 |
|
92 |
* Tue Apr 26 2005 Charlie Brady <charlieb@e-smith.com> |
93 |
- [0.0.1-04] |
94 |
- Reopen stdin from /dev/null before running runsvdir. This prevents any |
95 |
supervised services from stealing console input from VT1's getty/console. |
96 |
|
97 |
* Wed Dec 1 2004 Charlie Brady <charlieb@e-smith.com> |
98 |
- [0.0.1-03] |
99 |
- Call runsvctrl multiple times for multiple args - can't combine |
100 |
them (unlike svc). |
101 |
|
102 |
* Tue Sep 28 2004 Charlie Brady <charlieb@e-smith.com> |
103 |
- [0.0.1-02] |
104 |
- Add Obsoletes header for supervise-scripts |
105 |
|
106 |
* Fri Sep 24 2004 Charlie Brady <charlieb@e-smith.com> 0.0.1-01 |
107 |
- Initial - functional replacement for e-smith-daemontools 1.7.1-09. |
108 |
|
109 |
%description |
110 |
Provide integration of Gerrit Pape's runit package into a SysV init script |
111 |
process environment. |
112 |
|
113 |
%prep |
114 |
%setup |
115 |
%patch0 -p1 |
116 |
%patch1 -p1 |
117 |
%patch2 -p1 |
118 |
%patch3 -p1 |
119 |
%patch4 -p1 |
120 |
|
121 |
%build |
122 |
perl createlinks |
123 |
|
124 |
%install |
125 |
rm -rf $RPM_BUILD_ROOT |
126 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
127 |
rm -f %{name}-%{version}-%{release}-filelist |
128 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
129 |
> %{name}-%{version}-%{release}-filelist |
130 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
131 |
|
132 |
%clean |
133 |
rm -rf $RPM_BUILD_ROOT |
134 |
|
135 |
%pre |
136 |
%preun |
137 |
%post |
138 |
%postun |
139 |
|
140 |
%files -f %{name}-%{version}-%{release}-filelist |
141 |
%defattr(-,root,root) |