wok annotate acpid/receipt @ rev 12281
Add razor-qt (Light, fast QT based Desktop Environment)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 15 14:00:30 2012 +0200 (2012-04-15) |
parents | e20765e81e23 |
children | 710feacb8b20 |
rev | line source |
---|---|
domcox@1379 | 1 # SliTaz package receipt. |
domcox@1379 | 2 |
domcox@1379 | 3 PACKAGE="acpid" |
domcox@12208 | 4 VERSION="2.0.14" |
domcox@1379 | 5 CATEGORY="system-tools" |
domcox@12208 | 6 SHORT_DESC="The ACPI event daemon with netlink" |
domcox@12208 | 7 MAINTAINER="domcox@slitaz.org" |
domcox@1379 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@11171 | 9 WEB_SITE="http://tedfelix.com/linux/acpid-netlink.html" |
slaxemulator@11171 | 10 WGET_URL="http://www.tedfelix.com/linux/$TARBALL" |
domcox@1512 | 11 KEY_FILE="key-constants" |
jozee@3563 | 12 TAGS="power-management" |
domcox@12208 | 13 SUGGESTED="pm-utils" |
domcox@1379 | 14 |
domcox@1379 | 15 # Rules to configure and make the package. |
domcox@1379 | 16 compile_rules() |
domcox@1379 | 17 { |
domcox@12208 | 18 # Build |
domcox@1379 | 19 cd $src |
domcox@1379 | 20 make clean && make |
slaxemulator@11171 | 21 make DESTDIR=$DESTDIR install |
domcox@1379 | 22 } |
domcox@1379 | 23 |
domcox@1379 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@1379 | 25 genpkg_rules() |
domcox@1379 | 26 { |
domcox@1379 | 27 mkdir -p $fs/usr |
domcox@1512 | 28 # acpid |
domcox@1512 | 29 cp -a $_pkg/usr/sbin $fs/usr |
domcox@1512 | 30 # acpi_listen |
domcox@1379 | 31 cp -a $_pkg/usr/bin $fs/usr |
domcox@1512 | 32 # acpid conf files |
domcox@1512 | 33 mkdir -p $fs/etc |
pankso@9697 | 34 cp -a $stuff/init.d $fs/etc/ |
pankso@9697 | 35 cp -a $stuff/acpi $fs/etc/ |
domcox@12208 | 36 chmod go-rwx $fs/etc/acpi/*.sh |
domcox@12208 | 37 chmod go-rwx $fs/etc/acpi/events/* |
domcox@1379 | 38 } |
domcox@1379 | 39 |
domcox@12208 | 40 # Pre and post remove commands for Tazpkg |
domcox@12208 | 41 post_install() |
domcox@12208 | 42 { |
domcox@12208 | 43 local root |
domcox@12208 | 44 root=$1 |
domcox@12208 | 45 if [ -z "$root" ]; then |
domcox@12208 | 46 /etc/init.d/acpid start || continue |
domcox@12208 | 47 fi |
domcox@12208 | 48 if ! grep -q ^ACPID_OPTIONS $root/etc/daemons.conf; then |
domcox@12208 | 49 echo '# ACPI daemon options.' >> $root/etc/daemons.conf |
domcox@12208 | 50 echo 'ACPID_OPTIONS=""' >> $root/etc/daemons.conf |
domcox@12208 | 51 echo '' >> $root/etc/daemons.conf |
domcox@12208 | 52 fi |
domcox@12208 | 53 } |
domcox@1379 | 54 |
domcox@1379 | 55 pre_remove() |
domcox@1379 | 56 { |
domcox@1379 | 57 /etc/init.d/acpid stop |
domcox@1379 | 58 } |