wok-6.x diff acpid/receipt @ rev 1442
linux lzma hardinfo etherboot mISDN busybox: apply path once
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 02 16:39:02 2008 +0000 (2008-10-02) |
parents | |
children | fd13f7f143da |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/acpid/receipt Thu Oct 02 16:39:02 2008 +0000 1.3 @@ -0,0 +1,48 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="acpid" 1.7 +VERSION="1.0.6" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="The ACPI event daemon" 1.10 +MAINTAINER="domcox@users.sourceforge.net" 1.11 +DEPENDS="" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://acpid.sourceforge.net/" 1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $src 1.20 + make clean && make 1.21 + make INSTPREFIX=$PWD/_pkg install 1.22 +} 1.23 + 1.24 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.25 +genpkg_rules() 1.26 +{ 1.27 + mkdir -p $fs/usr 1.28 + cp -a $_pkg/usr/bin $fs/usr 1.29 + cp -a $_pkg/usr/sbin $fs/usr 1.30 + mkdir -p $fs/etc/init.d 1.31 + cp -a stuff/acpid $fs/etc/init.d 1.32 + mkdir -p $fs/etc/acpi/events 1.33 + cp -a stuff/power $fs/etc/acpi/events 1.34 + touch $fs/var/log/acpid.log && chmod 700 $fs/var/log/acpid.log 1.35 +} 1.36 + 1.37 +# Pre and post remove commands for Tazpkg 1.38 + 1.39 +pre_remove() 1.40 +{ 1.41 + /etc/init.d/acpid stop 1.42 +} 1.43 + 1.44 +post_remove() 1.45 +{ 1.46 + if [ `ls /etc/acpi/events | wc -l` -eq 0 ]; then 1.47 + echo -n "Removing /etc/acpi..." 1.48 + rm -rf /etc/acpi 1.49 + status 1.50 + fi 1.51 +} 1.52 \ No newline at end of file