wok-next view acpid/receipt @ rev 21048
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 27 02:24:27 2018 +0200 (2018-11-27) |
parents | d5aab818505e |
children | 7ce0117c8752 |
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 TAGS_std="power-management"
16 SUGGESTED_std="pm-utils"
18 compile_rules() {
19 ./configure $CONFIGURE_ARGS &&
20 make &&
21 make install || return 1
23 install -dm755 $install/etc/acpi/events
24 cp -r samples $install/usr/share/doc/$PACKAGE-$VERSION
26 mkdir -p $install/etc/
27 cp -r $stuff/init.d $install/etc/
28 cp -r $stuff/acpi $install/etc/
29 chmod go-rwx $install/etc/acpi/*.sh
30 chmod go-rwx $install/etc/acpi/events/*
31 }
33 post_install() {
34 if [ -z "$1" ]; then
35 /etc/init.d/acpid start || continue
36 fi
37 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then
38 cat >> "$1/etc/daemons.conf" <<EOT
39 # ACPI daemon options.
40 ACPID_OPTIONS=""
42 EOT
43 fi
44 }
46 pre_remove() {
47 if [ -z "$1" ]; then
48 /etc/init.d/acpid stop
49 fi
50 }