wok-next rev 21200
updated acpid (2.0.30 -> 2.0.31)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Dec 02 07:22:44 2019 +0100 (2019-12-02) |
parents | bc2b795b38a8 |
children | 96eddcf9bd5f |
files | acpid/receipt |
line diff
1.1 --- a/acpid/receipt Fri Nov 29 17:39:57 2019 +0100 1.2 +++ b/acpid/receipt Mon Dec 02 07:22:44 2019 +0100 1.3 @@ -1,10 +1,11 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="acpid" 1.7 -VERSION="2.0.30" 1.8 +VERSION="2.0.31" 1.9 CATEGORY="system-tools" 1.10 +TAGS_std="power-management" 1.11 SHORT_DESC="The ACPI event daemon with netlink" 1.12 -MAINTAINER="devel@slitaz.org" 1.13 +MAINTAINER="maintainer@slitaz.org" 1.14 LICENSE="GPL2" 1.15 WEB_SITE="https://sourceforge.net/projects/acpid2/" 1.16 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/acpid.html" 1.17 @@ -12,29 +13,32 @@ 1.18 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.19 WGET_URL="$SF_MIRROR/acpid2/$TARBALL" 1.20 1.21 -TAGS_std="power-management" 1.22 SUGGESTED_std="pm-utils" 1.23 1.24 -compile_rules() { 1.25 +compile_rules() 1.26 +{ 1.27 ./configure $CONFIGURE_ARGS && 1.28 make && 1.29 make install || return 1 1.30 1.31 install -dm755 $install/etc/acpi/events 1.32 - cp -r samples $install/usr/share/doc/$PACKAGE-$VERSION 1.33 + cp -r samples $install/usr/share/doc/$PACKAGE-$VERSION 1.34 1.35 mkdir -p $install/etc/ 1.36 - cp -r $stuff/init.d $install/etc/ 1.37 - cp -r $stuff/acpi $install/etc/ 1.38 + cp -r $stuff/init.d $install/etc/ 1.39 + cp -r $stuff/acpi $install/etc/ 1.40 chmod go-rwx $install/etc/acpi/*.sh 1.41 chmod go-rwx $install/etc/acpi/events/* 1.42 } 1.43 1.44 -post_install() { 1.45 - if [ -z "$1" ]; then 1.46 +post_install() 1.47 +{ 1.48 + if [ -z "$1" ] 1.49 + then 1.50 /etc/init.d/acpid start || continue 1.51 fi 1.52 - if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then 1.53 + if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf" 1.54 + then 1.55 cat >> "$1/etc/daemons.conf" <<EOT 1.56 # ACPI daemon options. 1.57 ACPID_OPTIONS="" 1.58 @@ -43,8 +47,10 @@ 1.59 fi 1.60 } 1.61 1.62 -pre_remove() { 1.63 - if [ -z "$1" ]; then 1.64 +pre_remove() 1.65 +{ 1.66 + if [ -z "$1" ] 1.67 + then 1.68 /etc/init.d/acpid stop 1.69 fi 1.70 }