summaryrefslogtreecommitdiff
path: root/www-apache/mod_auth_radius/mod_auth_radius-1.5.8.ebuild
blob: d9227ff7fe97c312a32867a725d56647feb03cf8 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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
}