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