blob: 01bfe6dae711a16c459bfff901245b15ca568829 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Craig Joly <joly@ee.ualberta.ca>, Ben Lutgens <lamer@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/apmd/apmd-3.0.1-r6.ebuild,v 1.1 2001/10/14 09:11:36 woodchip Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Advanced Power Management Daemon"
SRC_URI="ftp://ftp.debian.org/debian/pool/main/a/apmd/apmd_3.0.1-1.tar.gz"
HOMEPAGE="http://www.worldvisions.ca/~apenwarr/apmd/"
DEPEND="virtual/glibc X? ( virtual/x11 )"
src_unpack() {
unpack ${A} ; cd ${S}
cp Makefile Makefile.orig
sed -e "s:PREFIX=\/usr:PREFIX=\$\{DESTDIR\}\/usr:" \
-e "s:APMD_PROXY_DIR\=\/etc:APMD_PROXY_DIR\=\$\{DESTDIR\}\/etc\/apm:" \
-e "97d" \
-e "s:MANDIR\=\${PREFIX}\/man:MANDIR\=\${PREFIX}\/share\/man:" \
Makefile.orig > Makefile
use X || sed -e "/^EXES=/s/xapm//" -e "/install.*xapm/d" Makefile | cat > Makefile
}
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
exeinto /etc/init.d ; newexe ${FILESDIR}/apmd.rc6 apmd
}
|