aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2013-08-08 03:29:24 +0100
committerStuart Shelton <stuart@shelton.me>2013-08-08 03:29:24 +0100
commitb74756077c048ee1bfba258df1b193a549fbf624 (patch)
tree767f2f58518fd0739c18de2dd95610499a799a25 /sys-power
parentCorrect executable permissions on scripts (diff)
downloadsrcshelton-b74756077c048ee1bfba258df1b193a549fbf624.tar.gz
srcshelton-b74756077c048ee1bfba258df1b193a549fbf624.tar.bz2
srcshelton-b74756077c048ee1bfba258df1b193a549fbf624.zip
Add fixes for packages breaking compatibility by using /run rather than /var/run
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/acpid/Manifest12
-rw-r--r--sys-power/acpid/acpid-2.0.17-r1.ebuild52
-rw-r--r--sys-power/acpid/acpid-2.0.18.ebuild52
-rw-r--r--sys-power/acpid/acpid-2.0.19.ebuild52
-rw-r--r--sys-power/acpid/files/acpid-1.0.4-default19
-rw-r--r--sys-power/acpid/files/acpid-1.0.6-default.sh59
-rw-r--r--sys-power/acpid/files/acpid-2.0.16-conf.d6
-rw-r--r--sys-power/acpid/files/acpid-2.0.16-init.d21
-rw-r--r--sys-power/acpid/files/systemd/acpid.service10
-rw-r--r--sys-power/acpid/files/systemd/acpid.socket8
10 files changed, 291 insertions, 0 deletions
diff --git a/sys-power/acpid/Manifest b/sys-power/acpid/Manifest
new file mode 100644
index 00000000..aec2cf34
--- /dev/null
+++ b/sys-power/acpid/Manifest
@@ -0,0 +1,12 @@
+AUX acpid-1.0.4-default 663 SHA256 2b18111978043d68848983a54dfc946dd9b9b15592d0f4dc33491599dbe24b23 SHA512 817c971371046bdac72c644eed508b17fe524007f0cf360198d2649bc80254a0b127def0f6442288432ea2fb822b42299324507711feb13dd14a29e9315e9238 WHIRLPOOL 53b617a76c7a0716f1768789009ed0eca57b8b24e7e8f435d4cbb4cd6b1e201c1e28355c873893d73cbfcb0cb0f9091c438989016dc85c06f8df965307659842
+AUX acpid-1.0.6-default.sh 1231 SHA256 37079c125004cc7b66debc8021eb53b4b1dbcebd03f5dc213b4bbab34a1c1b01 SHA512 25629153eb97d7dc60d9a2b3a40fb7c22d4dd8ff84bbe5431230b70660d6ad8efb43976be062ac581b796f7e515722c67f8875a3aaa5f460a1172580dcac3d14 WHIRLPOOL 9e70f931c85c726f9ad8c7ae7498d40659d23f9d6d154893b7a2694e9ed68ea25c6e983662e5e92aada5a1ee373dfb5c78675746e53f4eb78f69010a8b743c3f
+AUX acpid-2.0.16-conf.d 153 SHA256 3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba SHA512 518cb397b2aa63b893ead1be08f32fe436d19b72663dee66834cfbc112b003333f0df8b9e4f1ffe64b813783f657d3fe8b9a0c5e992d5665583357e68b266705 WHIRLPOOL bc6e88e3558869e493725d3381633b2943f5fb0047f4157b847d02d54560df25e52b95d1e2899e3ac6f20bb405456e12866236265f77769184b9825cafa6f659
+AUX acpid-2.0.16-init.d 587 SHA256 980468e6bf96c7677898330cadbcff165b4d15f1197cd544548bd0f8c376983d SHA512 9fefabe21a8b194835d1e55126fdb524ad5abb85d7eec0c3cc5a9bcb98dda6b74859ea6271a03bbe61e9e46e097b50036d6f33892d54fe1e6e4ecd15526ec175 WHIRLPOOL 1d802ba20ea3b2ae41c1c960e8c93d3a73f565d737b606e0f40a2fa2e5c04f598ad3f9bcb89fc67c81fc920e34289aa2763f9e6af8c2138aef5d795cb229c11b
+AUX systemd/acpid.service 155 SHA256 93edfc49425ed60a4355d85b2c23ad5b0968e90fdf977edb06a20d49f9bd9028 SHA512 51c1e2a10968bd6555debf237c064dec7a347a5adfe0e8612e9ad49168e727d0779744ae8c2842b2e943dd46ab310343aeebb9eb6c9e85cb77123d966e8561b1 WHIRLPOOL 0cbbd618f6e3ac0e4b63d634095d84722caaa84e946b4f1e7036bff9ac05f45e23a8aa9f6101968c2c5af5ed29f1a9c420b7dd2271da3e59d9ecc9d04614f64e
+AUX systemd/acpid.socket 119 SHA256 a6ea89749651e38ba79598d286fd252dc814461a2cb3ceba14c25a4d6aa10bc4 SHA512 9a8293166b3818255d39d972dd354e675d23e4d59fb4ce3a8b5dedbf33e809f808ae3020f308426ba8d9d1317396727edc5be5bf51a7a30bc40c809442c96c0a WHIRLPOOL 81dcdb288bc86b97035da911a102b2627b4573302e9dd98076cb4eb41ada564f6ef6751f4b863a54e97f2266010d29afa79ab3ada094a68bdd57b0e96921c507
+DIST acpid-2.0.17.tar.xz 149440 SHA256 36b7d2c7deb6a44ae87b28026ff368f96e66b3ee8dd6b6cef4de2c3dbea17a3e SHA512 b7f3a16782db801c32b1b6195b95e5b960afd9c5acdf029445aebf98c7aea3d6677a8e75232f4702a81578faf7adb3e42844b724f4c92a09708b4cc2d74a2a84 WHIRLPOOL 6e488d5e5bd0479f811d95e69c5970ab44b8a01c64c27c9544c95dbe4f1fbc5f57188e082ed42f125720798723a78f38f9b99bf2250bec6cd6c25f332dea795e
+DIST acpid-2.0.18.tar.xz 150476 SHA256 1bc565250c6d8003267ab9c4cef18ea660b87b8df6296fe693b57001ffaf0a79 SHA512 b139f1d9b9c61f0366a46d47d8fb28fc5e19a34c4d69114b851563781c457042ed3776e93f4b654035c96d55f95b2b65eab93d422af579bb1de151b3245c928b WHIRLPOOL 27c532dcb95ca24d6c4e05bde271043aac47bfbc13072ccc2f34d978148138d8cc9f42f4910dc69a1b6b5ed612749aa805d20b5e96ffc7dbbcd239420c02dafb
+DIST acpid-2.0.19.tar.xz 150972 SHA256 ce503bf3f36002b45a465dc8a2490c16c553abd5bc2c1c8ece86247ec281dcde SHA512 8ebc738ce6b28f805d2ebdbd4680d31477972d6485ab84d58ba112c40a5935eb4a8fed838a21a82dc6e58b77769d47f7f538b4dd75193c2a7e8dcb479908403d WHIRLPOOL a73548af6915580b4e3af8baf14b948acbdb2983ffc170e79744c4a2ed67431c4f1c36390d05c34fe5d62940c813b71c48ced9cf555c9b34300faead0c075af3
+EBUILD acpid-2.0.17-r1.ebuild 1406 SHA256 a587fba43aca9c5f31a98ef0339f0039ff1e08b94e6c1dc87ba1d942fd2d6a31 SHA512 524eac082a66c6076309394df127b41d868c3028dcddfcbd457e923e71889fc626468ce5e3c52871e1c030721c09541016fd9e0d81de4f7c8f25be02d85e256d WHIRLPOOL c7d387509285b7580047bc754a64a54d65c935d0fcdab33b8963f5e9207c45fec8df1267aa0b684481618b99c302e1fd27e9a4ba5021ab7749141a713ad5fb0d
+EBUILD acpid-2.0.18.ebuild 1404 SHA256 0d6aa76642d4d35e0e2d88951d76e0b2acf658d3855d4f0c58e25506c6810af6 SHA512 968cbb46a06e9b5000ba07aa599834e79c8f2d17f618f00b33c5ae26f7736731a2af2686e261e60fac64292a5757726197373ce78dc15d689714b7659c78f58d WHIRLPOOL bff1a9190534cf42712f60f993de42ead869427ea49a342f725a5f900943c3a33dc051964d6520042274a16f5adf0e8bed3f9f94314d2bc4264c9a57aabebf30
+EBUILD acpid-2.0.19.ebuild 1411 SHA256 8512fc86468085cf665676e6f1b77317fefb8e2e79d9ceb1ba17c025a1161182 SHA512 5ff4bbf3ada8ad823f6ebd27cbfd2d1f9b71d2af13318a4a7b65c2d36d6ec32d11cc51c15e21c3b632b4879f4bc8643ecccf26df7e5d3e8fb780e455766ce873 WHIRLPOOL 2da5526729006b8878d8dcb96284f1799a29795e836da6088af501c490b319ea50f8deeb93a3218239c634b7881dfbae9156bad3d60f745b7d19c1d8d16b3a17
diff --git a/sys-power/acpid/acpid-2.0.17-r1.ebuild b/sys-power/acpid/acpid-2.0.17-r1.ebuild
new file mode 100644
index 00000000..94923fea
--- /dev/null
+++ b/sys-power/acpid/acpid-2.0.17-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-2.0.17-r1.ebuild,v 1.4 2013/01/21 14:31:11 ago Exp $
+
+EAPI=4
+inherit systemd
+
+DESCRIPTION="Daemon for Advanced Configuration and Power Interface"
+HOMEPAGE="http://tedfelix.com/linux/acpid-netlink.html"
+SRC_URI="http://tedfelix.com/linux/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ia64 -ppc x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-apm )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf --docdir=/usr/share/doc/${PF}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ newdoc kacpimon/README README.kacpimon
+ dodoc -r samples
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING
+
+ 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.16-init.d ${PN}
+ newconfd "${FILESDIR}"/${PN}-2.0.16-conf.d ${PN}
+
+ systemd_dounit "${FILESDIR}"/systemd/${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 "http://www.gentoo.org/doc/en/power-management-guide.xml"
+ elog
+ fi
+}
diff --git a/sys-power/acpid/acpid-2.0.18.ebuild b/sys-power/acpid/acpid-2.0.18.ebuild
new file mode 100644
index 00000000..6ea3b443
--- /dev/null
+++ b/sys-power/acpid/acpid-2.0.18.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-2.0.18.ebuild,v 1.1 2013/03/15 20:50:03 miska Exp $
+
+EAPI=5
+inherit systemd
+
+DESCRIPTION="Daemon for Advanced Configuration and Power Interface"
+HOMEPAGE="http://sourceforge.net/projects/acpid2"
+SRC_URI="mirror://sourceforge/${PN}2/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 -ppc ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-apm )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf --docdir=/usr/share/doc/${PF}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ newdoc kacpimon/README README.kacpimon
+ dodoc -r samples
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING
+
+ 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.16-init.d ${PN}
+ newconfd "${FILESDIR}"/${PN}-2.0.16-conf.d ${PN}
+
+ systemd_dounit "${FILESDIR}"/systemd/${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 "http://www.gentoo.org/doc/en/power-management-guide.xml"
+ elog
+ fi
+}
diff --git a/sys-power/acpid/acpid-2.0.19.ebuild b/sys-power/acpid/acpid-2.0.19.ebuild
new file mode 100644
index 00000000..08d8d975
--- /dev/null
+++ b/sys-power/acpid/acpid-2.0.19.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-2.0.19.ebuild,v 1.1 2013/07/26 18:39:51 mrueg Exp $
+
+EAPI=5
+inherit systemd
+
+DESCRIPTION="Daemon for Advanced Configuration and Power Interface"
+HOMEPAGE="http://sourceforge.net/projects/acpid2"
+SRC_URI="mirror://sourceforge/${PN}2/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 -ppc ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-apm )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf --docdir=/usr/share/doc/${PF}
+}
+
+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.16-init.d ${PN}
+ newconfd "${FILESDIR}"/${PN}-2.0.16-conf.d ${PN}
+
+ systemd_dounit "${FILESDIR}"/systemd/${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 "http://www.gentoo.org/doc/en/power-management-guide.xml"
+ elog
+ fi
+}
diff --git a/sys-power/acpid/files/acpid-1.0.4-default b/sys-power/acpid/files/acpid-1.0.4-default
new file mode 100644
index 00000000..a07c1827
--- /dev/null
+++ b/sys-power/acpid/files/acpid-1.0.4-default
@@ -0,0 +1,19 @@
+# /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
new file mode 100644
index 00000000..8be6f3e1
--- /dev/null
+++ b/sys-power/acpid/files/acpid-1.0.6-default.sh
@@ -0,0 +1,59 @@
+#!/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
new file mode 100644
index 00000000..9aadb4cd
--- /dev/null
+++ b/sys-power/acpid/files/acpid-2.0.16-conf.d
@@ -0,0 +1,6 @@
+# /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.16-init.d b/sys-power/acpid/files/acpid-2.0.16-init.d
new file mode 100644
index 00000000..412a265f
--- /dev/null
+++ b/sys-power/acpid/files/acpid-2.0.16-init.d
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.16-init.d,v 1.1 2012/05/19 09:53:59 ssuominen Exp $
+
+extra_started_commands="reload"
+command="/usr/sbin/acpid"
+command_args="${ACPID_ARGS}"
+start_stop_daemon_args="--quiet"
+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/systemd/acpid.service b/sys-power/acpid/files/systemd/acpid.service
new file mode 100644
index 00000000..e4ddacdb
--- /dev/null
+++ b/sys-power/acpid/files/systemd/acpid.service
@@ -0,0 +1,10 @@
+[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/systemd/acpid.socket b/sys-power/acpid/files/systemd/acpid.socket
new file mode 100644
index 00000000..1b23f873
--- /dev/null
+++ b/sys-power/acpid/files/systemd/acpid.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=ACPID Listen Socket
+
+[Socket]
+ListenStream=/var/run/acpid.socket
+
+[Install]
+WantedBy=sockets.target