summaryrefslogtreecommitdiff
path: root/www-nginx/ngx-geoip2/ngx-geoip2-3.4.ebuild
blob: 5a4bb04df73c809aa2ee6f2788254ee01dc8a850 (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN="ngx_http_geoip2_module"
NGINX_MOD_S="${WORKDIR}/${MY_PN}-${PV}"

inherit nginx-module

DESCRIPTION="NGINX GeoIP2 module"
HOMEPAGE="https://github.com/leev/ngx_http_geoip2_module"
SRC_URI="
	https://github.com/leev/ngx_http_geoip2_module/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 arm64"

DEPEND="dev-libs/libmaxminddb"
RDEPEND="${DEPEND}"

src_configure() {
	# Always build the stream module.
	myconf=( --with-stream )
	nginx-module_src_configure "${myconf[@]}"
}

pkg_postinst() {
	nginx-module_pkg_postinst

	einfo ""
	ewarn "If you want to use the stream module, make sure that www-servers/nginx"
	ewarn "has USE=\"stream\" set. Please refer to the Gentoo AMD64 Handbook for"
	ewarn "instructions on how to declare USE flags."
}