wok diff acpid/receipt @ rev 12823
glibc-base: improve ARM package
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 22 10:22:47 2012 +0200 (2012-05-22) |
parents | e20765e81e23 |
children | 710feacb8b20 |
line diff
1.1 --- a/acpid/receipt Wed Nov 02 15:31:12 2011 +0000 1.2 +++ b/acpid/receipt Tue May 22 10:22:47 2012 +0200 1.3 @@ -1,35 +1,21 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="acpid" 1.7 -VERSION="2.0.12" 1.8 +VERSION="2.0.14" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="The ACPI event daemon" 1.11 -MAINTAINER="domcox@users.sourceforge.net" 1.12 +SHORT_DESC="The ACPI event daemon with netlink" 1.13 +MAINTAINER="domcox@slitaz.org" 1.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WEB_SITE="http://tedfelix.com/linux/acpid-netlink.html" 1.16 WGET_URL="http://www.tedfelix.com/linux/$TARBALL" 1.17 KEY_FILE="key-constants" 1.18 TAGS="power-management" 1.19 +SUGGESTED="pm-utils" 1.20 1.21 # Rules to configure and make the package. 1.22 compile_rules() 1.23 { 1.24 - # Build acpi_fakekey utility 1.25 - cp -a $stuff/acpi_fakekey.c . 1.26 - gcc -g -Wall -o acpi_fakekey acpi_fakekey.c 1.27 - # Generate key constants file 1.28 - INPUT_H="/usr/include/linux/input.h" 1.29 - echo -n '# Generated from $INPUT dated ' > $KEY_FILE 1.30 - date -r $INPUT_H >> $KEY_FILE 1.31 - echo "KEY_RESERVED=0" >> $KEY_FILE 1.32 - awk '/define KEY_/{if($3 <= 255 && $3 > 0) print $2"="$3}' $INPUT_H | sort -nt'=' -k2 >> $KEY_FILE 1.33 - echo "KEY_LOCK=\$KEY_COFFEE" >> $KEY_FILE 1.34 - echo "KEY_LIGHT=\$KEY_F19" >> $KEY_FILE 1.35 - echo "KEY_VIDEOOUT=\$KEY_F20" >> $KEY_FILE 1.36 - echo "KEY_ROTATESCREEN=\$KEY_F21" >> $KEY_FILE 1.37 - echo "KEY_VIDEOMODECYCLE=\$KEY_F22" >> $KEY_FILE 1.38 - echo "KEY_PRESENTATION=\KEY_F23" >> $KEY_FILE 1.39 - # Build acpid 1.40 + # Build 1.41 cd $src 1.42 make clean && make 1.43 make DESTDIR=$DESTDIR install 1.44 @@ -47,28 +33,26 @@ 1.45 mkdir -p $fs/etc 1.46 cp -a $stuff/init.d $fs/etc/ 1.47 cp -a $stuff/acpi $fs/etc/ 1.48 - # acpi_fakekey 1.49 - cp -a $src/acpi_fakekey $fs/usr/bin 1.50 - cp -a $src/$KEY_FILE $fs/etc/acpi/ 1.51 + chmod go-rwx $fs/etc/acpi/*.sh 1.52 + chmod go-rwx $fs/etc/acpi/events/* 1.53 } 1.54 1.55 -# Pre and post remove commands for Tazpkg 1.56 +# Pre and post remove commands for Tazpkg 1.57 +post_install() 1.58 +{ 1.59 + local root 1.60 + root=$1 1.61 + if [ -z "$root" ]; then 1.62 + /etc/init.d/acpid start || continue 1.63 + fi 1.64 + if ! grep -q ^ACPID_OPTIONS $root/etc/daemons.conf; then 1.65 + echo '# ACPI daemon options.' >> $root/etc/daemons.conf 1.66 + echo 'ACPID_OPTIONS=""' >> $root/etc/daemons.conf 1.67 + echo '' >> $root/etc/daemons.conf 1.68 + fi 1.69 +} 1.70 1.71 pre_remove() 1.72 { 1.73 /etc/init.d/acpid stop 1.74 } 1.75 - 1.76 -post_remove() 1.77 -{ 1.78 - if [ `ls /etc/acpi/events | wc -l` -eq 0 ]; then 1.79 - echo -n "Removing /etc/acpi/events" 1.80 - rm -rf /etc/acpi/events 1.81 - status 1.82 - fi 1.83 - if [ `ls /etc/acpi | wc -l` -eq 0 ]; then 1.84 - echo -n "Removing /etc/acpi" 1.85 - rm -rf /etc/acpi 1.86 - status 1.87 - fi 1.88 -}