summaryrefslogtreecommitdiff
blob: 18f2f2ff7d6ef856db3eabb9ee4caf54ecb67833 (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
63
64
65
66
67
68
69
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils multilib pam

MY_P="${P#gnu}"

DESCRIPTION="GNU radius authentication server"
HOMEPAGE="https://www.gnu.org/software/radius/radius.html"
SRC_URI="mirror://gnu/radius/${MY_P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE="
	dbm debug guile mysql nls odbc postgres readline snmp static-libs
"

DEPEND="
	!net-dialup/cistronradius
	!net-dialup/freeradius
	dbm? ( sys-libs/gdbm )
	guile? ( >=dev-scheme/guile-1.4 )
	mysql? ( virtual/mysql )
	odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
	postgres? ( dev-db/postgresql[server] )
	readline? ( sys-libs/readline )
	snmp? ( net-analyzer/net-snmp )
	virtual/pam
"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

RESTRICT="test"

src_prepare() {
	epatch "${FILESDIR}"/${P}-qa-false-positives.patch
}

src_configure() {
	econf \
		--disable-maintainer-mode \
		--enable-client \
		--enable-pam \
		--enable-server \
		--libdir=/usr/$(get_libdir) \
		--with-pamdir=/usr/$(getpam_mod_dir) \
		$(use_enable dbm) \
		$(use_enable debug) \
		$(use_enable nls) \
		$(use_enable snmp) \
		$(use_enable static-libs static) \
		$(use_with guile) \
		$(use_with guile server-guile) \
		$(use_with mysql) \
		$(use_with odbc) \
		$(use_with postgres) \
		$(use_with readline)
}

src_install() {
	default

	prune_libtool_files
}