wok-next annotate acpid/receipt @ rev 1379

Add: acpid
author Dominique Corbex <domcox@users.sourceforge.net>
date Fri Sep 12 10:50:43 2008 +0200 (2008-09-12)
parents
children fd13f7f143da
rev   line source
domcox@1379 1 # SliTaz package receipt.
domcox@1379 2
domcox@1379 3 PACKAGE="acpid"
domcox@1379 4 VERSION="1.0.6"
domcox@1379 5 CATEGORY="system-tools"
domcox@1379 6 SHORT_DESC="The ACPI event daemon"
domcox@1379 7 MAINTAINER="domcox@users.sourceforge.net"
domcox@1379 8 DEPENDS=""
domcox@1379 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
domcox@1379 10 WEB_SITE="http://acpid.sourceforge.net/"
domcox@1379 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
domcox@1379 12
domcox@1379 13 # Rules to configure and make the package.
domcox@1379 14 compile_rules()
domcox@1379 15 {
domcox@1379 16 cd $src
domcox@1379 17 make clean && make
domcox@1379 18 make INSTPREFIX=$PWD/_pkg install
domcox@1379 19 }
domcox@1379 20
domcox@1379 21 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@1379 22 genpkg_rules()
domcox@1379 23 {
domcox@1379 24 mkdir -p $fs/usr
domcox@1379 25 cp -a $_pkg/usr/bin $fs/usr
domcox@1379 26 cp -a $_pkg/usr/sbin $fs/usr
domcox@1379 27 mkdir -p $fs/etc/init.d
domcox@1379 28 cp -a stuff/acpid $fs/etc/init.d
domcox@1379 29 mkdir -p $fs/etc/acpi/events
domcox@1379 30 cp -a stuff/power $fs/etc/acpi/events
domcox@1379 31 touch $fs/var/log/acpid.log && chmod 700 $fs/var/log/acpid.log
domcox@1379 32 }
domcox@1379 33
domcox@1379 34 # Pre and post remove commands for Tazpkg
domcox@1379 35
domcox@1379 36 pre_remove()
domcox@1379 37 {
domcox@1379 38 /etc/init.d/acpid stop
domcox@1379 39 }
domcox@1379 40
domcox@1379 41 post_remove()
domcox@1379 42 {
domcox@1379 43 if [ `ls /etc/acpi/events | wc -l` -eq 0 ]; then
domcox@1379 44 echo -n "Removing /etc/acpi..."
domcox@1379 45 rm -rf /etc/acpi
domcox@1379 46 status
domcox@1379 47 fi
domcox@1379 48 }