Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
39
sources/poky/meta/recipes-bsp/acpid/acpid.inc
Normal file
39
sources/poky/meta/recipes-bsp/acpid/acpid.inc
Normal file
@@ -0,0 +1,39 @@
|
||||
SUMMARY = "A daemon for delivering ACPI events"
|
||||
DESCRIPTION = "ACPID is a completely flexible, totally extensible daemon for \
|
||||
delivering ACPI events. It listens on netlink interface (or on the \
|
||||
deprecated file /proc/acpi/event), and when an event occurs, executes programs \
|
||||
to handle the event. The programs it executes are configured through a set of \
|
||||
configuration files, which can be dropped into place by packages or by the \
|
||||
admin."
|
||||
HOMEPAGE = "http://sourceforge.net/projects/acpid2"
|
||||
BUGTRACKER = "http://sourceforge.net/p/acpid2/tickets/?source=navbar"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/acpid2/acpid-${PV}.tar.xz \
|
||||
file://init \
|
||||
file://acpid.service \
|
||||
file://0001-Replace-stat64-with-stat.patch \
|
||||
"
|
||||
|
||||
CVE_PRODUCT = "acpid2"
|
||||
|
||||
inherit autotools update-rc.d systemd
|
||||
|
||||
INITSCRIPT_NAME = "acpid"
|
||||
INITSCRIPT_PARAMS = "defaults"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "acpid.service"
|
||||
|
||||
do_install:append () {
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
sed -e 's,/usr/sbin,${sbindir},g' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/acpid
|
||||
chmod 755 ${D}${sysconfdir}/init.d/acpid
|
||||
|
||||
install -d ${D}${sysconfdir}/acpi
|
||||
install -d ${D}${sysconfdir}/acpi/events
|
||||
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${WORKDIR}/acpid.service ${D}${systemd_system_unitdir}
|
||||
sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_system_unitdir}/acpid.service
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
From 4b729235a9e96f120feee7e3746818aad0f3b924 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 14 Dec 2022 15:04:30 -0800
|
||||
Subject: [PATCH] Replace stat64 with stat
|
||||
|
||||
It already checks for largefile support in configure.ac via
|
||||
AC_SYS_LARGEFILE macro, which will ensure that 64bit elements
|
||||
are correctly setup for stat APIs on platforms needing large
|
||||
file support.
|
||||
|
||||
Upstream-Status: Submitted [https://sourceforge.net/p/acpid2/code/merge-requests/5/]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
sock.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/sock.c b/sock.c
|
||||
index 9e04501..3121fb7 100644
|
||||
--- a/sock.c
|
||||
+++ b/sock.c
|
||||
@@ -54,8 +54,8 @@ int non_root_clients;
|
||||
static int
|
||||
isfdtype(int fd, int fdtype)
|
||||
{
|
||||
- struct stat64 st;
|
||||
- if (fstat64(fd, &st) != 0)
|
||||
+ struct stat st;
|
||||
+ if (fstat(fd, &st) != 0)
|
||||
return -1;
|
||||
return ((st.st_mode & S_IFMT) == (mode_t)fdtype);
|
||||
}
|
||||
10
sources/poky/meta/recipes-bsp/acpid/acpid/acpid.service
Normal file
10
sources/poky/meta/recipes-bsp/acpid/acpid/acpid.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=ACPI Event Daemon
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=@SBINDIR@/acpid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
31
sources/poky/meta/recipes-bsp/acpid/acpid/init
Executable file
31
sources/poky/meta/recipes-bsp/acpid/acpid/init
Executable file
@@ -0,0 +1,31 @@
|
||||
#! /bin/sh -e
|
||||
|
||||
test -x /usr/sbin/acpid || exit 0
|
||||
test -d /proc/acpi || exit 0
|
||||
mkdir -p /etc/acpi/events
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting Advanced Configuration and Power Interface daemon: "
|
||||
if [ ! -d /etc/acpi/events ]; then
|
||||
echo "There is not any rule configuration file."
|
||||
else
|
||||
start-stop-daemon -o -S -x /usr/sbin/acpid -- -c /etc/acpi/events
|
||||
echo "acpid."
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping Advanced Configuration and Power Interface daemon: "
|
||||
start-stop-daemon -o -K -x /usr/sbin/acpid
|
||||
echo "acpid."
|
||||
;;
|
||||
restart|force-reload)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/acpid {start|stop|restart|force-reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
||||
6
sources/poky/meta/recipes-bsp/acpid/acpid_2.0.34.bb
Normal file
6
sources/poky/meta/recipes-bsp/acpid/acpid_2.0.34.bb
Normal file
@@ -0,0 +1,6 @@
|
||||
require acpid.inc
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
|
||||
file://acpid.h;endline=24;md5=324a9cf225ae69ddaad1bf9d942115b5"
|
||||
|
||||
SRC_URI[sha256sum] = "2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333"
|
||||
Reference in New Issue
Block a user