blob: 4ab411903ee7ccd6585e1394f69b3d88c965dc7a (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
EAPI=8
inherit depend.apache apache-module autotools
DESCRIPTION="OpenID Connect Relying Party implementation for Apache HTTP Server 2.x"
HOMEPAGE="https://github.com/OpenIDC/mod_auth_openidc"
SRC_URI="https://github.com/OpenIDC/mod_auth_openidc/releases/download/v${PV}/${P}.tar.gz"
KEYWORDS="~amd64"
IUSE="redis brotli"
SLOT="0"
LICENSE="Apache-2.0"
RDEPEND="net-misc/curl
brotli? ( app-arch/brotli:= )
sys-libs/zlib:=
dev-libs/openssl:=
dev-libs/apr
dev-libs/jansson:=
dev-libs/cjose
dev-libs/libpcre
redis? ( dev-libs/hiredis:= )
app-misc/jq"
DEPEND="
${RDEPEND}
virtual/pkgconfig"
APACHE2_MOD_CONF="10_mod_auth_openidc"
APACHE2_MOD_DEFINE="AUTH_OPENIDC"
DOCFILES="README.md ChangeLog AUTHORS INSTALL auth_openidc.conf"
need_apache2_4
src_prepare() {
default
eautoreconf
}
src_configure() {
ECONF_ARGS=(
$(use_with brotli)
$(use_with redis hiredis)
)
econf "${ECONF_ARGS[@]}"
}
src_compile() {
# Do not use apache-module_src_compile ; it does not compile properly
default
}
src_install() {
# Do not use apache-module_src_install ; it does not link properly
default
insinto "${APACHE_MODULES_CONFDIR}"
doins "${FILESDIR}/${APACHE2_MOD_CONF}.conf"
dodoc ${DOCFILES}
}
pkg_postinst() {
apache-module_pkg_postinst
}
|