diff --git a/srcpkgs/systemd/template b/srcpkgs/systemd/template index 1b7c4ca979..448c9155e0 100644 --- a/srcpkgs/systemd/template +++ b/srcpkgs/systemd/template @@ -1,7 +1,7 @@ # Template file for 'systemd' pkgname=systemd version=36 -revision=4 +revision=5 distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2" build_style=gnu_configure configure_args="--with-distro=other --with-rootdir= --localstatedir=/var @@ -74,4 +74,11 @@ post_install() printf "d /run/console 755 root root\n" > \ ${DESTDIR}/usr/lib/tmpfiles.d/console.conf chmod 644 ${DESTDIR}/usr/lib/tmpfiles.d/console.conf + + # Create halt, reboot, shutdown, poweroff compat symlinks. Some + # applications expect them for "normal" use! + vmkdir sbin + for f in halt poweroff shutdown reboot; do + ln -sf /bin/systemctl ${DESTDIR}/sbin/${f} + done }