wok-next view acpid/receipt @ rev 21583

updated ddclient (3.8.3 -> 3.9.1)
author Hans-G?nter Theisgen
date Tue Jun 23 16:30:52 2020 +0100 (2020-06-23)
parents 7ce0117c8752
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="acpid"
4 VERSION="2.0.32"
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
29 cp -r $stuff/init.d $install/etc
30 cp -r $stuff/acpi $install/etc
31 chmod go-rwx $install/etc/acpi/*.sh
32 chmod go-rwx $install/etc/acpi/events/*
33 }
35 post_install()
36 {
37 if [ -z "$1" ]
38 then
39 /etc/init.d/acpid start || continue
40 fi
42 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"
43 then
44 cat >> "$1/etc/daemons.conf" <<EOT
45 # ACPI daemon options.
46 ACPID_OPTIONS=""
48 EOT
49 fi
50 }
52 pre_remove()
53 {
54 if [ -z "$1" ]
55 then
56 /etc/init.d/acpid stop
57 fi
58 }