wok-next view acpid/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | ede906abe532 |
children | 7b8e000b629f |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="acpid"
4 VERSION="2.0.30"
5 CATEGORY="system-tools"
6 SHORT_DESC="The ACPI event daemon with netlink"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/acpid2/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/acpid.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/acpid2/$TARBALL"
15 compile_rules() {
16 ./configure $CONFIGURE_ARGS &&
17 make &&
18 make install || return 1
20 install -dm755 $install/etc/acpi/events
21 cp -r samples $install/usr/share/doc/$PACKAGE-$VERSION
23 mkdir -p $install/etc/
24 cp -r $stuff/init.d $install/etc/
25 cp -r $stuff/acpi $install/etc/
26 chmod go-rwx $install/etc/acpi/*.sh
27 chmod go-rwx $install/etc/acpi/events/*
28 }
30 genpkg_rules() {
31 copy @std
32 TAGS="power-management"
33 SUGGESTED="pm-utils"
34 }
36 post_install() {
37 if [ -z "$1" ]; then
38 /etc/init.d/acpid start || continue
39 fi
40 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then
41 cat >> "$1/etc/daemons.conf" <<EOT
42 # ACPI daemon options.
43 ACPID_OPTIONS=""
45 EOT
46 fi
47 }
49 pre_remove() {
50 if [ -z "$1" ]; then
51 /etc/init.d/acpid stop
52 fi
53 }