wok-next view acpid/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | 7b8e000b629f |
children | 843de6cc07a1 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="acpid"
4 VERSION="2.0.31"
5 CATEGORY="system-tools"
6 TAGS_std="power-management"
7 SHORT_DESC="The ACPI event daemon with netlink"
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://sourceforge.net/projects/acpid2/"
11 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/acpid.html"
13 TARBALL="$PACKAGE-$VERSION.tar.xz"
14 WGET_URL="$SF_MIRROR/acpid2/$TARBALL"
16 SUGGESTED_std="pm-utils"
18 compile_rules()
19 {
20 ./configure $CONFIGURE_ARGS &&
21 make &&
22 make install || return 1
24 install -dm755 $install/etc/acpi/events
25 cp -r samples $install/usr/share/doc/$PACKAGE-$VERSION
27 mkdir -p $install/etc/
28 cp -r $stuff/init.d $install/etc/
29 cp -r $stuff/acpi $install/etc/
30 chmod go-rwx $install/etc/acpi/*.sh
31 chmod go-rwx $install/etc/acpi/events/*
32 }
34 post_install()
35 {
36 if [ -z "$1" ]
37 then
38 /etc/init.d/acpid start || continue
39 fi
40 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"
41 then
42 cat >> "$1/etc/daemons.conf" <<EOT
43 # ACPI daemon options.
44 ACPID_OPTIONS=""
46 EOT
47 fi
48 }
50 pre_remove()
51 {
52 if [ -z "$1" ]
53 then
54 /etc/init.d/acpid stop
55 fi
56 }