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