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