blob: 3c72f13f6fd1302c1c87c00d9c4aed7b25e75f23 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/cvm/cvm-0.76.ebuild,v 1.5 2006/04/22 05:20:04 robbat2 Exp $
inherit toolchain-funcs eutils
DESCRIPTION="Credential Validation Modules by Bruce Guenter"
HOMEPAGE="http://untroubled.org/cvm/"
SRC_URI="${HOMEPAGE}archive/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~sparc ~ppc"
IUSE="mysql postgres"
RDEPEND="virtual/libc
dev-db/cdb"
DEPEND="${RDEPEND}
>=dev-libs/bglibs-1.041
mysql? ( dev-db/mysql )
postgres? ( dev-db/postgresql )"
src_unpack() {
unpack ${A}
# disable this test, as it breaks under Portage
# and there is no easy fix
sed -i.orig -e '/qmail-lookup-nodomain/,/^END_OF_TEST_RESULTS/d' ${S}/tests.sh || die "sed failed"
}
src_compile() {
echo "/usr/include/bglibs" > conf-bgincs
echo "/usr/lib/bglibs" > conf-bglibs
echo "${D}/usr/include" > conf-include
echo "${D}/usr/lib" > conf-lib
echo "${D}/usr/bin" > conf-bin
echo "$(tc-getCC) ${CFLAGS}" > conf-cc
echo "$(tc-getCC) ${LDFLAGS} -lcrypt" > conf-ld
emake || die
if use mysql; then
make mysql || die "making mysql support failed"
fi
if use postgres; then
make pgsql || die "making postgres support failed"
fi
}
src_install() {
einstall || die
dodoc ANNOUNCEMENT COPYING NEWS NEWS.sql NEWS.vmailmgr README README.vchkpw
dodoc README.vmailmgr TODO VERSION
dohtml *.html
}
src_test() {
sh tests.sh || die "Testing Failed"
}
|