pm-utils: reenable disable_wol power.d script, depend on ethtool.
This commit is contained in:
parent
bba89abdb9
commit
05b99ea0f5
|
@ -1,7 +1,7 @@
|
||||||
# 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=1
|
revision=2
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
distfiles="
|
distfiles="
|
||||||
http://pm-utils.freedesktop.org/releases/$pkgname-$version.tar.gz
|
http://pm-utils.freedesktop.org/releases/$pkgname-$version.tar.gz
|
||||||
|
@ -16,14 +16,15 @@ checksum="
|
||||||
8ed899032866d88b2933a1d34cc75e8ae42dcde20e1cc21836baaae3d4370c0b
|
8ed899032866d88b2933a1d34cc75e8ae42dcde20e1cc21836baaae3d4370c0b
|
||||||
14a50518928c27417cdc8bcbabb32b3d986931de105149aa248d8883e56c61ec"
|
14a50518928c27417cdc8bcbabb32b3d986931de105149aa248d8883e56c61ec"
|
||||||
long_desc="
|
long_desc="
|
||||||
$pkgname is a small collection of scripts that handle suspend and
|
The pm-utils package contains utilities and scripts useful for tasks related
|
||||||
resume on behalf of HAL (Hardware Abstraction Layer)."
|
to power management."
|
||||||
|
|
||||||
Add_dependency full glibc
|
Add_dependency full glibc
|
||||||
Add_dependency full bash
|
Add_dependency full bash
|
||||||
Add_dependency full procps
|
Add_dependency full procps
|
||||||
Add_dependency full vbetool
|
|
||||||
Add_dependency full dmidecode
|
Add_dependency full dmidecode
|
||||||
|
Add_dependency full ethtool
|
||||||
|
Add_dependency full vbetool
|
||||||
Add_dependency build xmlto
|
Add_dependency build xmlto
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
|
@ -31,11 +32,12 @@ post_install()
|
||||||
# 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
|
||||||
for f in harddrive disable_wol hal-cd-polling; do
|
for f in harddrive hal-cd-polling; do
|
||||||
rm -f ${DESTDIR}/usr/lib/pm-utils/power.d/$f
|
rm -f ${DESTDIR}/usr/lib/pm-utils/power.d/$f
|
||||||
done
|
done
|
||||||
# Install logrotate file.
|
# Install logrotate file.
|
||||||
install -D -m644 ${FILESDIR}/$pkgname.logrotate \
|
install -D -m644 ${FILESDIR}/$pkgname.logrotate \
|
||||||
${DESTDIR}/etc/logrotate.d/$pkgname
|
${DESTDIR}/etc/logrotate.d/$pkgname
|
||||||
mv ${XBPS_BUILDDIR}/video-quirks/*.quirkdb ${DESTDIR}/usr/lib/pm-utils
|
mv ${XBPS_BUILDDIR}/video-quirks/*.quirkdb ${DESTDIR}/usr/lib/pm-utils
|
||||||
|
rmdir ${XBPS_BUILDDIR}/video-quirks
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue