wok-current view acpid/receipt @ rev 21047

updated imlib2 and imlib2-dev (1.4.6 -> 1.5.1)
author Hans-G?nter Theisgen
date Tue Mar 12 16:40:34 2019 +0100 (2019-03-12)
parents 11b5e93cb5f2
children 959dc0a66148
line source
1 # SliTaz package receipt.
3 PACKAGE="acpid"
4 VERSION="2.0.31"
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 }