wok-next annotate pm-utils/receipt @ rev 21678

updated getmail (4.41.0 -> 5.14)
author Hans-G?nter Theisgen
date Mon Jun 29 13:44:08 2020 +0100 (2020-06-29)
parents f48456621a9d
children
rev   line source
al@20534 1 # SliTaz package receipt v2.
domcox@2655 2
domcox@2655 3 PACKAGE="pm-utils"
domcox@6084 4 VERSION="1.4.1"
domcox@2655 5 CATEGORY="system-tools"
al@20534 6 SHORT_DESC="Collection of scripts that handle suspend and resume"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15375 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="https://pm-utils.freedesktop.org/wiki/"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/pm-utils.html"
al@20534 11
domcox@2655 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20656 13 WGET_URL="https://pm-utils.freedesktop.org/releases/$TARBALL"
al@20656 14
al@20656 15 BUILD_DEPENDS="symlinks"
domcox@2655 16
al@20534 17 compile_rules() {
al@20534 18 ./configure $CONFIGURE_ARGS &&
domcox@2655 19 make &&
al@21020 20 make DESTDIR=$install install || return 1
al@20656 21
al@20656 22 # add video quirks
al@20656 23 cp -r $stuff/video-quirks $install/usr/lib/pm-utils/
al@20656 24
al@20656 25 fix symlinks
al@20656 26
al@20656 27 ln -s pm-action.8 man/pm-suspend.8
al@20656 28 ln -s pm-action.8 man/pm-hibernate.8
al@20656 29 ln -s pm-action.8 man/pm-suspend-hybrid.8
al@20656 30 cook_pick_manpages man/*.1 man/*.8
domcox@2655 31 }
domcox@2655 32
al@20534 33 genpkg_rules() {
al@20656 34 copy @std
al@20656 35 # remove incompatible hooks:
al@20656 36 # NetworkManager hook
domcox@12209 37 rm -f $fs/usr/lib/pm-utils/sleep.d/55NetworkManager
al@20656 38 # grub hook (Redhat specific)
domcox@12209 39 rm -f $fs/usr/lib/pm-utils/sleep.d/01grub
al@20656 40 # readahead hook (not busybox compliant)
domcox@12209 41 rm -f $fs/usr/lib/pm-utils/power.d/readahead
al@20656 42 # sata_alpm (causes disk errors on many hardware)
domcox@12209 43 rm -f $fs/usr/lib/pm-utils/power.d/sata_alpm
domcox@12209 44
al@20534 45 DEPENDS="bash kbd"
al@20656 46 CONFIG_FILES="/etc/pm/"
al@20534 47 TAGS="power-management"
domcox@2655 48 }
pascal@17526 49
al@20534 50 pre_remove() {
pascal@18730 51 [ -s "$1/etc/slim.conf" ] &&
pascal@18730 52 sed -i 's|.*/usr/sbin/pm-suspend|#&|' "$1/etc/slim.conf"
al@20534 53 :
pascal@17526 54 }
pascal@17526 55
al@20534 56 post_install() {
pascal@18730 57 [ -s "$1/etc/slim.conf" ] &&
pascal@17526 58 sed -i 's|^#suspend_cmd.*|suspend_cmd /usr/sbin/pm-suspend|' \
pascal@18730 59 "$1/etc/slim.conf"
al@20534 60 :
pascal@17526 61 }