From 457ae67d995b5c8e774cc376ee741c01448944e4 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 22 Nov 2026 06:12:36 +0000 Subject: [PATCH] www/privoxy: Various improvements (work in progress, patch version 2026-11-23-21:47) - Add brotli option. - Add openssl option to allow HTTPS inspection. - Add ISC license. - Enable extended statistics. - Add regression-tests.action to the PLIST. --- www/privoxy/Makefile | 5 +++-- www/privoxy/PLIST | 1 + www/privoxy/options.mk | 19 +++++++++++++++++-- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/www/privoxy/Makefile b/www/privoxy/Makefile index 89e7e0f2f5fa..805e8e163b81 100644 --- a/www/privoxy/Makefile +++ b/www/privoxy/Makefile @@ -2,14 +2,14 @@ DISTNAME= ${PKGNAME_NOREV}-stable-src PKGNAME= privoxy-4.2.0 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= www MASTER_SITES= https://www.privoxy.org/sf-download-mirror/Sources/${PKGVERSION_NOREV}%20(stable)/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://www.privoxy.org/ COMMENT= Web proxy with advanced filtering capabilities -LICENSE= gnu-gpl-v2 +LICENSE= gnu-gpl-v2 AND isc WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}-stable @@ -38,6 +38,7 @@ CONFIGURE_ARGS+= --localstatedir=${VARBASE} CONFIGURE_ARGS+= --sysconfdir=${PRIVOXY_EGDIR} CONFIGURE_ARGS+= --with-user=${PRIVOXY_USER:Q} CONFIGURE_ARGS+= --with-group=${PRIVOXY_GROUP:Q} +CONFIGURE_ARGS+= --enable-extended-statistics MAKE_FILE= GNUmakefile diff --git a/www/privoxy/PLIST b/www/privoxy/PLIST index 6c578c4943f7..446d42f6d22f 100644 --- a/www/privoxy/PLIST +++ b/www/privoxy/PLIST @@ -101,3 +101,4 @@ share/examples/privoxy/templates/wpad.dat share/examples/privoxy/trust share/examples/privoxy/user.action share/examples/privoxy/user.filter +share/examples/privoxy/regression-tests.action diff --git a/www/privoxy/options.mk b/www/privoxy/options.mk index a68cec7b49fb..ad17d50b2c1a 100644 --- a/www/privoxy/options.mk +++ b/www/privoxy/options.mk @@ -2,17 +2,32 @@ # PKG_OPTIONS_VAR= PKG_OPTIONS.privoxy -PKG_SUPPORTED_OPTIONS+= inet6 zlib zstd -PKG_SUGGESTED_OPTIONS+= inet6 zlib zstd +PKG_SUPPORTED_OPTIONS+= brotli inet6 openssl zlib zstd +PKG_SUGGESTED_OPTIONS+= brotli inet6 openssl zlib zstd .include "../../mk/bsd.options.mk" +.if !empty(PKG_OPTIONS:Mbrotli) +CONFIGURE_ARGS+= --with-brotli +.include "../../archivers/brotli/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-brotli +.endif + .if !empty(PKG_OPTIONS:Minet6) CONFIGURE_ARGS+= --enable-ipv6-support .else CONFIGURE_ARGS+= --disable-ipv6-support .endif +.if !empty(PKG_OPTIONS:Mopenssl) +CONFIGURE_ARGS+= --with-openssl +.include "../../security/openssl/buildlink3.mk" +LICENSE+= AND gnu-gpl-v3 +.else +CONFIGURE_ARGS+= --without-openssl +.endif + .if !empty(PKG_OPTIONS:Mzlib) CONFIGURE_ARGS+= --enable-zlib --enable-compression .include "../../devel/zlib/buildlink3.mk" -- 2.56.1