1*4882a593SmuzhiyunSUMMARY = "A daemon for delivering ACPI events" 2*4882a593SmuzhiyunDESCRIPTION = "ACPID is a completely flexible, totally extensible daemon for \ 3*4882a593Smuzhiyundelivering ACPI events. It listens on netlink interface (or on the \ 4*4882a593Smuzhiyundeprecated file /proc/acpi/event), and when an event occurs, executes programs \ 5*4882a593Smuzhiyunto handle the event. The programs it executes are configured through a set of \ 6*4882a593Smuzhiyunconfiguration files, which can be dropped into place by packages or by the \ 7*4882a593Smuzhiyunadmin." 8*4882a593SmuzhiyunHOMEPAGE = "http://sourceforge.net/projects/acpid2" 9*4882a593SmuzhiyunBUGTRACKER = "http://sourceforge.net/p/acpid2/tickets/?source=navbar" 10*4882a593SmuzhiyunSECTION = "base" 11*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later" 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunSRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \ 14*4882a593Smuzhiyun file://init \ 15*4882a593Smuzhiyun file://acpid.service \ 16*4882a593Smuzhiyun " 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunCVE_PRODUCT = "acpid2" 19*4882a593Smuzhiyun 20*4882a593Smuzhiyuninherit autotools update-rc.d systemd 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunINITSCRIPT_NAME = "acpid" 23*4882a593SmuzhiyunINITSCRIPT_PARAMS = "defaults" 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunSYSTEMD_SERVICE:${PN} = "acpid.service" 26*4882a593Smuzhiyun 27*4882a593Smuzhiyundo_install:append () { 28*4882a593Smuzhiyun install -d ${D}${sysconfdir}/init.d 29*4882a593Smuzhiyun sed -e 's,/usr/sbin,${sbindir},g' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/acpid 30*4882a593Smuzhiyun chmod 755 ${D}${sysconfdir}/init.d/acpid 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun install -d ${D}${sysconfdir}/acpi 33*4882a593Smuzhiyun install -d ${D}${sysconfdir}/acpi/events 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun install -d ${D}${systemd_system_unitdir} 36*4882a593Smuzhiyun install -m 0644 ${WORKDIR}/acpid.service ${D}${systemd_system_unitdir} 37*4882a593Smuzhiyun sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/acpid.service 38*4882a593Smuzhiyun} 39