1 |
Summary: generic support framework for Gerrit Pape's runit package |
2 |
%define name e-smith-runit |
3 |
Name: %{name} |
4 |
%define version 1.0.0 |
5 |
%define release 6 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
Group: Networking/Daemons |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
Patch0: e-smith-runit-1.0.0-condrestart.patch |
12 |
Patch1: e-smith-runit-1.0.0-runit17.patch |
13 |
Patch2: e-smith-runit-1.0.0-runit17.patch2 |
14 |
Patch3: e-smith-runit-1.0.0-localization.patch |
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
BuildRequires: e-smith-devtools |
17 |
BuildArchitectures: noarch |
18 |
Requires: runit >= 1.0.5 |
19 |
Provides: e-smith-daemontools = 1.7.1-09 |
20 |
Obsoletes: e-smith-daemontools |
21 |
Obsoletes: supervise-scripts |
22 |
|
23 |
%changelog |
24 |
* Wed Mar 26 2008 Shad L. Lords <slords@mail.com> 1.0.0-6 |
25 |
- Make daemontools script use same echo that is translated [SME: 4120] |
26 |
|
27 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
28 |
- Clean up spec so package can be built by koji/plague |
29 |
|
30 |
* Fri Feb 16 2007 Shad L. Lords <slords@mail.com> 1.0.0-5 |
31 |
- Fix signals sent to prevent errors and delays [SME: 1179] |
32 |
|
33 |
* Fri Feb 16 2007 Shad L. Lords <slords@mail.com> 1.0.0-4 |
34 |
- Change runsvctrl to sv to support runit v1.7.x [SME: 1179] |
35 |
|
36 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
37 |
- Update to new release naming. No functional changes. |
38 |
- Make Packager generic |
39 |
|
40 |
* Tue Aug 22 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-02 |
41 |
- Add support for 'condrestart' param. [SME: 1870] |
42 |
|
43 |
* Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.0.0-01 |
44 |
- Roll stable stream version. [SME: 1016] |
45 |
|
46 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-06 |
47 |
- Bump release number only |
48 |
|
49 |
* Wed Jun 15 2005 Charlie Brady <charlieb@e-smith.com> |
50 |
- [0.0.1-05] |
51 |
- Provide more user feedback from init.d/daemontools script. |
52 |
[SF: 1218682] |
53 |
|
54 |
* Tue Apr 26 2005 Charlie Brady <charlieb@e-smith.com> |
55 |
- [0.0.1-04] |
56 |
- Reopen stdin from /dev/null before running runsvdir. This prevents any |
57 |
supervised services from stealing console input from VT1's getty/console. |
58 |
|
59 |
* Wed Dec 1 2004 Charlie Brady <charlieb@e-smith.com> |
60 |
- [0.0.1-03] |
61 |
- Call runsvctrl multiple times for multiple args - can't combine |
62 |
them (unlike svc). |
63 |
|
64 |
* Tue Sep 28 2004 Charlie Brady <charlieb@e-smith.com> |
65 |
- [0.0.1-02] |
66 |
- Add Obsoletes header for supervise-scripts |
67 |
|
68 |
* Fri Sep 24 2004 Charlie Brady <charlieb@e-smith.com> 0.0.1-01 |
69 |
- Initial - functional replacement for e-smith-daemontools 1.7.1-09. |
70 |
|
71 |
%description |
72 |
Provide integration of Gerrit Pape's runit package into a SysV init script |
73 |
process environment. |
74 |
|
75 |
%prep |
76 |
%setup |
77 |
%patch0 -p1 |
78 |
%patch1 -p1 |
79 |
%patch2 -p1 |
80 |
%patch3 -p1 |
81 |
|
82 |
%build |
83 |
perl createlinks |
84 |
|
85 |
%install |
86 |
rm -rf $RPM_BUILD_ROOT |
87 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
88 |
rm -f %{name}-%{version}-%{release}-filelist |
89 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
90 |
> %{name}-%{version}-%{release}-filelist |
91 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
92 |
|
93 |
%clean |
94 |
rm -rf $RPM_BUILD_ROOT |
95 |
|
96 |
%pre |
97 |
%preun |
98 |
%post |
99 |
%postun |
100 |
|
101 |
%files -f %{name}-%{version}-%{release}-filelist |
102 |
%defattr(-,root,root) |