pm-utils: switch to /run.

This commit is contained in:
Juan RP 2012-06-12 07:49:54 +02:00
parent 5ea7283504
commit 9485ba4f47

View file

@ -1,11 +1,8 @@
# Template file for 'pm-utils' # Template file for 'pm-utils'
pkgname=pm-utils pkgname=pm-utils
version=1.4.1 version=1.4.1
revision=4 revision=5
patch_args="-Np1" patch_args="-Np1"
distfiles="
http://pm-utils.freedesktop.org/releases/$pkgname-$version.tar.gz
http://pm-utils.freedesktop.org/releases/pm-quirks-20100619.tar.gz"
build_style=gnu-configure build_style=gnu-configure
configure_args="--libdir=/usr/lib" configure_args="--libdir=/usr/lib"
depends="bash" depends="bash"
@ -15,6 +12,9 @@ short_desc="Power Management Utilities"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://pm-utils.freedesktop.org" homepage="http://pm-utils.freedesktop.org"
license="GPL-2" license="GPL-2"
distfiles="
http://pm-utils.freedesktop.org/releases/$pkgname-$version.tar.gz
http://pm-utils.freedesktop.org/releases/pm-quirks-20100619.tar.gz"
checksum=" checksum="
8ed899032866d88b2933a1d34cc75e8ae42dcde20e1cc21836baaae3d4370c0b 8ed899032866d88b2933a1d34cc75e8ae42dcde20e1cc21836baaae3d4370c0b
14a50518928c27417cdc8bcbabb32b3d986931de105149aa248d8883e56c61ec" 14a50518928c27417cdc8bcbabb32b3d986931de105149aa248d8883e56c61ec"
@ -22,9 +22,10 @@ long_desc="
The pm-utils package contains utilities and scripts useful for tasks related The pm-utils package contains utilities and scripts useful for tasks related
to power management." to power management."
post_install() {
post_install() # Switch to /run.
{ sed -i -e "s|/var/run/pm-utils|/run/pm-utils|g" \
${DESTDIR}/usr/lib/pm-utils/pm-functions
# nm >=0.8.2 has native udev suspend/resume support # nm >=0.8.2 has native udev suspend/resume support
rm -f "${DESTDIR}/usr/lib/pm-utils/sleep.d/55NetworkManager" rm -f "${DESTDIR}/usr/lib/pm-utils/sleep.d/55NetworkManager"
# Remove hooks that cause hardware failure or don't make sense at all # Remove hooks that cause hardware failure or don't make sense at all