2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "A daemon for delivering ACPI events"
|
2010-11-26 05:56:56 +00:00
|
|
|
HOMEPAGE = "http://sourceforge.net/projects/acpid/"
|
|
|
|
BUGTRACKER = "http://sourceforge.net/tracker/?group_id=33140&atid=407341"
|
|
|
|
SECTION = "base"
|
2013-12-21 23:56:36 +00:00
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
|
2008-09-25 14:41:56 +00:00
|
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \
|
2013-12-05 23:52:18 +00:00
|
|
|
file://init \
|
|
|
|
file://set_socket_noblock.patch "
|
2008-09-25 14:41:56 +00:00
|
|
|
|
|
|
|
inherit update-rc.d
|
|
|
|
|
|
|
|
INITSCRIPT_NAME = "acpid"
|
|
|
|
INITSCRIPT_PARAMS = "defaults"
|
|
|
|
|
2013-02-10 19:55:06 +00:00
|
|
|
# Makefile ignores our CFLAGS, so override it.
|
|
|
|
#
|
|
|
|
EXTRA_OEMAKE = "CFLAGS='-W -Wall -Werror -Wundef -Wshadow ${CFLAGS} $(DEFS)'"
|
2009-08-27 13:52:12 +00:00
|
|
|
|
2008-09-25 14:41:56 +00:00
|
|
|
do_compile () {
|
2009-08-27 13:52:12 +00:00
|
|
|
oe_runmake 'CC=${CC} -D_GNU_SOURCE' 'CROSS=${HOST_PREFIX}'
|
2008-09-25 14:41:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2013-09-03 08:32:49 +00:00
|
|
|
|
|
|
|
install -d ${D}${sysconfdir}/acpi
|
|
|
|
install -d ${D}${sysconfdir}/acpi/events
|
2008-09-25 14:41:56 +00:00
|
|
|
}
|