enlightenment: fix shutdown/reboot/suspend/hibernate without systemd (runit).
This commit is contained in:
parent
75d805c0d7
commit
5ec0d32f9c
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue