.
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=208
This commit is contained in:
parent
05ae771b77
commit
5cc16167ac
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 8 10:31:48 UTC 2014 - werner@suse.de
|
||||
|
||||
- For systemd distributions and products do not build the package
|
||||
sysvinit anymore
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 21 11:38:06 UTC 2014 - lnussel@suse.de
|
||||
|
||||
|
@ -21,9 +21,10 @@
|
||||
%endif
|
||||
%bcond_with util_linux
|
||||
%if %{undefined systemd_requires}
|
||||
%global with_sysvinit 1
|
||||
%endif
|
||||
%bcond_without sysvinit
|
||||
%else
|
||||
%bcond_with sysvinit
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} > 1310
|
||||
%define have_mkinitrd 0
|
||||
@ -242,7 +243,30 @@ popd
|
||||
rm -vf %{buildroot}%{_mandir}/man1/utmpdump.1*
|
||||
rm -vf %{buildroot}%{_mandir}/man8/sulogin.8*
|
||||
%endif
|
||||
%if !%{with sysvinit}
|
||||
rm -vf %{buildroot}/sbin/sysvinit
|
||||
rm -vfr %{buildroot}/lib/sysvinit
|
||||
rm -vf %{buildroot}/sbin/halt
|
||||
rm -vf %{buildroot}/sbin/init
|
||||
rm -vf %{buildroot}/sbin/poweroff
|
||||
rm -vf %{buildroot}/sbin/reboot
|
||||
rm -vf %{buildroot}/sbin/runlevel
|
||||
rm -vf %{buildroot}/sbin/shutdown
|
||||
rm -vf %{buildroot}/sbin/telinit
|
||||
rm -vf %{buildroot}%{_mandir}/man8/halt.8
|
||||
rm -vf %{buildroot}%{_mandir}/man5/initscript.5
|
||||
rm -vf %{buildroot}%{_mandir}/man5/inittab.5
|
||||
rm -vf %{buildroot}%{_mandir}/man8/init.8
|
||||
rm -vf %{buildroot}%{_mandir}/man8/sysvinit.8
|
||||
rm -vf %{buildroot}%{_mandir}/man8/poweroff.8
|
||||
rm -vf %{buildroot}%{_mandir}/man8/reboot.8
|
||||
rm -vf %{buildroot}%{_mandir}/man8/runlevel.8
|
||||
rm -vf %{buildroot}%{_mandir}/man8/shutdown.8
|
||||
rm -vf %{buildroot}%{_mandir}/man8/telinit.8
|
||||
rm -vfr %{buildroot}/lib/mkinitrd
|
||||
%endif
|
||||
|
||||
%if %{with sysvinit}
|
||||
%post
|
||||
ret=0
|
||||
if test -x /sbin/telinit -a -p /dev/initctl -a -f /proc/1/exe -a -d /proc/1/root -a ! -d /.build -a -x /sbin/init; then
|
||||
@ -302,6 +326,7 @@ fi
|
||||
/lib/mkinitrd/scripts/boot-killblogd.sh
|
||||
/lib/mkinitrd/scripts/boot-killblogd2.sh
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files tools
|
||||
%defattr (-,root,root,755)
|
||||
|
Loading…
Reference in New Issue
Block a user