www-nginx/ngx-set-misc - 0.33 (gentoo)

Search

Package Information

Description:
An NGINX module that adds various set_xxx directives to NGINX's rewrite module
Homepage:
https://github.com/openresty/set-misc-nginx-module
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
0.33 8 amd64 arm64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN="set-misc-nginx-module"

NGINX_MOD_LINK_MODULES=( www-nginx/ngx_devel_kit )

NGINX_MOD_OPENRESTY_TESTS=1
NGINX_MOD_TEST_LOAD_ORDER=(
	www-nginx/ngx-echo
	www-nginx/ngx-iconv
)
inherit nginx-module

DESCRIPTION="An NGINX module that adds various set_xxx directives to NGINX's rewrite module"
HOMEPAGE="https://github.com/openresty/set-misc-nginx-module"
SRC_URI="
	https://github.com/openresty/set-misc-nginx-module/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"

S="${WORKDIR}/${MY_PN}-${PV}"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 arm64"
IUSE="+hmac"

BDEPEND="virtual/pkgconfig"
DEPEND="hmac? ( dev-libs/openssl:= )"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/${PN}-0.33-hmac-configurable.patch"
	"${FILESDIR}/${PN}-0.33-skip-hashed-upstream_t-test.patch"
)

src_configure() {
	# These are variables patched into the build system to be able to control
	# HMAC support. For more details, see the "hmac-configurable" patch above.
	local -x GENTOO_USE_HMAC=NO
	if use hmac; then
		GENTOO_USE_HMAC=YES
		ngx_mod_link_lib libcrypto
	fi
	nginx-module_src_configure
}

USE Flags

hmac
Default: Enabled (+)

Dependencies

DEPEND

hmac? ( dev-libs/openssl:= )

RDEPEND

hmac? ( dev-libs/openssl:= )

BDEPEND

virtual/pkgconfig

Manifest for 0.33

Type File Size Source URLs
DIST ngx-set-misc-0.33.tar.gz 30084 bytes https://github.com/openresty/set-misc-nginx-module/archive/refs/tags/v0.33.tar.gz