wok view pm-utils/receipt @ rev 22384
updated blender again (2.75a -> 2.81)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Nov 28 10:12:34 2019 +0100 (2019-11-28) |
parents | 9e01bc6321ea |
children | 241fb98cab1c |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://pm-utils.freedesktop.org/wiki/"
11 WGET_URL="http://pm-utils.freedesktop.org/releases/$TARBALL"
12 CONFIG_FILES="/etc/pm"
13 TAGS="power-management"
15 DEPENDS="bash kbd"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 # workaround grep -x not implemented in busybox
22 echo -n "Applying grep -x patch.."
23 patch -p1 pm/functions.in $stuff/grep-x.patch > /dev/null \
24 && echo done. || echo failed.
25 # remove acoustic management not implemented in busybox
26 echo -n "Applying harddrive patch.."
27 patch -p1 pm/power.d/harddrive $stuff/harddrive.patch > /dev/null \
28 && echo done. || echo failed.
29 # build
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 # main
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $install/usr/lib/pm-utils $fs/usr/lib
47 # sysconfig
48 mkdir -p $fs/etc
49 cp -a $install/etc/pm $fs/etc
51 # remove incompatible hooks
52 echo "remove incompatible hooks"
53 # NetworkManager hook
54 rm -f $fs/usr/lib/pm-utils/sleep.d/55NetworkManager
55 # grub hook (Redhat specific)
56 rm -f $fs/usr/lib/pm-utils/sleep.d/01grub
57 # readahead hook (not busybox compliant)
58 rm -f $fs/usr/lib/pm-utils/power.d/readahead
59 # sata_alpm (causes disk errors on many hardware)
60 rm -f $fs/usr/lib/pm-utils/power.d/sata_alpm
62 # add video quirks
63 echo -n "Add video quirks"
64 cp -a $stuff/video-quirks $fs/usr/lib/pm-utils
65 status
66 }
68 pre_remove()
69 {
70 [ -s "$1/etc/slim.conf" ] &&
71 sed -i 's|.*/usr/sbin/pm-suspend|#&|' "$1/etc/slim.conf"
72 }
74 post_install()
75 {
76 [ -s "$1/etc/slim.conf" ] &&
77 sed -i 's|^#suspend_cmd.*|suspend_cmd /usr/sbin/pm-suspend|' \
78 "$1/etc/slim.conf"
79 }