systemd: create /sbin/init symlink, no more manpage renaming.
This commit is contained in:
parent
dc63bee41c
commit
a0b56234f7
1 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'systemd'
|
# Template file for 'systemd'
|
||||||
pkgname=systemd
|
pkgname=systemd
|
||||||
version=36
|
version=36
|
||||||
revision=5
|
revision=6
|
||||||
distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2"
|
distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_args="--with-distro=other --with-rootdir= --localstatedir=/var
|
configure_args="--with-distro=other --with-rootdir= --localstatedir=/var
|
||||||
|
@ -62,10 +62,6 @@ pre_configure()
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
cd ${DESTDIR}/usr/share/man/man8
|
|
||||||
for manpage in telinit halt reboot poweroff runlevel shutdown; do
|
|
||||||
mv ${manpage}.8 ${manpage}-systemd.8
|
|
||||||
done
|
|
||||||
vinstall ${FILESDIR}/hostname 644 etc
|
vinstall ${FILESDIR}/hostname 644 etc
|
||||||
vinstall ${FILESDIR}/vconsole.conf 644 etc
|
vinstall ${FILESDIR}/vconsole.conf 644 etc
|
||||||
vinstall ${FILESDIR}/os-release 644 etc
|
vinstall ${FILESDIR}/os-release 644 etc
|
||||||
|
@ -81,4 +77,6 @@ post_install()
|
||||||
for f in halt poweroff shutdown reboot; do
|
for f in halt poweroff shutdown reboot; do
|
||||||
ln -sf /bin/systemctl ${DESTDIR}/sbin/${f}
|
ln -sf /bin/systemctl ${DESTDIR}/sbin/${f}
|
||||||
done
|
done
|
||||||
|
# Create /sbin/init for compatibility.
|
||||||
|
ln -sf /bin/systemd ${DESTDIR}/sbin/init
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue