wok annotate pm-utils/receipt @ rev 14540
firefox-langpack-es_ES: Up to 17.0.6esr
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed May 22 21:56:56 2013 +0200 (2013-05-22) |
parents | fca11d7d8a60 |
children | 51a1ebbda768 |
rev | line source |
---|---|
domcox@2655 | 1 # SliTaz package receipt. |
domcox@2655 | 2 |
domcox@2655 | 3 PACKAGE="pm-utils" |
domcox@6084 | 4 VERSION="1.4.1" |
domcox@2655 | 5 CATEGORY="system-tools" |
domcox@12202 | 6 SHORT_DESC="Collection of scripts that handle suspend and resume." |
domcox@12202 | 7 MAINTAINER="domcox@slitaz.org" |
domcox@6084 | 8 DEPENDS="bash kbd" |
domcox@2655 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
domcox@2655 | 10 WEB_SITE="http://pm-utils.freedesktop.org/" |
domcox@2655 | 11 WGET_URL="http://pm-utils.freedesktop.org/releases/$TARBALL" |
domcox@12202 | 12 CONFIG_FILES="/etc/pm" |
domcox@6097 | 13 TAGS="power-management" |
domcox@2655 | 14 |
domcox@2655 | 15 # Rules to configure and make the package. |
domcox@2655 | 16 compile_rules() |
domcox@2655 | 17 { |
domcox@2655 | 18 cd $src |
domcox@12209 | 19 # workaround grep -x not implemented in busybox |
domcox@12209 | 20 echo -n "Applying grep -x patch.." |
domcox@12209 | 21 patch -p1 pm/functions.in $stuff/grep-x.patch > /dev/null \ |
domcox@12209 | 22 && echo done. || echo failed. |
domcox@12209 | 23 # remove acoustic management not implemented in busybox |
domcox@12209 | 24 echo -n "Applying harddrive patch.." |
domcox@12209 | 25 patch -p1 pm/power.d/harddrive $stuff/harddrive.patch > /dev/null \ |
domcox@12209 | 26 && echo done. || echo failed. |
domcox@12209 | 27 # build |
domcox@2655 | 28 ./configure \ |
domcox@2655 | 29 --prefix=/usr \ |
domcox@12202 | 30 --sysconfdir=/etc \ |
domcox@2655 | 31 $CONFIGURE_ARGS && |
domcox@2655 | 32 make && |
domcox@2655 | 33 make DESTDIR=$PWD/_pkg install |
domcox@2655 | 34 } |
domcox@2655 | 35 |
domcox@2655 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@2655 | 37 genpkg_rules() |
domcox@2655 | 38 { |
domcox@12209 | 39 # main |
domcox@12202 | 40 mkdir -p $fs/usr/lib |
domcox@2655 | 41 cp -a $_pkg/usr/bin $fs/usr |
domcox@2655 | 42 cp -a $_pkg/usr/sbin $fs/usr |
domcox@12203 | 43 cp -a $_pkg/usr/lib/pm-utils $fs/usr/lib |
domcox@12209 | 44 |
domcox@12209 | 45 # sysconfig |
domcox@2655 | 46 mkdir -p $fs/etc |
domcox@12202 | 47 cp -a $_pkg/etc/pm $fs/etc |
domcox@12209 | 48 |
domcox@12209 | 49 # remove incompatible hooks |
domcox@12209 | 50 echo "remove incompatible hooks" |
domcox@12209 | 51 # NetworkManager hook |
domcox@12209 | 52 rm -f $fs/usr/lib/pm-utils/sleep.d/55NetworkManager |
domcox@12209 | 53 # grub hook (Redhat specific) |
domcox@12209 | 54 rm -f $fs/usr/lib/pm-utils/sleep.d/01grub |
domcox@12209 | 55 # readahead hook (not busybox compliant) |
domcox@12209 | 56 rm -f $fs/usr/lib/pm-utils/power.d/readahead |
domcox@12209 | 57 # sata_alpm (causes disk errors on many hardware) |
domcox@12209 | 58 rm -f $fs/usr/lib/pm-utils/power.d/sata_alpm |
domcox@12209 | 59 |
domcox@12209 | 60 # add video quirks |
domcox@12209 | 61 echo -n "Add video quirks" |
domcox@12209 | 62 cp -a $stuff/video-quirks $fs/usr/lib/pm-utils |
domcox@12209 | 63 status |
domcox@2655 | 64 } |