M7350/oe-core/meta/recipes-bsp/acpid/acpid.inc

31 lines
945 B
PHP
Raw Normal View History

2024-09-09 08:57:42 +00:00
SUMMARY = "A daemon for delivering ACPI events"
2024-09-09 08:52:07 +00:00
HOMEPAGE = "http://sourceforge.net/projects/acpid/"
BUGTRACKER = "http://sourceforge.net/tracker/?group_id=33140&atid=407341"
SECTION = "base"
2024-09-09 08:57:42 +00:00
LICENSE = "GPLv2+"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \
file://init \
file://acpid.service \
"
inherit autotools update-rc.d systemd
2024-09-09 08:52:07 +00:00
INITSCRIPT_NAME = "acpid"
INITSCRIPT_PARAMS = "defaults"
2024-09-09 08:57:42 +00:00
SYSTEMD_SERVICE_${PN} = "acpid.service"
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
do_install_append () {
2024-09-09 08:52:07 +00:00
install -d ${D}${sysconfdir}/init.d
2024-09-09 08:57:42 +00:00
sed -e 's,/usr/sbin,${sbindir},g' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/acpid
2024-09-09 08:52:07 +00:00
chmod 755 ${D}${sysconfdir}/init.d/acpid
2024-09-09 08:57:42 +00:00
install -d ${D}${sysconfdir}/acpi
install -d ${D}${sysconfdir}/acpi/events
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
2024-09-09 08:52:07 +00:00
}