wok-6.x view acpid/receipt @ rev 18825
Add pyvim
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Jan 17 09:32:09 2016 +0000 (2016-01-17) |
parents | 408c87fa22ca |
children | 7b00a1691d2e |
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="http://tedfelix.com/linux/acpid-netlink.html"
11 WGET_URL="http://www.tedfelix.com/linux/$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 }