provide symlinks
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=147
This commit is contained in:
parent
3836121e84
commit
a9456af736
@ -87,6 +87,7 @@ sysvinit package.
|
||||
Summary: Provides /sbin/init for sysvinit
|
||||
Provides: sbin_init
|
||||
Conflicts: otherproviders(sbin_init)
|
||||
Requires: %{name}
|
||||
|
||||
%description init
|
||||
Just some symlinks
|
||||
@ -163,6 +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
|
||||
ln -sf sysvinit ${RPM_BUILD_ROOT}/sbin/telinit
|
||||
test -p ${RPM_BUILD_ROOT}/dev/initctl || {
|
||||
rm -f ${RPM_BUILD_ROOT}/dev/initctl
|
||||
mknod ${RPM_BUILD_ROOT}/dev/initctl p
|
||||
@ -233,8 +236,13 @@ fi
|
||||
|
||||
%files
|
||||
%defattr (-,root,root,755)
|
||||
/sbin/halt
|
||||
/sbin/sysvinit
|
||||
/sbin/telinit.sysvinit
|
||||
|
||||
%files init
|
||||
%defattr (-,root,root,755)
|
||||
/sbin/halt
|
||||
/sbin/init
|
||||
/sbin/poweroff
|
||||
/sbin/reboot
|
||||
/sbin/runlevel
|
||||
@ -250,10 +258,6 @@ fi
|
||||
%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
|
||||
|
Loading…
Reference in New Issue
Block a user