From 5ec0d32f9c5b5eb722dde843290db1f33e2449ac Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 29 Jul 2014 11:00:25 +0200 Subject: [PATCH] enlightenment: fix shutdown/reboot/suspend/hibernate without systemd (runit). --- srcpkgs/enlightenment/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/enlightenment/template b/srcpkgs/enlightenment/template index b9276b130d3..08b6f78e937 100644 --- a/srcpkgs/enlightenment/template +++ b/srcpkgs/enlightenment/template @@ -4,7 +4,7 @@ _distver=0.19.0 _patchver=alpha1 version=${_distver}${_patchver} wrksrc="${pkgname}-${_distver}-${_patchver}" -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable-pam --disable-bluez4" hostmakedepends="pkg-config efl>=1.10" @@ -41,6 +41,13 @@ else fi post_install() { + if [ -z "$build_option_systemd" ]; then + # Use our native tools to shutdown/suspend. + sed -i 's/^action:.*halt.*/action: halt shutdown -h now/g' ${DESTDIR}/etc/${pkgname}/sysactions.conf + sed -i 's/^action:.*reboot.*/action: reboot shutdown -r now/g' ${DESTDIR}/etc/${pkgname}/sysactions.conf + sed -i 's/^action:.*suspend.*/action: suspend zzz/g' ${DESTDIR}/etc/${pkgname}/sysactions.conf + sed -i 's/^action:.*hibernate.*/action: hibernate ZZZ/g' ${DESTDIR}/etc/${pkgname}/sysactions.conf + fi vmkdir usr/share/licenses/${pkgname} install -m644 COPYING* ${DESTDIR}/usr/share/licenses/${pkgname} vinstall ${FILESDIR}/e-applications.menu 644 etc/xdg/menus