wok annotate acpid/receipt @ rev 15069
accessx, cclcfox, chocolate-doom: add LDFLAGS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 13 13:30:04 2013 +0000 (2013-08-13) |
parents | 710feacb8b20 |
children | d5f9f516b706 |
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" |
pascal@15001 | 8 LICENSE="GPL2" |
slaxemulator@12866 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
slaxemulator@11171 | 10 WEB_SITE="http://tedfelix.com/linux/acpid-netlink.html" |
slaxemulator@11171 | 11 WGET_URL="http://www.tedfelix.com/linux/$TARBALL" |
domcox@1512 | 12 KEY_FILE="key-constants" |
jozee@3563 | 13 TAGS="power-management" |
domcox@12208 | 14 SUGGESTED="pm-utils" |
domcox@1379 | 15 |
domcox@1379 | 16 # Rules to configure and make the package. |
domcox@1379 | 17 compile_rules() |
domcox@1379 | 18 { |
domcox@12208 | 19 # Build |
domcox@1379 | 20 cd $src |
slaxemulator@12866 | 21 ./configure --prefix=/usr $CONFIGURE_ARGS && |
slaxemulator@12866 | 22 make && |
slaxemulator@11171 | 23 make DESTDIR=$DESTDIR install |
domcox@1379 | 24 } |
domcox@1379 | 25 |
domcox@1379 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@1379 | 27 genpkg_rules() |
domcox@1379 | 28 { |
domcox@1379 | 29 mkdir -p $fs/usr |
domcox@1512 | 30 # acpid |
pascal@15001 | 31 cp -a $install/usr/sbin $fs/usr |
domcox@1512 | 32 # acpi_listen |
pascal@15001 | 33 cp -a $install/usr/bin $fs/usr |
domcox@1512 | 34 # acpid conf files |
domcox@1512 | 35 mkdir -p $fs/etc |
pankso@9697 | 36 cp -a $stuff/init.d $fs/etc/ |
pankso@9697 | 37 cp -a $stuff/acpi $fs/etc/ |
domcox@12208 | 38 chmod go-rwx $fs/etc/acpi/*.sh |
domcox@12208 | 39 chmod go-rwx $fs/etc/acpi/events/* |
domcox@1379 | 40 } |
domcox@1379 | 41 |
domcox@12208 | 42 # Pre and post remove commands for Tazpkg |
domcox@12208 | 43 post_install() |
domcox@12208 | 44 { |
domcox@12208 | 45 local root |
domcox@12208 | 46 root=$1 |
domcox@12208 | 47 if [ -z "$root" ]; then |
domcox@12208 | 48 /etc/init.d/acpid start || continue |
domcox@12208 | 49 fi |
domcox@12208 | 50 if ! grep -q ^ACPID_OPTIONS $root/etc/daemons.conf; then |
domcox@12208 | 51 echo '# ACPI daemon options.' >> $root/etc/daemons.conf |
domcox@12208 | 52 echo 'ACPID_OPTIONS=""' >> $root/etc/daemons.conf |
domcox@12208 | 53 echo '' >> $root/etc/daemons.conf |
domcox@12208 | 54 fi |
domcox@12208 | 55 } |
domcox@1379 | 56 |
domcox@1379 | 57 pre_remove() |
domcox@1379 | 58 { |
slaxemulator@12866 | 59 if [ -z "$1" ]; then |
slaxemulator@12866 | 60 /etc/init.d/acpid stop |
slaxemulator@12866 | 61 fi |
domcox@1379 | 62 } |