diff --git a/sys-power/acpid/Manifest b/sys-power/acpid/Manifest deleted file mode 100644 index b23d877f6..000000000 --- a/sys-power/acpid/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST acpid-2.0.33.tar.xz 156580 BLAKE2B 72a0835f3d88f4ccae44016809fdb930977f6b02dae6f74068186a8c850237764a1e8cd69a478e5af42115d5f630a9f91cd77b35b8cf01854e24b7e06bbdd536 SHA512 491a58c62fcad44dc57cbd9294437fbc215c2ec99a030286601cd1956ea504e723e61b11b315983073d66aace1997bc40e6421475f6073298f60b8dcda2add75 diff --git a/sys-power/acpid/acpid-2.0.33.ebuild b/sys-power/acpid/acpid-2.0.33.ebuild deleted file mode 100644 index f28963024..000000000 --- a/sys-power/acpid/acpid-2.0.33.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2022 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="pentoo selinux" - -RDEPEND="selinux? ( sec-policy/selinux-apm )" -DEPEND=">=sys-kernel/linux-headers-3" - -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 - if use pentoo; then - newexe "${FILESDIR}"/${PN}-pentoo-1.0.6-default.sh default.sh - else - newexe "${FILESDIR}"/${PN}-1.0.6-default.sh default.sh - fi - 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-1.0.4-default b/sys-power/acpid/files/acpid-1.0.4-default deleted file mode 100644 index a07c1827f..000000000 --- a/sys-power/acpid/files/acpid-1.0.4-default +++ /dev/null @@ -1,19 +0,0 @@ -# /etc/acpi/events/default -# This is the ACPID default configuration, it takes all -# events and passes them to /etc/acpi/default.sh for further -# processing. - -# event keeps a regular expression matching the event. To get -# power events only, just use something like "event=button[ /]power.*" -# to catch it. -# action keeps the command to be executed after an event occurs -# In case of the power event above, your entry may look this way: -#event=button[ /]power.* -#action=/sbin/init 0 - -# Optionally you can specify the placeholder %e. It will pass -# through the whole kernel event message to the program you've -# specified. - -event=.* -action=/etc/acpi/default.sh %e diff --git a/sys-power/acpid/files/acpid-1.0.6-default.sh b/sys-power/acpid/files/acpid-1.0.6-default.sh deleted file mode 100644 index 8be6f3e1a..000000000 --- a/sys-power/acpid/files/acpid-1.0.6-default.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh -# /etc/acpi/default.sh -# Default acpi script that takes an entry for all actions - -set $* - -group=${1%%/*} -action=${1#*/} -device=$2 -id=$3 -value=$4 - -log_unhandled() { - logger "ACPI event unhandled: $*" -} - -case "$group" in - button) - case "$action" in - power) - /etc/acpi/actions/powerbtn.sh - ;; - - # if your laptop doesnt turn on/off the display via hardware - # switch and instead just generates an acpi event, you can force - # X to turn off the display via dpms. note you will have to run - # 'xhost +local:0' so root can access the X DISPLAY. - #lid) - # xset dpms force off - # ;; - - *) log_unhandled $* ;; - esac - ;; - - ac_adapter) - case "$value" in - # Add code here to handle when the system is unplugged - # (maybe change cpu scaling to powersave mode). For - # multicore systems, make sure you set powersave mode - # for each core! - #*0) - # cpufreq-set -g powersave - # ;; - - # Add code here to handle when the system is plugged in - # (maybe change cpu scaling to performance mode). For - # multicore systems, make sure you set performance mode - # for each core! - #*1) - # cpufreq-set -g performance - # ;; - - *) log_unhandled $* ;; - esac - ;; - - *) log_unhandled $* ;; -esac diff --git a/sys-power/acpid/files/acpid-2.0.16-conf.d b/sys-power/acpid/files/acpid-2.0.16-conf.d deleted file mode 100644 index 9aadb4cd8..000000000 --- a/sys-power/acpid/files/acpid-2.0.16-conf.d +++ /dev/null @@ -1,6 +0,0 @@ -# /etc/conf.d/acpid: config file for /etc/init.d/acpid - -# Options to pass to the acpid daemon. -# See the acpid(8) man page for more info. - -ACPID_ARGS="" diff --git a/sys-power/acpid/files/acpid-2.0.26-init.d b/sys-power/acpid/files/acpid-2.0.26-init.d deleted file mode 100644 index f8076d43b..000000000 --- a/sys-power/acpid/files/acpid-2.0.26-init.d +++ /dev/null @@ -1,19 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -extra_started_commands="reload" -command="/usr/sbin/acpid" -command_args="${ACPID_ARGS}" -description="Daemon for Advanced Configuration and Power Interface" - -depend() { - need localmount - use logger -} - -reload() { - ebegin "Reloading acpid configuration" - start-stop-daemon --exec $command --signal HUP - eend $? -} diff --git a/sys-power/acpid/files/acpid-pentoo-1.0.6-default.sh b/sys-power/acpid/files/acpid-pentoo-1.0.6-default.sh deleted file mode 100644 index f6def3914..000000000 --- a/sys-power/acpid/files/acpid-pentoo-1.0.6-default.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh -# /etc/acpi/default.sh -# Default acpi script that takes an entry for all actions - -set $* - -group=${1%%/*} -action=${1#*/} -device=$2 -id=$3 -value=$4 - -log_unhandled() { - logger "ACPI event unhandled: $*" -} - -case "$group" in - button) - case "$action" in - power) - /sbin/init 0 - ;; - - # if your laptop doesnt turn on/off the display via hardware - # switch and instead just generates an acpi event, you can force - # X to turn off the display via dpms. note you will have to run - # 'xhost +local:0' so root can access the X DISPLAY. - #lid) - # xset dpms force off - # ;; - - *) log_unhandled $* ;; - esac - ;; - - ac_adapter) - case "$value" in - # Add code here to handle when the system is unplugged - # (maybe change cpu scaling to powersave mode). For - # multicore systems, make sure you set powersave mode - # for each core! - *0) - #intel pstates uses powersave but that's min freq for other intel so detect if ondemand is supported first - if grep -q 'ondemand' /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors; then - lowpower='ondemand' - elif grep -q 'powersave' /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors; then - lowpower='powersave' - else - lowpower="" - fi - if [ -n "${lowpower}" ]; then - for CPU in $(ls /sys/devices/system/cpu/|grep -E "cpu[0-9]+"); do - echo "${lowpower}" > /sys/devices/system/cpu/${CPU}/cpufreq/scaling_governor - done - fi - for controller in $(ls /sys/class/scsi_host/|grep -E "host[0-9]+"); do - echo min_power > /sys/class/scsi_host/${controller}/link_power_management_policy - done - ;; - - # Add code here to handle when the system is plugged in - # (maybe change cpu scaling to performance mode). For - # multicore systems, make sure you set performance mode - # for each core! - *1) - for CPU in $(ls /sys/devices/system/cpu/|grep -E "cpu[0-9]+"); do - echo performance > /sys/devices/system/cpu/${CPU}/cpufreq/scaling_governor - done - for controller in $(ls /sys/class/scsi_host/|grep -E "host[0-9]+"); do - echo max_performance > /sys/class/scsi_host/${controller}/link_power_management_policy - done - ;; - - *) log_unhandled $* ;; - esac - ;; - - *) log_unhandled $* ;; -esac diff --git a/sys-power/acpid/files/acpid.service b/sys-power/acpid/files/acpid.service deleted file mode 100644 index e4ddacdbe..000000000 --- a/sys-power/acpid/files/acpid.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=ACPI event daemon -Requires=acpid.socket - -[Service] -ExecStart=/usr/sbin/acpid -f - -[Install] -WantedBy=multi-user.target -Also=acpid.socket diff --git a/sys-power/acpid/files/acpid.socket b/sys-power/acpid/files/acpid.socket deleted file mode 100644 index 1e5365bf1..000000000 --- a/sys-power/acpid/files/acpid.socket +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=ACPID Listen Socket - -[Socket] -ListenStream=/run/acpid.socket - -[Install] -WantedBy=sockets.target