1 |
# $Id: e-smith-runit.spec,v 1.9 2020/12/03 23:51:20 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 10 |
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 |
Patch5: e-smith-runit-2.6.0-bz11013-fixunitfile.patch |
19 |
Patch6: e-smith-runit-2.6.0-bz11156-update.patch |
20 |
|
21 |
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 |
* 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 |
* 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 |
* 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 |
* 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 |
* Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
44 |
- add systemd skip redirect [SME: 9688] |
45 |
|
46 |
* 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 |
* Sun Mar 27 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
50 |
- fix typo in patch [SME: 9366] |
51 |
|
52 |
* Wed Mar 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
53 |
- make runit working with systemd [SME: 9366] |
54 |
|
55 |
* Fri Mar 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme |
56 |
- rebuild for Bug [SME: 9347] |
57 |
|
58 |
* 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 |
%patch0 -p1 |
125 |
%patch1 -p1 |
126 |
%patch2 -p1 |
127 |
%patch3 -p1 |
128 |
%patch4 -p1 |
129 |
%patch5 -p1 |
130 |
%patch6 -p1 |
131 |
|
132 |
%build |
133 |
perl createlinks |
134 |
|
135 |
%install |
136 |
rm -rf $RPM_BUILD_ROOT |
137 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
138 |
rm -f %{name}-%{version}-%{release}-filelist |
139 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
140 |
> %{name}-%{version}-%{release}-filelist |
141 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
142 |
|
143 |
%clean |
144 |
rm -rf $RPM_BUILD_ROOT |
145 |
|
146 |
%pre |
147 |
%preun |
148 |
%post |
149 |
%postun |
150 |
|
151 |
%files -f %{name}-%{version}-%{release}-filelist |
152 |
%defattr(-,root,root) |