wok-6.x view acpid/receipt @ rev 12262
Up: gmp (5.0.4) First new pkg used by new toolchain
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 11 17:36:00 2012 +0200 (2012-04-11) |
parents | e20765e81e23 |
children | 710feacb8b20 |
line source
1 # SliTaz package receipt.
3 PACKAGE="acpid"
4 VERSION="2.0.14"
5 CATEGORY="system-tools"
6 SHORT_DESC="The ACPI event daemon with netlink"
7 MAINTAINER="domcox@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://tedfelix.com/linux/acpid-netlink.html"
10 WGET_URL="http://www.tedfelix.com/linux/$TARBALL"
11 KEY_FILE="key-constants"
12 TAGS="power-management"
13 SUGGESTED="pm-utils"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 # Build
19 cd $src
20 make clean && make
21 make DESTDIR=$DESTDIR install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 # acpid
29 cp -a $_pkg/usr/sbin $fs/usr
30 # acpi_listen
31 cp -a $_pkg/usr/bin $fs/usr
32 # acpid conf files
33 mkdir -p $fs/etc
34 cp -a $stuff/init.d $fs/etc/
35 cp -a $stuff/acpi $fs/etc/
36 chmod go-rwx $fs/etc/acpi/*.sh
37 chmod go-rwx $fs/etc/acpi/events/*
38 }
40 # Pre and post remove commands for Tazpkg
41 post_install()
42 {
43 local root
44 root=$1
45 if [ -z "$root" ]; then
46 /etc/init.d/acpid start || continue
47 fi
48 if ! grep -q ^ACPID_OPTIONS $root/etc/daemons.conf; then
49 echo '# ACPI daemon options.' >> $root/etc/daemons.conf
50 echo 'ACPID_OPTIONS=""' >> $root/etc/daemons.conf
51 echo '' >> $root/etc/daemons.conf
52 fi
53 }
55 pre_remove()
56 {
57 /etc/init.d/acpid stop
58 }