wok view acpid/receipt @ rev 19264
Compress manpages (in $install/usr/share/man/...)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 04 00:54:49 2016 +0300 (2016-07-04) |
parents | 80e1ac5015cb |
children | 11b5e93cb5f2 |
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 ./configure --prefix=/usr $CONFIGURE_ARGS &&
20 make &&
21 make DESTDIR=$DESTDIR install
23 cook_compress_manpages
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 }