new package:

- add acpid package
This commit is contained in:
Stephan Raue 2009-12-05 12:22:49 +01:00
parent b41f8a68ab
commit 3b5674ae66
6 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,2 @@
i386
x86_64

9
packages/sysutils/acpid/build Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
. config/options
$SCRIPTS/build toolchain
cd $PKG_BUILD
make CC=$CC CFLAGS="$CFLAGS -DVERSION=\"\" -D_GNU_SOURCE"

View File

@ -0,0 +1,2 @@
event=button[ /]power.*
action=/sbin/poweroff

View File

@ -0,0 +1,10 @@
#!/bin/sh
#
# start the ACPI daemon subsystem
#
# runlevels: geexbox, debug, configure
echo "### Starting ACPI daemon subsystem ###"
acpid 2>&1 > /dev/null
exit 0

15
packages/sysutils/acpid/install Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
. config/options
PKG_DIR=`find $PACKAGES -type d -name $1`
mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/acpid $INSTALL/usr/bin
[ "$DEVTOOLS" = yes ] && \
cp $PKG_BUILD/acpi_listen $INSTALL/usr/bin
mkdir -p $INSTALL/etc/acpi/events
cp $PKG_DIR/config/* $INSTALL/etc/acpi/events
mkdir -p $INSTALL/etc/acpi/scripts

View File

@ -0,0 +1 @@
http://switch.dl.sourceforge.net/sourceforge/acpid/acpid-1.0.10.tar.gz