blob: 8d3823d51105caf4cb754c858d6611efd9ea6800 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/apmd/apmd-3.2.1_p4.ebuild,v 1.4 2004/03/03 19:27:14 vapier Exp $
inherit eutils
MY_PV="${PV%_p*}"
MY_P="${PN}_${MY_PV}"
PATCHV="${PV#*_p}"
S="${WORKDIR}/${PN}-${MY_PV}.orig"
DESCRIPTION="Advanced Power Management Daemon"
HOMEPAGE="http://www.worldvisions.ca/~apenwarr/apmd/"
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="~x86 ~ppc ~ppc64 ~amd64"
IUSE="X nls"
DEPEND="virtual/os-headers
>=sys-apps/debianutils-1.16
>=sys-apps/sed-4
X? ( virtual/x11 )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${WORKDIR}/${MY_P}-${PATCHV}.diff
if ! use X ; then
sed -e 's:\(EXES=.*\)xapm:\1:' \
-e 's:\(.*\)\$(LT_INSTALL).*xapm.*$:\1echo:' \
-i ${S}/Makefile
fi
}
src_compile() {
emake || die
}
src_install() {
dodir /usr/sbin
make DESTDIR=${D} PREFIX=/usr install || die "install failed"
dodir /etc/apm/{event.d,suspend.d,resume.d,other.d,scripts.d}
exeinto /etc/apm ; doexe debian/apmd_proxy
dodoc AUTHORS apmsleep.README README debian/README.Debian
dodoc debian/changelog* debian/copyright*
doman *.1 *.8
# note: apmd_proxy.conf is currently disabled and not used, thus
# not installed - liquidx (01 Mar 2004)
insinto /etc/conf.d ; newins ${FILESDIR}/apmd.confd apmd
exeinto /etc/init.d ; newexe ${FILESDIR}/apmd.rc6 apmd
use nls || rm -rf ${D}/usr/share/man/fr
}
|