wok annotate acpid/receipt @ rev 14041
gst-plugins-good: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 18 16:15:19 2013 +0100 (2013-02-18) |
parents | f3bc1a05a423 |
children | 408c87fa22ca |
rev | line source |
---|---|
domcox@1379 | 1 # SliTaz package receipt. |
domcox@1379 | 2 |
domcox@1379 | 3 PACKAGE="acpid" |
slaxemulator@12866 | 4 VERSION="2.0.16" |
domcox@1379 | 5 CATEGORY="system-tools" |
domcox@12208 | 6 SHORT_DESC="The ACPI event daemon with netlink" |
domcox@12208 | 7 MAINTAINER="domcox@slitaz.org" |
slaxemulator@12866 | 8 TARBALL="$PACKAGE-$VERSION.tar.xz" |
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 |
slaxemulator@12866 | 20 ./configure --prefix=/usr $CONFIGURE_ARGS && |
slaxemulator@12866 | 21 make && |
slaxemulator@11171 | 22 make DESTDIR=$DESTDIR install |
domcox@1379 | 23 } |
domcox@1379 | 24 |
domcox@1379 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@1379 | 26 genpkg_rules() |
domcox@1379 | 27 { |
domcox@1379 | 28 mkdir -p $fs/usr |
domcox@1512 | 29 # acpid |
domcox@1512 | 30 cp -a $_pkg/usr/sbin $fs/usr |
domcox@1512 | 31 # acpi_listen |
domcox@1379 | 32 cp -a $_pkg/usr/bin $fs/usr |
domcox@1512 | 33 # acpid conf files |
domcox@1512 | 34 mkdir -p $fs/etc |
pankso@9697 | 35 cp -a $stuff/init.d $fs/etc/ |
pankso@9697 | 36 cp -a $stuff/acpi $fs/etc/ |
domcox@12208 | 37 chmod go-rwx $fs/etc/acpi/*.sh |
domcox@12208 | 38 chmod go-rwx $fs/etc/acpi/events/* |
domcox@1379 | 39 } |
domcox@1379 | 40 |
domcox@12208 | 41 # Pre and post remove commands for Tazpkg |
domcox@12208 | 42 post_install() |
domcox@12208 | 43 { |
domcox@12208 | 44 local root |
domcox@12208 | 45 root=$1 |
domcox@12208 | 46 if [ -z "$root" ]; then |
domcox@12208 | 47 /etc/init.d/acpid start || continue |
domcox@12208 | 48 fi |
domcox@12208 | 49 if ! grep -q ^ACPID_OPTIONS $root/etc/daemons.conf; then |
domcox@12208 | 50 echo '# ACPI daemon options.' >> $root/etc/daemons.conf |
domcox@12208 | 51 echo 'ACPID_OPTIONS=""' >> $root/etc/daemons.conf |
domcox@12208 | 52 echo '' >> $root/etc/daemons.conf |
domcox@12208 | 53 fi |
domcox@12208 | 54 } |
domcox@1379 | 55 |
domcox@1379 | 56 pre_remove() |
domcox@1379 | 57 { |
slaxemulator@12866 | 58 if [ -z "$1" ]; then |
slaxemulator@12866 | 59 /etc/init.d/acpid stop |
slaxemulator@12866 | 60 fi |
domcox@1379 | 61 } |