summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2002-07-12 07:15:40 +0000
committerDoug Goldstein <cardoe@gentoo.org>2002-07-12 07:15:40 +0000
commitdd84bba9f625305647bd079a04239a7795cd2172 (patch)
tree2224de8fe5f7aa7b3948094a5f6b2aff3bf1253a /sys-apps/apmd
parentNew revision: added checks for the symlinks. (diff)
downloadgentoo-2-dd84bba9f625305647bd079a04239a7795cd2172.tar.gz
gentoo-2-dd84bba9f625305647bd079a04239a7795cd2172.tar.bz2
gentoo-2-dd84bba9f625305647bd079a04239a7795cd2172.zip
updated to -r3
-fixed X depends
Diffstat (limited to 'sys-apps/apmd')
-rw-r--r--sys-apps/apmd/ChangeLog8
-rw-r--r--sys-apps/apmd/apmd-3.0.2-r3.ebuild63
-rw-r--r--sys-apps/apmd/files/digest-apmd-3.0.2-r31
3 files changed, 71 insertions, 1 deletions
diff --git a/sys-apps/apmd/ChangeLog b/sys-apps/apmd/ChangeLog
index 9a025c789646..e42e94812fdf 100644
--- a/sys-apps/apmd/ChangeLog
+++ b/sys-apps/apmd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/apmd
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/apmd/ChangeLog,v 1.3 2002/05/03 19:54:00 drobbins Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/apmd/ChangeLog,v 1.4 2002/07/12 07:15:40 cardoe Exp $
+
+*apmd-3.0.2-r3 (12 July 2002)
+
+ 12 July 2002; Doug Goldstein <cardoe@gentoo.org>; apmd-3.0.2-r3.ebuild
+ patched to respect the X use variable and to build xapmd if +X and not build it otherwise
+ (so we don't require X for the console utils of apmd)
*apmd-3.0.2-r2 (02 May 2002)
diff --git a/sys-apps/apmd/apmd-3.0.2-r3.ebuild b/sys-apps/apmd/apmd-3.0.2-r3.ebuild
new file mode 100644
index 000000000000..b142497f3331
--- /dev/null
+++ b/sys-apps/apmd/apmd-3.0.2-r3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/apmd/apmd-3.0.2-r3.ebuild,v 1.1 2002/07/12 07:15:40 cardoe Exp $
+
+DESCRIPTION="Advanced Power Management Daemon"
+HOMEPAGE="http://www.worldvisions.ca/~apenwarr/apmd/"
+SRC_URI="http://www.worldvisions.ca/~apenwarr/apmd/${P}.tar.gz"
+S=${WORKDIR}/${PN}
+
+DEPEND="virtual/glibc >=sys-apps/debianutils-1.16 X? ( virtual/x11 )"
+RDEPEND=${DEPEND}
+LICENSE="GPL"
+SLOT=0
+KEYWORD="x86"
+
+src_unpack() {
+
+ unpack ${A} ; cd ${S}
+
+ cp Makefile Makefile.orig
+ sed -e "s:\(PREFIX=\)\(/usr\):\1\$\{DESTDIR\}\2:" \
+ -e "s:\(APMD_PROXY_DIR\=\)\(/etc\):\1\$\{DESTDIR\}\2/apm:" \
+ -e "97d" \
+ -e "s:\(MANDIR\=\${PREFIX}\)\(/man\):\1/share\2:" \
+ Makefile.orig > Makefile
+
+ if [ "`use X`" ]
+ then
+ echo -e "xinstall:\n\tinstall\txapm\t\${PREFIX}/bin" >> Makefile
+
+ else
+
+ cp Makefile Makefile.orig
+ sed -e "/^EXES=/s/xapm//" \
+ -e "/install.*xapm/d" \
+ Makefile.orig > Makefile
+ fi
+
+ #This closes bug #1472: fixes compilation with recent 2.4 kernels
+ cat ${FILESDIR}/apmsleep.c.diff | patch -p0 -l || die
+}
+
+src_compile() {
+
+ make CFLAGS="${CFLAGS}" || die "compile problem"
+}
+
+src_install () {
+
+ make DESTDIR=${D} install || die
+
+ dodir /etc/apm/{event.d,suspend.d,resume.d}
+ exeinto /etc/apm ; doexe debian/apmd_proxy
+ dodoc ANNOUNCE BUGS.apmsleep COPYING* README* ChangeLog LSM
+
+ insinto /etc/conf.d ; newins ${FILESDIR}/apmd.confd apmd
+ exeinto /etc/init.d ; newexe ${FILESDIR}/apmd.rc6 apmd
+
+ if [ "`use X`" ]
+ then
+ make DESTDIR=${D} xinstall || die
+ fi
+}
diff --git a/sys-apps/apmd/files/digest-apmd-3.0.2-r3 b/sys-apps/apmd/files/digest-apmd-3.0.2-r3
new file mode 100644
index 000000000000..9a9bc483e68a
--- /dev/null
+++ b/sys-apps/apmd/files/digest-apmd-3.0.2-r3
@@ -0,0 +1 @@
+MD5 23ce275766441c59b6b47c002f9098eb apmd-3.0.2.tar.gz 80489