openbsd-ports/www/privoxy/Makefile
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00

54 lines
1.2 KiB
Makefile

COMMENT= web proxy with advanced filtering capabilities
V= 3.0.33
DISTNAME= privoxy-${V}-stable
PKGNAME= privoxy-${V}
CATEGORIES= www
REVISION= 0
HOMEPAGE= https://www.privoxy.org/
# GPLv2+
PERMIT_PACKAGE= Yes
WANTLIB += c crypto pcre pcreposix pthread ssl z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ijbswa/}
EXTRACT_SUFX= -src.tar.gz
FIX_EXTRACT_PERMISSIONS= Yes
# there are tests which can be run with tools/privoxy-regression-test.pl
# they require privoxy to be running, and http_proxy=http://127.0.0.1:8118/
NO_TEST= Yes
USE_GMAKE= Yes
MAKE_FILE= GNUmakefile
LIB_DEPENDS= devel/pcre
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.69
CONFIGURE_ARGS= --with-docbook=no \
--with-openssl
CONFIGURE_ENV= CPPFLAGS="-Dunix -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
PRIVOXYCONF= ${SYSCONFDIR}/privoxy/
SUBST_VARS= PRIVOXYCONF
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mclang}
CFLAGS += -std=gnu99
.endif
pre-configure:
@cd ${WRKDIST} && AUTOCONF_VERSION=${AUTOCONF_VERSION} autoheader
FAKE_FLAGS= CONF_DEST=${PREFIX}/share/examples/privoxy
post-install:
${SUBST_CMD} ${PREFIX}/share/examples/privoxy/config
rm ${PREFIX}/share/examples/privoxy/config.beforesubst
${INSTALL_SCRIPT} ${WRKSRC}/tools/* ${PREFIX}/bin
.include <bsd.port.mk>