Needed on x86 machines. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5270 311d38ba-8fff-0310-9ca6-ca027cbcb966
25 lines
583 B
PHP
25 lines
583 B
PHP
SECTION = "base"
|
|
DESCRIPTION = "A daemon for delivering ACPI events."
|
|
LICENSE="GPL"
|
|
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \
|
|
file://init"
|
|
|
|
inherit update-rc.d
|
|
|
|
INITSCRIPT_NAME = "acpid"
|
|
INITSCRIPT_PARAMS = "defaults"
|
|
|
|
EXTRA_OEMAKE = ""
|
|
do_compile () {
|
|
oe_runmake 'CC=${CC}' 'CROSS=${HOST_PREFIX}'
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${bindir}
|
|
oe_runmake 'INSTPREFIX=${D}' install
|
|
install -d ${D}${sysconfdir}/init.d
|
|
cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid
|
|
chmod 755 ${D}${sysconfdir}/init.d/acpid
|
|
}
|