wok-current view acpid/receipt @ rev 24087
Up tazlito (531)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 11 11:04:20 2021 +0000 (2021-07-11) |
parents | 35974beb0c49 |
children | 5f6c5106b1f5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="acpid"
4 VERSION="2.0.32"
5 CATEGORY="system-tools"
6 TAGS="power-management"
7 SHORT_DESC="The ACPI event daemon with netlink."
8 MAINTAINER="domcox@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://sourceforge.net/projects/acpid2/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/acpid2/$TARBALL"
15 KEY_FILE="key-constants"
16 SUGGESTED="pm-utils"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure --prefix=/usr $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
31 # acpid
32 cp -a $install/usr/sbin $fs/usr
34 # acpi_listen
35 cp -a $install/usr/bin $fs/usr
37 # acpid conf files
38 mkdir -p $fs/etc
40 cp -a $stuff/init.d $fs/etc/
41 cp -a $stuff/acpi $fs/etc/
42 chmod go-rwx $fs/etc/acpi/*.sh
43 chmod go-rwx $fs/etc/acpi/events/*
44 }
46 # Pre and post remove commands for Tazpkg
47 post_install()
48 {
49 if [ -z "$1" ]
50 then
51 /etc/init.d/acpid start || continue
52 fi
53 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"
54 then
55 echo '# ACPI daemon options.' >> "$1/etc/daemons.conf"
56 echo 'ACPID_OPTIONS=""' >> "$1/etc/daemons.conf"
57 echo '' >> "$1/etc/daemons.conf"
58 fi
59 }
61 pre_remove()
62 {
63 if [ -z "$1" ]
64 then
65 /etc/init.d/acpid stop
66 fi
67 }