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