2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "A daemon for delivering ACPI events"
|
2016-01-20 15:58:47 +00:00
|
|
|
HOMEPAGE = "http://sourceforge.net/projects/acpid2"
|
|
|
|
BUGTRACKER = "http://sourceforge.net/p/acpid2/tickets/?source=navbar"
|
2010-11-26 05:56:56 +00:00
|
|
|
SECTION = "base"
|
2013-12-21 23:56:36 +00:00
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
|
2014-09-03 07:09:08 +00:00
|
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \
|
2013-12-05 23:52:18 +00:00
|
|
|
file://init \
|
2014-09-03 07:09:08 +00:00
|
|
|
file://acpid.service \
|
|
|
|
"
|
2008-09-25 14:41:56 +00:00
|
|
|
|
2014-09-03 07:09:08 +00:00
|
|
|
inherit autotools update-rc.d systemd
|
2008-09-25 14:41:56 +00:00
|
|
|
|
|
|
|
INITSCRIPT_NAME = "acpid"
|
|
|
|
INITSCRIPT_PARAMS = "defaults"
|
|
|
|
|
2014-09-15 07:44:21 +00:00
|
|
|
SYSTEMD_SERVICE_${PN} = "acpid.service"
|
2009-08-27 13:52:12 +00:00
|
|
|
|
2014-09-03 07:09:08 +00:00
|
|
|
do_install_append () {
|
2008-09-25 14:41:56 +00:00
|
|
|
install -d ${D}${sysconfdir}/init.d
|
2014-05-06 12:17:48 +00:00
|
|
|
sed -e 's,/usr/sbin,${sbindir},g' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/acpid
|
2008-09-25 14:41:56 +00:00
|
|
|
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
|
2014-09-03 07:09:08 +00:00
|
|
|
|
|
|
|
install -d ${D}${systemd_unitdir}/system
|
|
|
|
install -m 0644 ${WORKDIR}/acpid.service ${D}${systemd_unitdir}/system
|
|
|
|
sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/acpid.service
|
2008-09-25 14:41:56 +00:00
|
|
|
}
|