wok-next view acpid/receipt @ rev 20803
I. nagios update: 3.5.0 (March 15, 2013) -> 3.5.1 (2013-08-30) II. typo
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 13 06:48:53 2018 +0000 (2018-06-13) |
parents | 11b5e93cb5f2 |
children | ede906abe532 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="acpid"
4 VERSION="2.0.28"
5 CATEGORY="system-tools"
6 SHORT_DESC="The ACPI event daemon with netlink"
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/acpid2/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/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 }