wok-current annotate acpid/receipt @ rev 18667
Change messaging in {pre|post}_{install|remove}(): wget and a* packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 04 16:32:53 2015 +0200 (2015-12-04) |
parents | 408c87fa22ca |
children | 7b00a1691d2e |
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 { |
al@18667 | 45 if [ -z "$1" ]; then |
domcox@12208 | 46 /etc/init.d/acpid start || continue |
domcox@12208 | 47 fi |
al@18667 | 48 if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then |
al@18667 | 49 echo '# ACPI daemon options.' >> "$1/etc/daemons.conf" |
al@18667 | 50 echo 'ACPID_OPTIONS=""' >> "$1/etc/daemons.conf" |
al@18667 | 51 echo '' >> "$1/etc/daemons.conf" |
domcox@12208 | 52 fi |
domcox@12208 | 53 } |
domcox@1379 | 54 |
domcox@1379 | 55 pre_remove() |
domcox@1379 | 56 { |
slaxemulator@12866 | 57 if [ -z "$1" ]; then |
slaxemulator@12866 | 58 /etc/init.d/acpid stop |
slaxemulator@12866 | 59 fi |
domcox@1379 | 60 } |