Merge pull request #2732 from stpx/laptop-mode

laptop-mode: disable systemd
This commit is contained in:
Juan RP 2015-10-12 09:05:58 +02:00
commit c37412de27

View file

@ -1,7 +1,7 @@
# Template file for 'laptop-mode'
pkgname=laptop-mode
version=1.68.1
revision=1
revision=2
noarch=yes
wrksrc="${pkgname}-tools_${version}"
short_desc="Laptop power saving package for Linux systems"
@ -42,7 +42,7 @@ depends="acpid hdparm sdparm wireless_tools xset bluez"
do_install() {
sed -i 's|/lib|/usr/lib|g' etc/rules/99-laptop-mode.rules
sed -i 's|/sbin/udevadm|/usr/bin/udevadm|g' usr/share/laptop-mode-tools/modules/hdparm
DESTDIR=${DESTDIR} ACPI=force APM=disabled INIT_D=none \
DESTDIR=${DESTDIR} ACPI=force APM=disabled INIT_D=none SYSTEMD=no \
INSTALL=install LIB_D=/usr/lib MAN_D=/usr/share/man $wrksrc/install.sh
vmkdir usr/bin
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin/