summaryrefslogtreecommitdiff
path: root/sys-apps/apmd
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/apmd')
-rw-r--r--sys-apps/apmd/Manifest8
-rw-r--r--sys-apps/apmd/apmd-3.2.2_p14-r1.ebuild78
-rw-r--r--sys-apps/apmd/files/apmd.confd3
-rw-r--r--sys-apps/apmd/files/apmd.rc628
-rw-r--r--sys-apps/apmd/metadata.xml5
5 files changed, 122 insertions, 0 deletions
diff --git a/sys-apps/apmd/Manifest b/sys-apps/apmd/Manifest
new file mode 100644
index 000000000000..872a0aad11d4
--- /dev/null
+++ b/sys-apps/apmd/Manifest
@@ -0,0 +1,8 @@
+AUX apmd.confd 56 SHA256 617793dc608a9bec720c6979746e83a8f0cdc8fd38e926f323e82741adfc3ad8 SHA512 8e3832c3156681b8d3b69bbbf0958e3097a465364e665bee7d7cd7f696540af9b716e48e6cfc7fbdbfd6f55eb52cda965584ef44a98c011b858b32b2a7d340d3 WHIRLPOOL b8f32e929637c44cf14f86827286dd55aa03cb40a908bace8b9a026f13121ac043a2252e6112e3b9ddec1c202f3114119a1295f129513f9bd91f0530c5cecc57
+AUX apmd.rc6 568 SHA256 879c2c89061b91661a79be9165348a9e66ee04d2276811916b6f68568731ce1c SHA512 ac4578dd1b49207b8d1c50f3481a3652d8cfb83ea3c1984a553aa5acefd17fee5fa71a903fa9dca4d1991c47c6b14d6901352fc03df741cae0aed337ee55cf14 WHIRLPOOL e1cdd5dfcb4e80880ab670a48224177e350de7254b85c99613747e0022c95bea214a1e9a1c9dc0094f5eacda205f9bd10b8dcf44e46edcb072c9f62dce765e63
+DIST apmd_3.2.2-14.diff.gz 19195 SHA256 7905ff96be93d725544d0040e425c42f9c05580db3c272f11cff75b9aa89d430 SHA512 a3578d0c43950f832fb437a744f8a4c3058c731649decb90f7b42c901b06f4df5f9a75599b4278e15af1c8a30d8043b0d76eb7d2cb67b05bf6bb210d5912a16d WHIRLPOOL 300ef81d426fffa0c3ce944d523245745a9388013672f756d4f298f5e2d0b136d962b6d635d6fc787bdd2aa351097ac682ebe0b9ee41fc32e19c74b69601712b
+DIST apmd_3.2.2.orig.tar.gz 72757 SHA256 7f7d9f60b7766b852881d40b8ff91d8e39fccb0d1d913102a5c75a2dbb52332d SHA512 fdc74703e75a700397bb2c907986f0cf0792ee4128d7a7ae08adf090bff0ea595044ba7a935d34929745bb702eb8bfe232e0ee9156efd23a995dc087f1b20bf4 WHIRLPOOL 4fbb0f6d99215ce754686c2748b7ad7bcbe219ddafa190a05f9c345957f7bebd51b04e26e23ec4bdb8c49cba6e89fabbb3dbf631fd4342a5dc4bd1148e4b7b63
+EBUILD apmd-3.2.2_p14-r1.ebuild 1816 SHA256 01deae1ecc8ca3a634c6acc8b276700657d5071b532d35cded18e24b0b813724 SHA512 48003312c87fc75bed146cfa833e4d6e9ac7c162309cb839c7798178506eea9357a0fecfc7ff378b683c1992504cee3558a27b1b22acafba509bcba32478c09f WHIRLPOOL 56a6d0019d4a03fdaffb1a67172f35c78a1af4a7fc4e8d18b56826ee889c5acb057deaf371f1f2a4da3eb7705264a3786fc1cd5bafb5a87dd74ae8670f323feb
+MISC ChangeLog 2826 SHA256 51a4057fa0321431c559db74e65bcc5679c2a8b98c3e1372e73a2bd1ce108f0c SHA512 cfba4a4065111c50a840aeccf14da86b4ae1f5bcf9864b0950fc756cccf0e49ac9351cb2338f945efac9c618bb9d3fe73bdb54ff8dff7487d2f75bb18a6444ce WHIRLPOOL 6b42f0477292aa384c8ec5067dce59472f1099323f7b20b15768b89fcb0cd874f13a9a1d9bdd05df543bf0d79b940fbf08eaaf87275feb563a0e09a671e1b85b
+MISC ChangeLog-2015 6867 SHA256 3725c4f0caa3bd58b697a536c9459099ef907c897d69c35e887c8390364f224f SHA512 874a05bcc66c84eff5fa9dbab2e53f12616e331dff5252869fa0119485646ee07b9dd18717941896a5e071676156bd9e4f741550cc19b443f7a784ed4236f728 WHIRLPOOL 6ec09aa062de0d3e799510440e82007af9f78870e37a01d8f12c299cf606e328e28cfa39f20d713d2674a2ad5478b904cc5819136e3fe9fdac64505e5a111e07
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/sys-apps/apmd/apmd-3.2.2_p14-r1.ebuild b/sys-apps/apmd/apmd-3.2.2_p14-r1.ebuild
new file mode 100644
index 000000000000..166a03b1cf8e
--- /dev/null
+++ b/sys-apps/apmd/apmd-3.2.2_p14-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib toolchain-funcs
+
+MY_PV=${PV%_p*}
+MY_P=${PN}_${MY_PV}
+PATCHV=${PV#*_p}
+
+DESCRIPTION="Advanced Power Management Daemon"
+HOMEPAGE="https://packages.qa.debian.org/a/apmd.html"
+SRC_URI="mirror://debian/pool/main/a/apmd/${MY_P}.orig.tar.gz
+ mirror://debian/pool/main/a/apmd/${MY_P}-${PATCHV}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ppc ppc64 x86"
+IUSE="nls X"
+
+RDEPEND=">=sys-apps/debianutils-1.16
+ >=sys-power/powermgmt-base-1.31
+ X? ( x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libXt
+ x11-libs/libXext )"
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+ virtual/os-headers"
+
+S=${WORKDIR}/${PN}-${MY_PV}.orig
+
+src_prepare() {
+ epatch "${WORKDIR}"/${MY_P}-${PATCHV}.diff
+
+ if ! use X; then
+ sed -i \
+ -e 's:\(EXES=.*\)xapm:\1:' \
+ -e 's:\(.*\)\$(LT_INSTALL).*xapm.*$:\1echo:' \
+ Makefile || die
+ fi
+
+ # use system headers and skip on_ac_power
+ rm -f on_ac_power*
+
+ sed -i \
+ -e '/on_ac_power/d' \
+ -e 's:-I/usr/src/linux/include -I/usr/X11R6/include::' \
+ -e 's:-L/usr/X11R6/lib::' \
+ Makefile || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dodir /usr/sbin
+ emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) install
+
+ keepdir /etc/apm/{event.d,suspend.d,resume.d,other.d,scripts.d}
+ exeinto /etc/apm
+ doexe debian/apmd_proxy
+ dodoc AUTHORS {,apmsleep.}README debian/{changelog,README.Debian}
+
+ doman *.{1,8}
+
+ # note: apmd_proxy.conf is currently disabled and not used, thus
+ # not installed - liquidx (01 Mar 2004)
+
+ newconfd "${FILESDIR}"/apmd.confd apmd
+ newinitd "${FILESDIR}"/apmd.rc6 apmd
+
+ use nls || rm -rf "${D}"/usr/share/man/fr
+}
diff --git a/sys-apps/apmd/files/apmd.confd b/sys-apps/apmd/files/apmd.confd
new file mode 100644
index 000000000000..7025e822dedc
--- /dev/null
+++ b/sys-apps/apmd/files/apmd.confd
@@ -0,0 +1,3 @@
+# /etc/init.d/apmd:
+
+APMD_OPTS="-P /etc/apm/apmd_proxy"
diff --git a/sys-apps/apmd/files/apmd.rc6 b/sys-apps/apmd/files/apmd.rc6
new file mode 100644
index 000000000000..cce594a57df7
--- /dev/null
+++ b/sys-apps/apmd/files/apmd.rc6
@@ -0,0 +1,28 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need localmount
+}
+
+checkconfig() {
+ if [ ! -e /proc/apm ] ; then
+ eerror "APM support has not been compiled into the kernel"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting apmd"
+ start-stop-daemon --start --quiet --pidfile /var/run/apmd.pid \
+ --startas /usr/sbin/apmd -- ${APMD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping apmd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/apmd.pid
+ eend $?
+}
diff --git a/sys-apps/apmd/metadata.xml b/sys-apps/apmd/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/sys-apps/apmd/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>