File minit.spec of Package minit

#
# spec file for package minit (Version 0.9.1)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#


Summary: Fast, small and simple init with support for dependencies
Name: minit
Version: 0.9.1
Release: 2
Source: %{name}-%{version}.tar.bz2
#Patch0: %{name}-%{version}-path.patch
Source1: http://dl.fefe.de/%{name}-%{version}.tar.bz2
Source2: %{name}-%{version}-static-rpmlintrc
Source3: %{name}-%{version}-execstack-rpmlintrc
Vendor: %{vendor}
URL: http://www.fefe.de/%{name}
License: GPLv2+
Group: System/Daemons
BuildRequires: dietlibc >= 0.31-5.15
BuildRequires: coreutils
BuildRoot: %{_builddir}/%{name}-%{version}-build


%description
minit is an attempt to cross-breed DJ Bernstein's
daemontools and init, while adding dependencies,
and maintaining minimal code base. It is possible
to start and stop services on the fly.

minit does not depend on a mounted /proc file
system, and it does not write to any part of the
file system, not even to start and stop services.

It does not use System V IPC, either.


%prep
%setup -q

%build
make all

%debug_package


%install
%{__install} -d -m 0755 $RPM_BUILD_ROOT/sbin
%{__install} -d -m 0755 $RPM_BUILD_ROOT/bin
%{__install} -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
%{__install} -d -m 0755 $RPM_BUILD_ROOT%{_docdir}/%{name}
%{__install} -m 0644 TODO COPYING CHANGES README \
$RPM_BUILD_ROOT%{_docdir}/%{name}

%{__make} DESTDIR=$RPM_BUILD_ROOT install


%clean
%{__rm} -rf $RPM_BUILD_ROOT 


%post
[ -d %{_sysconfdir}/%name ] &&
mkfifo -m 600 %{_sysconfdir}/%{name}/in %{_sysconfdir}/%{name}/out 2>/dev/null || :

%postun
%__rm -f %{_sysconfdir}/%{name}/in %{_sysconfdir}/%{name}/out


%files
%defattr(-,root,root,-)
/sbin/hard-reboot
/sbin/minit
/bin/msvc
/sbin/pidfilehack
/sbin/write_proc

%doc TODO COPYING CHANGES README


%changelog
* Tue Jul 21 2009 Mario García H. <code933k@gmail.com> - 0.9.2
- Corrected a mistake with msvc, the target was not created.
- Also created post postun for handling minit fifos correctly.
* Fri Jun 5 2009 Mario García H. <code933k@gmail.com> - 0.9.1
- Initial package.
openSUSE Build Service is sponsored by