From 55a3cfce213001b68c1dac8f61b888174085274a6b3d47d4ff1efd6757f94b70 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 11 Oct 2011 13:21:07 +0000 Subject: [PATCH] do it like upstart OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=148 --- sysvinit.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sysvinit.spec b/sysvinit.spec index 5751ac9..f1b02b3 100644 --- a/sysvinit.spec +++ b/sysvinit.spec @@ -164,7 +164,8 @@ popd 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 - ln -sf sysvinit ${RPM_BUILD_ROOT}/sbin/telinit.sysvinit + mkdir -p ${RPM_BUILD_ROOT}/lib/sysvinit + ln -sf sysvinit ${RPM_BUILD_ROOT}/lib/sysvinit/telinit ln -sf sysvinit ${RPM_BUILD_ROOT}/sbin/telinit test -p ${RPM_BUILD_ROOT}/dev/initctl || { rm -f ${RPM_BUILD_ROOT}/dev/initctl @@ -237,7 +238,8 @@ fi %files %defattr (-,root,root,755) /sbin/sysvinit -/sbin/telinit.sysvinit +%dir /lib/sysvinit +/lib/sysvinit/telinit %files init %defattr (-,root,root,755)