wok-next view acpid/receipt @ rev 20976

Follow recent changes in the Python renames
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Sep 25 17:35:51 2018 +0300 (2018-09-25)
parents 1ca369c9f448
children d5aab818505e
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="domcox@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 }