diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2002-05-03 19:54:00 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2002-05-03 19:54:00 +0000 |
commit | b8a7e764f04f991a43093ff0f9a082e2ca6e08cb (patch) | |
tree | 49f7625f139cb8d906d713022782fe95b3290ac2 /sys-apps/apmd/apmd-3.0.2-r2.ebuild | |
parent | Fixes #2306. (diff) | |
download | historical-b8a7e764f04f991a43093ff0f9a082e2ca6e08cb.tar.gz historical-b8a7e764f04f991a43093ff0f9a082e2ca6e08cb.tar.bz2 historical-b8a7e764f04f991a43093ff0f9a082e2ca6e08cb.zip |
Close bug #1472; thanks meekrob! :)
Diffstat (limited to 'sys-apps/apmd/apmd-3.0.2-r2.ebuild')
-rw-r--r-- | sys-apps/apmd/apmd-3.0.2-r2.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sys-apps/apmd/apmd-3.0.2-r2.ebuild b/sys-apps/apmd/apmd-3.0.2-r2.ebuild new file mode 100644 index 000000000000..9d84d1f6e1c1 --- /dev/null +++ b/sys-apps/apmd/apmd-3.0.2-r2.ebuild @@ -0,0 +1,50 @@ +# 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-r2.ebuild,v 1.1 2002/05/03 19:54:00 drobbins 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 )" + +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 + 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 +} |