openbsd-ports/net/sniproxy/Makefile

48 lines
974 B
Makefile

COMMENT = name-based proxying of HTTPS without decrypting traffic
GH_ACCOUNT = renaudallard
GH_PROJECT = sniproxy
GH_TAGNAME = 0.6.5
REVISION = 0
CATEGORIES = net
HOMEPAGE = https://github.com/renaudallard/sniproxy
MAINTAINER = Renaud Allard <renaud@allard.it>
# BSD
PERMIT_PACKAGE = Yes
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
# use pledge()
WANTLIB += c ev pcre udns
BUILD_DEPENDS = devel/gettext,-tools
LIB_DEPENDS = net/udns \
devel/libev \
devel/pcre
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.16
CONFIGURE_STYLE = autoreconf
AUTORECONF = ./autogen.sh
CONFIGURE_ARGS = --disable-rpath
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
TEST_ENV = SNI_PROXY_PORT=18080 \
TEST_HTTPD_PORT=18081 \
TEST_FALLBACK_PORT=18082
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sniproxy
${INSTALL_DATA} ${WRKSRC}/sniproxy.conf \
${PREFIX}/share/examples/sniproxy
.include <bsd.port.mk>