diff options
Diffstat (limited to 'sys-apps/apmd')
-rw-r--r-- | sys-apps/apmd/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/apmd/apmd-3.2.2_p5.ebuild | 79 | ||||
-rw-r--r-- | sys-apps/apmd/files/apmd-no-on_ac_power_script.patch | 125 |
3 files changed, 0 insertions, 207 deletions
diff --git a/sys-apps/apmd/Manifest b/sys-apps/apmd/Manifest index 44036958cda2..9d1ab5f231de 100644 --- a/sys-apps/apmd/Manifest +++ b/sys-apps/apmd/Manifest @@ -1,10 +1,7 @@ -AUX apmd-no-on_ac_power_script.patch 4057 RMD160 fbfafa74939d219daf11d7d964bb820f95072cce SHA1 1ff59af7fc54df593a585f091b25c794f332f175 SHA256 32d85e1328426482693a29305bc8c892e232ddb628b36b6818cfa3cb9099820c AUX apmd.confd 161 RMD160 b9017e4fdcb4554c6c7b67d560efe2135f88f310 SHA1 4e1f966e936a0fe94ff5991b3773b60f4789b1a0 SHA256 3e984cccf976443ada013ea80a759b47a3c618cdc036b5979bc348bb26210957 AUX apmd.rc6 672 RMD160 86ce76611e496f65bbc174995f7575b06bde333b SHA1 5e3626bdd4aeea147cb01b7322a7b9e3fe1287d7 SHA256 121ad43e5da300f36d5536aa3ddc6f0c41c612063b22c3d033832fe9f0dde34d DIST apmd_3.2.2-14.diff.gz 19195 RMD160 12b0e46b9cbfd8b82e052e2dc106f75cc68becf0 SHA1 4d3a6d72fdd2caf38a2b9e678c5c897359625fe8 SHA256 7905ff96be93d725544d0040e425c42f9c05580db3c272f11cff75b9aa89d430 -DIST apmd_3.2.2-5.diff.gz 28232 RMD160 b82ad14bdcdcab149df0ae1b08c4dba7a6631c53 SHA1 2c13a569590f3b00f8223cd796ce882aeec1a8aa SHA256 b67021ab7dfb2d3b21bd12ba42fcc5f46481680ac640dafe9fd90d076d19a73d DIST apmd_3.2.2.orig.tar.gz 72757 RMD160 d6433f4b8cd537e574fde2df56f45982b8da13aa SHA1 2697ba78724a22b76e871b27363b6bdefa9baa38 SHA256 7f7d9f60b7766b852881d40b8ff91d8e39fccb0d1d913102a5c75a2dbb52332d EBUILD apmd-3.2.2_p14.ebuild 1952 RMD160 9bf000ad59abf56b385283b3af3fa4f722316252 SHA1 c09ce202612cf23749da4a950f624f37ecdedc31 SHA256 cb00996269eb7310e36f3feb42e07de32c31452362c246167f1befd253b2654b -EBUILD apmd-3.2.2_p5.ebuild 2016 RMD160 07034cc9cfe433a1a0bc5ebe815e6fde1c9eba4e SHA1 3874692aa3559e9f1950fd97a4bb7c75372481d5 SHA256 53e97bda3f3f705f87b355da99a85726a928067c3e3f60174a1caa09eed33f01 MISC ChangeLog 6528 RMD160 285f4072d3739db80aac111be34aed79a45e480d SHA1 24a2bd4b648bfe2e7065c25be89c13dcd88cde4f SHA256 0fef281bdbf3ea5fc2023783dd79f8558cd49dfe412bbc3e245a8dc4ec5088e5 MISC metadata.xml 159 RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 SHA1 bce3da4745192397c9a08bdbcf7e4914eac9b77b SHA256 ed3a0d440cfa5672284f4172ebde0ea6506c1a38e9a3ed9f14f3d2c093aac42f diff --git a/sys-apps/apmd/apmd-3.2.2_p5.ebuild b/sys-apps/apmd/apmd-3.2.2_p5.ebuild deleted file mode 100644 index cbc3a5f63466..000000000000 --- a/sys-apps/apmd/apmd-3.2.2_p5.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/apmd/apmd-3.2.2_p5.ebuild,v 1.13 2010/07/08 11:03:23 ssuominen Exp $ - -inherit eutils multilib toolchain-funcs - -MY_PV="${PV%_p*}" -MY_P="${PN}_${MY_PV}" -PATCHV="${PV#*_p}" - -DESCRIPTION="Advanced Power Management Daemon" -HOMEPAGE="http://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="X nls" - -RDEPEND=">=sys-apps/debianutils-1.16 - >=sys-power/powermgmt-base-1.22 - X? ( x11-libs/libX11 - x11-libs/libXaw - x11-libs/libXmu - x11-libs/libSM - x11-libs/libICE - x11-libs/libXt - x11-libs/libXext )" -DEPEND="${RDEPEND} - virtual/os-headers" - -S=${WORKDIR}/${PN}-${MY_PV}.orig - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${WORKDIR}"/${MY_P}-${PATCHV}.diff - # We depend on powermgmt-base now, so no need to install the script - # included with apmd. - epatch "${FILESDIR}"/${PN}-no-on_ac_power_script.patch - - if ! use X ; then - sed -i \ - -e 's:\(EXES=.*\)xapm:\1:' \ - -e 's:\(.*\)\$(LT_INSTALL).*xapm.*$:\1echo:' \ - "${S}"/Makefile \ - || die - fi - # apmd is perfectly happy with system linux-headers - sed -e 's:-I/usr/src/linux/include::' -i "${S}"/Makefile -} - -src_compile() { - emake CC=$(tc-getCC) || die -} - -src_install() { - dodir /usr/sbin - - make DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) install \ - || die - - keepdir /etc/apm/{event.d,suspend.d,resume.d,other.d,scripts.d} - exeinto /etc/apm - doexe debian/apmd_proxy || die - dodoc AUTHORS apmsleep.README README debian/README.Debian \ - debian/changelog* - - 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 || die - newinitd "${FILESDIR}"/apmd.rc6 apmd || die - - use nls || rm -rf "${D}"/usr/share/man/fr -} diff --git a/sys-apps/apmd/files/apmd-no-on_ac_power_script.patch b/sys-apps/apmd/files/apmd-no-on_ac_power_script.patch deleted file mode 100644 index 43d71dcb06f3..000000000000 --- a/sys-apps/apmd/files/apmd-no-on_ac_power_script.patch +++ /dev/null @@ -1,125 +0,0 @@ -diff -urN apmd-3.2.2.orig.orig/Makefile apmd-3.2.2.orig/Makefile ---- apmd-3.2.2.orig.orig/Makefile 2006-02-12 02:21:34.000000000 -0600 -+++ apmd-3.2.2.orig/Makefile 2006-02-12 02:22:15.000000000 -0600 -@@ -107,7 +107,6 @@ - $(LT_INSTALL) apmd $(DESTDIR)$(SBINDIR) - $(LT_INSTALL) xapm $(DESTDIR)$(BINDIR) - $(LT_INSTALL) apmsleep $(DESTDIR)$(BINDIR) -- install on_ac_power $(DESTDIR)$(BINDIR) - install -m 644 apm.h $(DESTDIR)$(INCDIR) - - .PHONY: clean distclean -diff -urN apmd-3.2.2.orig.orig/on_ac_power apmd-3.2.2.orig/on_ac_power ---- apmd-3.2.2.orig.orig/on_ac_power 2006-02-12 02:21:34.000000000 -0600 -+++ apmd-3.2.2.orig/on_ac_power 1969-12-31 18:00:00.000000000 -0600 -@@ -1,62 +0,0 @@ --#!/bin/sh --# --# Returns 0 (true) if on AC power --# 1 (false) if not on AC power --# 255 (false) if can't tell --# --# Example shell script: --# if on_ac_power; then --# echo We're on AC power --# else --# echo Can't say we're on AC power --# fi -- --set -e -- --# ACPI --# --# This algorithm is complicated by the possibility of multiple AC --# adapters. We scan the ac_adapter directory looking for adapters --# that have known states. If any adapter is on-line, we return 0. If --# no adapters are on-line but one or more are off-line, we return 1. --# --if acpi_available && [ -d /proc/acpi/ac_adapter ]; then -- OFF_LINE_P=no -- for FN in /proc/acpi/ac_adapter/*; do -- if [ -d "${FN}" ]; then -- if [ -r "${FN}/state" ]; then -- grep --quiet on-line "${FN}/state" && exit 0 -- grep --quiet off-line "${FN}/state" && OFF_LINE_P=yes -- elif [ -r "${FN}/status" ]; then -- grep --quiet on-line "${FN}/status" && exit 0 -- grep --quiet off-line "${FN}/status" && OFF_LINE_P=yes -- fi -- fi -- done -- [ "${OFF_LINE_P}" = "yes" ] && exit 1 --fi -- --# APM --if apm_available && [ -r /proc/apm ]; then -- exec awk </proc/apm ' -- BEGIN { ret = 255 } -- /^[0-9.a-zA-Z]* [0-9.]* 0x.. 0x../ { -- if ($4 == "0x01") { ret = 0; exit } -- else if ($4 == "0x00") { ret = 1; exit } -- } -- END { exit ret } -- ' --fi -- --# PMU --if [ -r /proc/pmu/info ]; then -- exec awk </proc/pmu/info ' -- BEGIN { ret = 255 } -- /^AC Power.*1$/ { ret = 0; exit } -- /^AC Power.*0$/ { ret = 1; exit } -- END { exit ret } -- ' --fi -- --# nothing is available --exit 255 -diff -urN apmd-3.2.2.orig.orig/on_ac_power.1 apmd-3.2.2.orig/on_ac_power.1 ---- apmd-3.2.2.orig.orig/on_ac_power.1 2006-02-12 02:21:34.000000000 -0600 -+++ apmd-3.2.2.orig/on_ac_power.1 1969-12-31 18:00:00.000000000 -0600 -@@ -1,44 +0,0 @@ --.\" Hey, EMACS: -*- nroff -*- --.\" First parameter, NAME, should be all caps --.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection --.\" other parameters are allowed: see man(7), man(1) --.TH ON_AC_POWER 1 "January 2004" "" "" --.\" Please adjust this date whenever revising the manpage. --.\" --.\" Some roff macros, for reference: --.\" .nh disable hyphenation --.\" .hy enable hyphenation --.\" .ad l left justify --.\" .ad b justify to both left and right margins --.\" .nf disable filling --.\" .fi enable filling --.\" .br insert line break --.\" .sp <n> insert n+1 empty lines --.\" for manpage-specific macros, see man(7) --.SH NAME --on_ac_power \- test whether the computer is running on line power --.SH SYNOPSIS --.B on_ac_power --.SH DESCRIPTION --The command succeeds (status 0) if the system is using line power --and fails (status other than 0) otherwise. --It is designed to be easy to use in shell scripts. --.SH OPTIONS --None. --.SH "EXIT STATUS" --.br --.nf --\fB0\fR (true) System is on line power --\fB1\fR (false) System is not on line power --\fB255\fR (false) Power status could not be determined --.SH FILES --.br --.nf --.ta \w'/proc/apm 'u --\fI/proc/apm\fR APM status information file --.nf --.ta \w'/proc/acpi/ 'u --\fI/proc/acpi\fR ACPI status information directory --.SH AUTHOR --This manual page was written by Steve Dodd <steved@loth.demon.co.uk> --and was updated by Thomas Hood. |