wok-next annotate acpid/receipt @ rev 21057
Deal with HOST_ARCH="any"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 03 14:47:30 2018 +0200 (2018-12-03) |
parents | d5aab818505e |
children | 7ce0117c8752 |
rev | line source |
---|---|
al@20679 | 1 # SliTaz package receipt v2. |
domcox@1379 | 2 |
domcox@1379 | 3 PACKAGE="acpid" |
al@20957 | 4 VERSION="2.0.30" |
domcox@1379 | 5 CATEGORY="system-tools" |
domcox@12208 | 6 SHORT_DESC="The ACPI event daemon with netlink" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
al@19275 | 9 WEB_SITE="https://sourceforge.net/projects/acpid2/" |
al@20957 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/acpid.html" |
al@20679 | 11 |
slaxemulator@12866 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@18997 | 13 WGET_URL="$SF_MIRROR/acpid2/$TARBALL" |
domcox@1379 | 14 |
al@21048 | 15 TAGS_std="power-management" |
al@21048 | 16 SUGGESTED_std="pm-utils" |
al@21048 | 17 |
al@20679 | 18 compile_rules() { |
al@20679 | 19 ./configure $CONFIGURE_ARGS && |
slaxemulator@12866 | 20 make && |
al@20679 | 21 make install || return 1 |
al@20679 | 22 |
al@20679 | 23 install -dm755 $install/etc/acpi/events |
al@20679 | 24 cp -r samples $install/usr/share/doc/$PACKAGE-$VERSION |
al@20679 | 25 |
al@20679 | 26 mkdir -p $install/etc/ |
al@20679 | 27 cp -r $stuff/init.d $install/etc/ |
al@20679 | 28 cp -r $stuff/acpi $install/etc/ |
al@20679 | 29 chmod go-rwx $install/etc/acpi/*.sh |
al@20679 | 30 chmod go-rwx $install/etc/acpi/events/* |
domcox@1379 | 31 } |
domcox@1379 | 32 |
al@20679 | 33 post_install() { |
al@18667 | 34 if [ -z "$1" ]; then |
domcox@12208 | 35 /etc/init.d/acpid start || continue |
domcox@12208 | 36 fi |
al@18667 | 37 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then |
al@20679 | 38 cat >> "$1/etc/daemons.conf" <<EOT |
al@20679 | 39 # ACPI daemon options. |
al@20679 | 40 ACPID_OPTIONS="" |
al@20679 | 41 |
al@20679 | 42 EOT |
domcox@12208 | 43 fi |
al@20679 | 44 } |
domcox@1379 | 45 |
al@20679 | 46 pre_remove() { |
slaxemulator@12866 | 47 if [ -z "$1" ]; then |
slaxemulator@12866 | 48 /etc/init.d/acpid stop |
slaxemulator@12866 | 49 fi |
domcox@1379 | 50 } |