wok view acpid/receipt @ rev 12872
avidemux: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 25 09:43:11 2012 +0200 (2012-05-25) |
parents | f3bc1a05a423 |
children | 408c87fa22ca |
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 TARBALL="$PACKAGE-$VERSION.tar.xz"
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 ./configure --prefix=/usr $CONFIGURE_ARGS &&
21 make &&
22 make DESTDIR=$DESTDIR install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr
29 # acpid
30 cp -a $_pkg/usr/sbin $fs/usr
31 # acpi_listen
32 cp -a $_pkg/usr/bin $fs/usr
33 # acpid conf files
34 mkdir -p $fs/etc
35 cp -a $stuff/init.d $fs/etc/
36 cp -a $stuff/acpi $fs/etc/
37 chmod go-rwx $fs/etc/acpi/*.sh
38 chmod go-rwx $fs/etc/acpi/events/*
39 }
41 # Pre and post remove commands for Tazpkg
42 post_install()
43 {
44 local root
45 root=$1
46 if [ -z "$root" ]; then
47 /etc/init.d/acpid start || continue
48 fi
49 if ! grep -q ^ACPID_OPTIONS $root/etc/daemons.conf; then
50 echo '# ACPI daemon options.' >> $root/etc/daemons.conf
51 echo 'ACPID_OPTIONS=""' >> $root/etc/daemons.conf
52 echo '' >> $root/etc/daemons.conf
53 fi
54 }
56 pre_remove()
57 {
58 if [ -z "$1" ]; then
59 /etc/init.d/acpid stop
60 fi
61 }