- split out the symlink /sbin/init into a special subpackage

DO NOT SUBMIT TO FACTORY!

OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=146
This commit is contained in:
Stephan Kulow 2011-10-11 11:05:21 +00:00 committed by Git OBS Bridge
parent e187cca6a7
commit 3836121e84
2 changed files with 23 additions and 10 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 11 11:04:56 UTC 2011 - coolo@suse.com
- split out the symlink /sbin/init into a special subpackage
DO NOT SUBMIT TO FACTORY!
-------------------------------------------------------------------
Tue Oct 11 10:16:45 UTC 2011 - coolo@suse.com

View File

@ -27,7 +27,6 @@ Name: sysvinit
%define START 0.57
License: GPLv2+
Group: System/Base
AutoReqProv: on
Version: %{SIVER}
Release: 58
Summary: SysV-Style init
@ -59,7 +58,6 @@ Patch30: killproc-%{KPVER}.dif
Patch40: showconsole-%{SCVER}.dif
Patch50: startpar-%{START}.dif
Requires: sysvinit-tools
Provides: sbin_init
%description
System V style init programs by Miquel van Smoorenburg that control the
@ -72,9 +70,7 @@ halt, init, powerd, reboot, runlevel, shutdown, and telinit for
more information.
%package tools
License: GPLv2+
Summary: Tools for basic booting
Group: System/Base
%if 0%{suse_version} > 1120
Requires(preun): coreutils %insserv_prereq
Requires(postun): coreutils %insserv_prereq
@ -87,6 +83,14 @@ Helper tools from sysvinit that support booting, including but not exclusive
to startpar, killproc and pidof. System V init specific programs are in the
sysvinit package.
%package init
Summary: Provides /sbin/init for sysvinit
Provides: sbin_init
Conflicts: otherproviders(sbin_init)
%description init
Just some symlinks
%prep
%setup -n %{name}-%{SIVER}dsf -q -b 2 -b 3 -b 4 -b 5
%patch1 -p0 -b .startstop
@ -157,6 +161,8 @@ popd
mkdir -m 755 -p ${RPM_BUILD_ROOT}%{_mandir}/man5
mkdir -m 755 -p ${RPM_BUILD_ROOT}%{_mandir}/man8
make install -C src MANPATH=%{_mandir} ROOT=${RPM_BUILD_ROOT} WITH_SELINUX=yes DISTRO=SuSE
mv ${RPM_BUILD_ROOT}/sbin/init ${RPM_BUILD_ROOT}/sbin/sysvinit
ln -s sysvinit ${RPM_BUILD_ROOT}/sbin/init
test -p ${RPM_BUILD_ROOT}/dev/initctl || {
rm -f ${RPM_BUILD_ROOT}/dev/initctl
mknod ${RPM_BUILD_ROOT}/dev/initctl p
@ -225,14 +231,10 @@ if test -x /sbin/mkinitrd_setup; then
mkinitrd_setup
fi
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%files
%defattr (-,root,root,755)
%config /etc/pam.d/init
/sbin/halt
/sbin/init
/sbin/sysvinit
/sbin/poweroff
/sbin/reboot
/sbin/runlevel
@ -248,6 +250,10 @@ rm -rf ${RPM_BUILD_ROOT}
%doc %{_mandir}/man8/shutdown.8.gz
%doc %{_mandir}/man8/telinit.8.gz
%files init
%defattr (-,root,root,755)
/sbin/init
%files tools
%defattr (-,root,root,755)
%doc COPYING COPYRIGHT doc/Propaganda
@ -257,6 +263,7 @@ rm -rf ${RPM_BUILD_ROOT}
%config /etc/init.d/powerd
%doc doc/powerd
%endif
%config /etc/pam.d/init
%dir /lib/mkinitrd
%dir /lib/mkinitrd/scripts
/lib/mkinitrd/scripts/boot-blogd.sh