Accepting request 248003 from Base:System
- For systemd distributions and products do not build the package sysvinit anymore OBS-URL: https://build.opensuse.org/request/show/248003 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysvinit?expand=0&rev=159
This commit is contained in:
commit
932e4a1cae
@ -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
|
Thu Aug 21 11:38:06 UTC 2014 - lnussel@suse.de
|
||||||
|
|
||||||
|
@ -21,9 +21,10 @@
|
|||||||
%endif
|
%endif
|
||||||
%bcond_with util_linux
|
%bcond_with util_linux
|
||||||
%if %{undefined systemd_requires}
|
%if %{undefined systemd_requires}
|
||||||
%global with_sysvinit 1
|
%bcond_without sysvinit
|
||||||
%endif
|
%else
|
||||||
%bcond_with sysvinit
|
%bcond_with sysvinit
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1310
|
%if 0%{?suse_version} > 1310
|
||||||
%define have_mkinitrd 0
|
%define have_mkinitrd 0
|
||||||
@ -242,7 +243,30 @@ popd
|
|||||||
rm -vf %{buildroot}%{_mandir}/man1/utmpdump.1*
|
rm -vf %{buildroot}%{_mandir}/man1/utmpdump.1*
|
||||||
rm -vf %{buildroot}%{_mandir}/man8/sulogin.8*
|
rm -vf %{buildroot}%{_mandir}/man8/sulogin.8*
|
||||||
%endif
|
%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
|
%post
|
||||||
ret=0
|
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
|
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-killblogd.sh
|
||||||
/lib/mkinitrd/scripts/boot-killblogd2.sh
|
/lib/mkinitrd/scripts/boot-killblogd2.sh
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr (-,root,root,755)
|
%defattr (-,root,root,755)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user