wok-next view acpid/receipt @ rev 19061

Add: Transcends Games. A font with retro-futuristic style.
author Leonardo Laporte <hackdorte@sapo.pt>
date Wed Apr 20 23:17:41 2016 -0300 (2016-04-20)
parents 7b00a1691d2e
children 45507bfb2b0d
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 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://sourceforge.net/projects/acpid2/"
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 # Build
20 cd $src
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
30 # acpid
31 cp -a $install/usr/sbin $fs/usr
32 # acpi_listen
33 cp -a $install/usr/bin $fs/usr
34 # acpid conf files
35 mkdir -p $fs/etc
36 cp -a $stuff/init.d $fs/etc/
37 cp -a $stuff/acpi $fs/etc/
38 chmod go-rwx $fs/etc/acpi/*.sh
39 chmod go-rwx $fs/etc/acpi/events/*
40 }
42 # Pre and post remove commands for Tazpkg
43 post_install()
44 {
45 if [ -z "$1" ]; then
46 /etc/init.d/acpid start || continue
47 fi
48 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then
49 echo '# ACPI daemon options.' >> "$1/etc/daemons.conf"
50 echo 'ACPID_OPTIONS=""' >> "$1/etc/daemons.conf"
51 echo '' >> "$1/etc/daemons.conf"
52 fi
53 }
55 pre_remove()
56 {
57 if [ -z "$1" ]; then
58 /etc/init.d/acpid stop
59 fi
60 }