wok-6.x view acpid/receipt @ rev 20334
Do not use efi shell (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 02 16:13:06 2018 +0200 (2018-06-02) |
parents | 45507bfb2b0d |
children | 35974beb0c49 |
line source
1 # SliTaz package receipt.
3 PACKAGE="acpid"
4 VERSION="2.0.16"
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 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="$SF_MIRROR/acpid2/$TARBALL"
12 KEY_FILE="key-constants"
13 TAGS="power-management"
14 SUGGESTED="pm-utils"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure --prefix=/usr $CONFIGURE_ARGS &&
20 make &&
21 make DESTDIR=$DESTDIR install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 # acpid
29 cp -a $install/usr/sbin $fs/usr
30 # acpi_listen
31 cp -a $install/usr/bin $fs/usr
32 # acpid conf files
33 mkdir -p $fs/etc
34 cp -a $stuff/init.d $fs/etc/
35 cp -a $stuff/acpi $fs/etc/
36 chmod go-rwx $fs/etc/acpi/*.sh
37 chmod go-rwx $fs/etc/acpi/events/*
38 }
40 # Pre and post remove commands for Tazpkg
41 post_install()
42 {
43 if [ -z "$1" ]; then
44 /etc/init.d/acpid start || continue
45 fi
46 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then
47 echo '# ACPI daemon options.' >> "$1/etc/daemons.conf"
48 echo 'ACPID_OPTIONS=""' >> "$1/etc/daemons.conf"
49 echo '' >> "$1/etc/daemons.conf"
50 fi
51 }
53 pre_remove()
54 {
55 if [ -z "$1" ]; then
56 /etc/init.d/acpid stop
57 fi
58 }