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.
40 lines
762 B
40 lines
762 B
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI="5"
|
|
|
|
inherit apache-module eutils
|
|
|
|
DESCRIPTION="Radius authentication for Apache"
|
|
HOMEPAGE="http://freeradius.org/mod_auth_radius/"
|
|
SRC_URI="ftp://ftp.freeradius.org/pub/radius/${P}.tar"
|
|
|
|
LICENSE="Apache-2.0"
|
|
KEYWORDS="~amd64"
|
|
SLOT="0"
|
|
IUSE=""
|
|
|
|
APACHE2_MOD_FILE=".libs/mod_auth_radius-2.0.so"
|
|
APACHE2_MOD_DEFINE="AUTH_RADIUS"
|
|
|
|
APXS2_ARGS="-c ${PN}-2.0.c"
|
|
|
|
DOCFILES="README"
|
|
|
|
need_apache2
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/${PV}-includes.patch"
|
|
if has_version ">=www-servers/apache-2.4"; then
|
|
epatch "${FILESDIR}/${PV}-remote_ip-obsolete.patch"
|
|
fi
|
|
}
|
|
|
|
src_compile() {
|
|
apache-module_src_compile
|
|
}
|
|
|
|
src_install() {
|
|
apache-module_src_install
|
|
}
|