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.ebuild

68 lines
1.7 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/gnuradius/gnuradius-1.6.1.ebuild,v 1.2 2010/06/17 21:47:03 patrick Exp $
EAPI="2"
inherit eutils pam
MY_P="${P#gnu}"
DESCRIPTION="GNU radius authentication server"
HOMEPAGE="http://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="guile mysql postgres odbc dbm nls snmp pam static debug readline"
DEPEND="!net-dialup/freeradius
!net-dialup/cistronradius
guile? ( >=dev-scheme/guile-1.4 )
mysql? ( virtual/mysql )
postgres? ( dev-db/postgresql-server )
odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
readline? ( sys-libs/readline )
dbm? ( sys-libs/gdbm )
snmp? ( net-analyzer/net-snmp )
pam? ( virtual/pam )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
RESTRICT="test"
src_unpack() {
unpack ${A}
# Portage incorrectly detects missing --run m4 output lines as automake maintainer mode
# eautoreconf cannot be used because it will screw up the libtool file
epatch "${FILESDIR}/${P}-qa-false-positives.patch"
}
src_configure() {
local additional_conf=""
if use pam ; then
additional_conf="--with-pamdir=$(getpam_mod_dir)"
fi
econf --enable-client --disable-maintainer-mode \
$(use_with guile) \
$(use_with guile server-guile) \
$(use_with mysql) \
$(use_with postgres) \
$(use_with odbc) \
$(use_with readline) \
$(use_enable dbm) \
$(use_enable nls) \
$(use_enable snmp) \
$(use_enable pam) \
$(use_enable debug) \
$(use_enable static) \
${additional_conf} || die "configuration failed"
}
src_install() {
emake DESTDIR="${D}" install || die "installation failed"
}