diff options
author | Samuel Ortiz <sameo@openedhand.com> | 2008-09-25 14:41:56 +0000 |
---|---|---|
committer | Samuel Ortiz <sameo@openedhand.com> | 2008-09-25 14:41:56 +0000 |
commit | f65b9db4a042cef18c39741b2c5ac1a3a1273fdc (patch) | |
tree | f55972ed6d6baec1401d1ba5adb98144fc1ec458 /meta/packages/acpid/acpid.inc | |
parent | 6ae402ea3f980278480b918e09f6766e68bdf436 (diff) | |
download | poky-f65b9db4a042cef18c39741b2c5ac1a3a1273fdc.tar.gz |
acpid: Initial poky commit
Needed on x86 machines.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5270 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/acpid/acpid.inc')
-rw-r--r-- | meta/packages/acpid/acpid.inc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/packages/acpid/acpid.inc b/meta/packages/acpid/acpid.inc new file mode 100644 index 0000000000..6e79915527 --- /dev/null +++ b/meta/packages/acpid/acpid.inc | |||
@@ -0,0 +1,24 @@ | |||
1 | SECTION = "base" | ||
2 | DESCRIPTION = "A daemon for delivering ACPI events." | ||
3 | LICENSE="GPL" | ||
4 | |||
5 | SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \ | ||
6 | file://init" | ||
7 | |||
8 | inherit update-rc.d | ||
9 | |||
10 | INITSCRIPT_NAME = "acpid" | ||
11 | INITSCRIPT_PARAMS = "defaults" | ||
12 | |||
13 | EXTRA_OEMAKE = "" | ||
14 | do_compile () { | ||
15 | oe_runmake 'CC=${CC}' 'CROSS=${HOST_PREFIX}' | ||
16 | } | ||
17 | |||
18 | do_install () { | ||
19 | install -d ${D}${bindir} | ||
20 | oe_runmake 'INSTPREFIX=${D}' install | ||
21 | install -d ${D}${sysconfdir}/init.d | ||
22 | cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid | ||
23 | chmod 755 ${D}${sysconfdir}/init.d/acpid | ||
24 | } | ||