summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/acpid
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
commit8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch)
treeefdc32587159d0050a69009bdf2330a531727d95 /meta/recipes-bsp/acpid
parentd412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff)
downloadpoky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz
The poky repository master branch is no longer being updated.
You can either: a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs b) use the new bitbake-setup You can find information about either approach in our documentation: https://docs.yoctoproject.org/ Note that "poky" the distro setting is still available in meta-yocto as before and we continue to use and maintain that. Long live Poky! Some further information on the background of this change can be found in: https://lists.openembedded.org/g/openembedded-architecture/message/2179 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/acpid')
-rw-r--r--meta/recipes-bsp/acpid/acpid.inc40
-rw-r--r--meta/recipes-bsp/acpid/acpid/0001-Replace-stat64-with-stat.patch31
-rw-r--r--meta/recipes-bsp/acpid/acpid/acpid.service10
-rwxr-xr-xmeta/recipes-bsp/acpid/acpid/init31
-rw-r--r--meta/recipes-bsp/acpid/acpid_2.0.34.bb6
5 files changed, 0 insertions, 118 deletions
diff --git a/meta/recipes-bsp/acpid/acpid.inc b/meta/recipes-bsp/acpid/acpid.inc
deleted file mode 100644
index ba954563b6..0000000000
--- a/meta/recipes-bsp/acpid/acpid.inc
+++ /dev/null
@@ -1,40 +0,0 @@
1SUMMARY = "A daemon for delivering ACPI events"
2DESCRIPTION = "ACPID is a completely flexible, totally extensible daemon for \
3delivering ACPI events. It listens on netlink interface (or on the \
4deprecated file /proc/acpi/event), and when an event occurs, executes programs \
5to handle the event. The programs it executes are configured through a set of \
6configuration files, which can be dropped into place by packages or by the \
7admin."
8HOMEPAGE = "http://sourceforge.net/projects/acpid2"
9BUGTRACKER = "http://sourceforge.net/p/acpid2/tickets/?source=navbar"
10SECTION = "base"
11LICENSE = "GPL-2.0-or-later"
12
13SOURCEFORGE_PROJECT = "acpid2"
14SRC_URI = "${SOURCEFORGE_MIRROR}/${SOURCEFORGE_PROJECT}/acpid-${PV}.tar.xz \
15 file://init \
16 file://acpid.service \
17 file://0001-Replace-stat64-with-stat.patch \
18 "
19
20CVE_PRODUCT = "acpid2"
21
22inherit autotools update-rc.d systemd sourceforge-releases
23
24INITSCRIPT_NAME = "acpid"
25INITSCRIPT_PARAMS = "defaults"
26
27SYSTEMD_SERVICE:${PN} = "acpid.service"
28
29do_install:append () {
30 install -d ${D}${sysconfdir}/init.d
31 sed -e 's,/usr/sbin,${sbindir},g' ${UNPACKDIR}/init > ${D}${sysconfdir}/init.d/acpid
32 chmod 755 ${D}${sysconfdir}/init.d/acpid
33
34 install -d ${D}${sysconfdir}/acpi
35 install -d ${D}${sysconfdir}/acpi/events
36
37 install -d ${D}${systemd_system_unitdir}
38 install -m 0644 ${UNPACKDIR}/acpid.service ${D}${systemd_system_unitdir}
39 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/acpid.service
40}
diff --git a/meta/recipes-bsp/acpid/acpid/0001-Replace-stat64-with-stat.patch b/meta/recipes-bsp/acpid/acpid/0001-Replace-stat64-with-stat.patch
deleted file mode 100644
index 10abfc8388..0000000000
--- a/meta/recipes-bsp/acpid/acpid/0001-Replace-stat64-with-stat.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From 4b729235a9e96f120feee7e3746818aad0f3b924 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 14 Dec 2022 15:04:30 -0800
4Subject: [PATCH] Replace stat64 with stat
5
6It already checks for largefile support in configure.ac via
7AC_SYS_LARGEFILE macro, which will ensure that 64bit elements
8are correctly setup for stat APIs on platforms needing large
9file support.
10
11Upstream-Status: Submitted [https://sourceforge.net/p/acpid2/code/merge-requests/5/]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 sock.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/sock.c b/sock.c
18index 9e04501..3121fb7 100644
19--- a/sock.c
20+++ b/sock.c
21@@ -54,8 +54,8 @@ int non_root_clients;
22 static int
23 isfdtype(int fd, int fdtype)
24 {
25- struct stat64 st;
26- if (fstat64(fd, &st) != 0)
27+ struct stat st;
28+ if (fstat(fd, &st) != 0)
29 return -1;
30 return ((st.st_mode & S_IFMT) == (mode_t)fdtype);
31 }
diff --git a/meta/recipes-bsp/acpid/acpid/acpid.service b/meta/recipes-bsp/acpid/acpid/acpid.service
deleted file mode 100644
index f70e740965..0000000000
--- a/meta/recipes-bsp/acpid/acpid/acpid.service
+++ /dev/null
@@ -1,10 +0,0 @@
1[Unit]
2Description=ACPI Event Daemon
3After=syslog.target
4
5[Service]
6Type=forking
7ExecStart=@SBINDIR@/acpid
8
9[Install]
10WantedBy=multi-user.target
diff --git a/meta/recipes-bsp/acpid/acpid/init b/meta/recipes-bsp/acpid/acpid/init
deleted file mode 100755
index 40ff385c10..0000000000
--- a/meta/recipes-bsp/acpid/acpid/init
+++ /dev/null
@@ -1,31 +0,0 @@
1#! /bin/sh -e
2
3test -x /usr/sbin/acpid || exit 0
4test -d /proc/acpi || exit 0
5mkdir -p /etc/acpi/events
6
7case "$1" in
8 start)
9 echo -n "Starting Advanced Configuration and Power Interface daemon: "
10 if [ ! -d /etc/acpi/events ]; then
11 echo "There is not any rule configuration file."
12 else
13 start-stop-daemon -o -S -x /usr/sbin/acpid -- -c /etc/acpi/events
14 echo "acpid."
15 fi
16 ;;
17 stop)
18 echo -n "Stopping Advanced Configuration and Power Interface daemon: "
19 start-stop-daemon -o -K -x /usr/sbin/acpid
20 echo "acpid."
21 ;;
22 restart|force-reload)
23 $0 stop
24 $0 start
25 ;;
26 *)
27 echo "Usage: /etc/init.d/acpid {start|stop|restart|force-reload}"
28 exit 1
29esac
30
31exit 0
diff --git a/meta/recipes-bsp/acpid/acpid_2.0.34.bb b/meta/recipes-bsp/acpid/acpid_2.0.34.bb
deleted file mode 100644
index 1e0a6d5f24..0000000000
--- a/meta/recipes-bsp/acpid/acpid_2.0.34.bb
+++ /dev/null
@@ -1,6 +0,0 @@
1require acpid.inc
2
3LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
4 file://acpid.h;endline=24;md5=324a9cf225ae69ddaad1bf9d942115b5"
5
6SRC_URI[sha256sum] = "2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333"