summaryrefslogtreecommitdiff
path: root/sys-power
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-21 21:44:48 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-21 21:44:48 +0100
commitd51fe7680c5270ddf8d324bbe11caab6d1e27ade (patch)
treea895b5889d79dbbb9aa52995fcac4816acfa07c1 /sys-power
parent7d52991b5dce3a07be15d3cbbf06abb3fc08cb9c (diff)
gentoo auto-resync : 21:08:2023 - 21:44:47
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/Manifest.gzbin5236 -> 5235 bytes
-rw-r--r--sys-power/acpid/Manifest2
-rw-r--r--sys-power/acpid/acpid-2.0.34-r1.ebuild60
-rw-r--r--sys-power/acpid/files/acpid-2.0.34-lfs.patch19
4 files changed, 81 insertions, 0 deletions
diff --git a/sys-power/Manifest.gz b/sys-power/Manifest.gz
index ec5a274d6721..24e834aae475 100644
--- a/sys-power/Manifest.gz
+++ b/sys-power/Manifest.gz
Binary files differ
diff --git a/sys-power/acpid/Manifest b/sys-power/acpid/Manifest
index 7767035ff1bc..36fc05ca0646 100644
--- a/sys-power/acpid/Manifest
+++ b/sys-power/acpid/Manifest
@@ -2,8 +2,10 @@ AUX acpid-1.0.4-default 663 BLAKE2B 221343ecbabeaea79af570cde3bdd58e0408e67b9545
AUX acpid-1.0.6-default.sh 1231 BLAKE2B 493c16e1c5515b6b7d8844f90ec37652631b00cac2f79347ec6d0eabb4a386a61a53622a10cb9c43ff64d88fead8a79ee8a348636623bdc6a0ede34eeb9ba976 SHA512 25629153eb97d7dc60d9a2b3a40fb7c22d4dd8ff84bbe5431230b70660d6ad8efb43976be062ac581b796f7e515722c67f8875a3aaa5f460a1172580dcac3d14
AUX acpid-2.0.16-conf.d 153 BLAKE2B e2c8a0d058311402b35c6c9777b9807d341f578bd60a82f1c866f182fef16d25332f37fa1cfe7a855824e004a877407d509bd6916388f6dfdf9114d9b93c57a3 SHA512 518cb397b2aa63b893ead1be08f32fe436d19b72663dee66834cfbc112b003333f0df8b9e4f1ffe64b813783f657d3fe8b9a0c5e992d5665583357e68b266705
AUX acpid-2.0.26-init.d 436 BLAKE2B de812b8d63f8427fc32b5d177f39d80cfdc8b92918cfe05de5483b6dd7c6091ce17ec65188376468c722c735cc2b01985366a9cedc693fd7d21eb6ada2055960 SHA512 7381d30b5c6478cdbf5dff93ae95baa0b3b1fe0a04b02cf491831f1657d6f71b8eef121b7e78f3201d11a5856bfb30df0a57437c76e6fbe05ad88cd45e86ae64
+AUX acpid-2.0.34-lfs.patch 480 BLAKE2B b1530dd2f52f9168eb9da3208bb39a38600eaee4ee791a47e33eac1307d05135801ac7725acec5b85ba0784c75428f6f9895b8c53c92524b346d164bdd703d67 SHA512 8f8019838ee617fe21a625d23a1b61a2295faa4f4feea488365c9a71bd35a99918b54276a2ea5446a3304d8e44637de608e682d160b6cf01150275d0e995c64a
AUX acpid.service 155 BLAKE2B 763b5f0ad5d03e91098ec9e71a17c5d0a52c90f1935381722513ef9ff5e53c4d1c98a989632a73707af006bf6a4fbd54f8e251b188eb84bfa8bf34c9cb8d5df8 SHA512 51c1e2a10968bd6555debf237c064dec7a347a5adfe0e8612e9ad49168e727d0779744ae8c2842b2e943dd46ab310343aeebb9eb6c9e85cb77123d966e8561b1
AUX acpid.socket 115 BLAKE2B 9d869f1fd573b2dc885a3328e5e70fcc28922343a7a408e71a1a59ee8b60e3f86e01a73f7bba76a87b5148eeee67728efd117b8a533b1f4997b2e6dcdaed7a0d SHA512 33de08516aefdb881c55843384407ebcae60a6c4c14af1e12678ae2cf6b7cde4122e916d10df8d24e78c80c50e41e0f1f94f67f4e09cef7631507cf3be83f5e0
DIST acpid-2.0.34.tar.xz 159924 BLAKE2B 1379978f8c5816febcde2d3bb641f8a51736ae0caed97a45caa990576d314608a455307df11f6abafa2ef8bbaa47554f581605aa9c1af150ee64b9eb684fee15 SHA512 2bf92295b55bb44fe83074b3e0c1ae639f63edaeea84b2184ae95b38852be40f380d5413110b8c0fcb2efc2ec01bf4764e1dcb97022fc724bebbfc35c0b63c81
+EBUILD acpid-2.0.34-r1.ebuild 1554 BLAKE2B ec654e439f226d9a4b79e0ce824566feeae6be001dafd7fe7911ddcdede6886b540dbbd9b3fb0c0ed401c1f13eaf0aa0fad5b25e801300dbd277c65d805b08b0 SHA512 13a7cbc847f999c071cb362d23fab04f89fad8b7c0710f18b239ae763618651eb20e3827e1134281a04c2772770934856d9949add49fee5724b212b762571367
EBUILD acpid-2.0.34.ebuild 1500 BLAKE2B 1dea84343f87e457edec570258436550cc7abbb6e77919060b6ec0ce611cc3c0a212a6507b0953c0705521a49ba6a6f78880e8b1b3cda48d540c3f037c441f2c SHA512 d649af8cbf409e4193b9511f0642b376231cfdbde6c10af309c0e62914a3e50e7700a35119517bc831517118270235f66e1f314a1bef2fd1472643570a74779d
MISC metadata.xml 322 BLAKE2B 8b701e7a97b323471ea98b4eb2ffcd6d6b195182e2aa1aa07cbcdafc7d0ae9afb7d24b55982adb183c7c73c33cbedb8a82232b6531ebb2fce30d22cb29a0cdee SHA512 0e5ea0b0d6f75b99babbd2578e1fb2b2fff20584699c3a762cb8395cb52c141509f109ed2894e5c3fb4c338ce32297a67a31f313c5141b5a23c758c7a21586f9
diff --git a/sys-power/acpid/acpid-2.0.34-r1.ebuild b/sys-power/acpid/acpid-2.0.34-r1.ebuild
new file mode 100644
index 000000000000..258a20d571b5
--- /dev/null
+++ b/sys-power/acpid/acpid-2.0.34-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info systemd
+
+DESCRIPTION="Daemon for Advanced Configuration and Power Interface"
+HOMEPAGE="https://sourceforge.net/projects/acpid2/"
+SRC_URI="mirror://sourceforge/${PN}2/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~riscv ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-apm )"
+DEPEND=">=sys-kernel/linux-headers-3"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.34-lfs.patch
+)
+
+pkg_pretend() {
+ local CONFIG_CHECK="~INPUT_EVDEV"
+ local WARNING_INPUT_EVDEV="CONFIG_INPUT_EVDEV is required for ACPI button event support."
+ [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config
+}
+
+pkg_setup() { :; }
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ newdoc kacpimon/README README.kacpimon
+ dodoc -r samples
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING || die
+
+ exeinto /etc/acpi
+ newexe "${FILESDIR}"/${PN}-1.0.6-default.sh default.sh
+ exeinto /etc/acpi/actions
+ newexe samples/powerbtn/powerbtn.sh powerbtn.sh
+ insinto /etc/acpi/events
+ newins "${FILESDIR}"/${PN}-1.0.4-default default
+
+ newinitd "${FILESDIR}"/${PN}-2.0.26-init.d ${PN}
+ newconfd "${FILESDIR}"/${PN}-2.0.16-conf.d ${PN}
+
+ systemd_dounit "${FILESDIR}"/${PN}.{service,socket}
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog
+ elog "You may wish to read the Gentoo Linux Power Management Guide,"
+ elog "which can be found online at:"
+ elog "https://wiki.gentoo.org/wiki/Power_management/Guide"
+ elog
+ fi
+}
diff --git a/sys-power/acpid/files/acpid-2.0.34-lfs.patch b/sys-power/acpid/files/acpid-2.0.34-lfs.patch
new file mode 100644
index 000000000000..0abca60af422
--- /dev/null
+++ b/sys-power/acpid/files/acpid-2.0.34-lfs.patch
@@ -0,0 +1,19 @@
+Since version 1.2.4 musl no longer enables legacy LFS interfaces as part
+of _GNU_SOURCE, and will remove them altogether in a future release [1].
+Just switch to the standard interfaces.
+
+[1] https://musl.libc.org/releases.html
+
+--- a/sock.c
++++ b/sock.c
+@@ -54,8 +54,8 @@
+ 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);
+ }