From e3b05fcc03c72fd8a8e96529cc4e85fa17ec2b05 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 11 Oct 2011 11:50:00 +0200 Subject: [PATCH] systemd: create sysv compat symlinks for halt, poweroff, shutdown and reboot. --- srcpkgs/systemd/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 }