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