wok-next annotate acpid/receipt @ rev 18997
Add missing "newline at end of file", use $SF_MIRROR
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 19 12:58:23 2016 +0200 (2016-03-19) |
parents | 7b00a1691d2e |
children | 45507bfb2b0d |
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" |
hackdorte@18996 | 10 WEB_SITE="https://sourceforge.net/projects/acpid2/" |
al@18997 | 11 WGET_URL="$SF_MIRROR/acpid2/$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 } |