blob: 4384270ace672e21db3fb5a8c4fda77fbf20421f (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
inherit apache-module eutils
MY_P="${PN}-${PV/_/-}"
DESCRIPTION="Token based URI access module for Apache2"
HOMEPAGE="http://code.google.com/p/mod-auth-token/"
SRC_URI="http://mod-auth-token.googlecode.com/files/${MY_P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND=""
RDEPEND=""
APACHE2_MOD_CONF="75_${PN}"
APACHE2_MOD_DEFINE="AUTH_TOKEN"
need_apache2_2
S="${WORKDIR}/${PN}"
src_prepare() {
epatch "${FILESDIR}"/${P}-ap_pstrcat.patch
}
src_compile() {
local flag=
APXS2_ARGS=
for flag in ${CFLAGS}; do
APXS2_ARGS+=" -Wc,${flag}"
done
for flag in ${LDFLAGS}; do
APXS2_ARGS+=" -Wl,${flag}"
done
APXS2_ARGS="${APXS2_ARGS} -c ${PN}.c"
apache-module_src_compile
}
|