2009-05-11 21:50:20 +02:00
|
|
|
# Template file for 'pm-utils'
|
|
|
|
pkgname=pm-utils
|
2010-11-02 13:20:05 +01:00
|
|
|
version=1.4.1
|
2011-10-07 12:11:34 +02:00
|
|
|
revision=3
|
2011-06-04 18:19:15 +02:00
|
|
|
patch_args="-Np1"
|
2010-05-06 06:02:03 +02:00
|
|
|
distfiles="
|
|
|
|
http://pm-utils.freedesktop.org/releases/$pkgname-$version.tar.gz
|
2010-11-02 13:20:05 +01:00
|
|
|
http://pm-utils.freedesktop.org/releases/pm-quirks-20100619.tar.gz"
|
2009-05-11 21:50:20 +02:00
|
|
|
build_style=gnu_configure
|
2011-06-04 18:19:15 +02:00
|
|
|
configure_args="--libdir=/usr/lib --localstatedir=/var"
|
2009-05-11 21:50:20 +02:00
|
|
|
short_desc="Power Management Utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-04 18:19:15 +02:00
|
|
|
homepage="http://pm-utils.freedesktop.org"
|
|
|
|
license="GPL-2"
|
2010-05-06 06:02:03 +02:00
|
|
|
checksum="
|
2010-11-02 13:20:05 +01:00
|
|
|
8ed899032866d88b2933a1d34cc75e8ae42dcde20e1cc21836baaae3d4370c0b
|
|
|
|
14a50518928c27417cdc8bcbabb32b3d986931de105149aa248d8883e56c61ec"
|
2009-05-11 21:50:20 +02:00
|
|
|
long_desc="
|
2011-06-04 21:24:18 +02:00
|
|
|
The pm-utils package contains utilities and scripts useful for tasks related
|
|
|
|
to power management."
|
2009-05-11 21:50:20 +02:00
|
|
|
|
2011-10-07 12:11:34 +02:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run bash
|
2009-05-11 21:50:20 +02:00
|
|
|
Add_dependency full procps
|
2011-06-04 18:19:15 +02:00
|
|
|
Add_dependency full dmidecode
|
2011-06-04 21:24:18 +02:00
|
|
|
Add_dependency full ethtool
|
|
|
|
Add_dependency full vbetool
|
2010-05-06 06:02:03 +02:00
|
|
|
Add_dependency build xmlto
|
2011-10-07 12:11:34 +02:00
|
|
|
Add_dependency build coreutils
|
2009-10-05 18:14:18 +02:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2011-06-04 18:19:15 +02:00
|
|
|
# nm >=0.8.2 has native udev suspend/resume support
|
|
|
|
rm -f "${DESTDIR}/usr/lib/pm-utils/sleep.d/55NetworkManager"
|
|
|
|
# Remove hooks that cause hardware failure or don't make sense at all
|
2011-06-04 21:24:18 +02:00
|
|
|
for f in harddrive hal-cd-polling; do
|
2011-06-04 18:19:15 +02:00
|
|
|
rm -f ${DESTDIR}/usr/lib/pm-utils/power.d/$f
|
|
|
|
done
|
|
|
|
# Install logrotate file.
|
2009-10-05 18:14:18 +02:00
|
|
|
install -D -m644 ${FILESDIR}/$pkgname.logrotate \
|
|
|
|
${DESTDIR}/etc/logrotate.d/$pkgname
|
2010-11-02 13:20:05 +01:00
|
|
|
mv ${XBPS_BUILDDIR}/video-quirks/*.quirkdb ${DESTDIR}/usr/lib/pm-utils
|
2011-06-04 21:24:18 +02:00
|
|
|
rmdir ${XBPS_BUILDDIR}/video-quirks
|
2009-10-05 18:14:18 +02:00
|
|
|
}
|