You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-dialup/gnuradius/gnuradius-1.6.1-r1.ebuild

70 lines
1.4 KiB

# 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
}