apache24: Add mod_brotli option
The mod_brotli module provides the BROTLI_COMPRESS output filter that allows output from your server to be compressed using the brotli compression format before being sent to the client over the network.
This commit is contained in:
parent
a19fd0f5c7
commit
0f9f220c00
4 changed files with 16 additions and 7 deletions
|
@ -65,6 +65,7 @@ blender-exppython Enable the Experimental Python support.
|
|||
bluray Enable libbluray support.
|
||||
boehm-gc Use Boehm's garbage collector for memory allocation.
|
||||
bozohttpd-do-htpasswd Enable .htpasswd file processing in bozohttpd.
|
||||
brotli Provides the BROTLI_COMPRESS output filter.
|
||||
bugzilla-charts Enable generation of charts.
|
||||
bugzilla-imagemagick Compress .BMPs to save space.
|
||||
bugzilla-patchviewer Enable patchviewer support.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.79 2019/05/23 19:23:19 rillig Exp $
|
||||
# $NetBSD: Makefile,v 1.80 2019/06/07 11:26:20 tm Exp $
|
||||
#
|
||||
# When updating this package, make sure that no strings like
|
||||
# "PR 12345" are in the commit message. Upstream likes
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
DISTNAME= httpd-2.4.39
|
||||
PKGNAME= ${DISTNAME:S/httpd/apache/}
|
||||
PKGREVISION= 1
|
||||
PKGREVISION= 2
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/}
|
||||
MASTER_SITES+= http://archive.apache.org/dist/httpd/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@comment $NetBSD: PLIST,v 1.29 2019/04/05 13:48:38 jperkin Exp $
|
||||
@comment $NetBSD: PLIST,v 1.30 2019/06/07 11:26:20 tm Exp $
|
||||
bin/ab
|
||||
bin/apxs
|
||||
bin/dbmmanage
|
||||
|
@ -95,6 +95,7 @@ lib/httpd/mod_authz_host.so
|
|||
lib/httpd/mod_authz_owner.so
|
||||
lib/httpd/mod_authz_user.so
|
||||
lib/httpd/mod_autoindex.so
|
||||
${PLIST.brotli}lib/httpd/mod_brotli.so
|
||||
lib/httpd/mod_buffer.so
|
||||
lib/httpd/mod_cache.so
|
||||
lib/httpd/mod_cache_disk.so
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# $NetBSD: options.mk,v 1.14 2019/04/05 13:48:38 jperkin Exp $
|
||||
# $NetBSD: options.mk,v 1.15 2019/06/07 11:26:20 tm Exp $
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.apache
|
||||
PKG_SUPPORTED_OPTIONS= apache-mpm-event apache-mpm-prefork apache-mpm-worker \
|
||||
lua http2 suexec xml
|
||||
brotli lua http2 suexec xml
|
||||
PKG_SUGGESTED_OPTIONS= apache-mpm-event apache-mpm-prefork \
|
||||
apache-mpm-worker http2 xml
|
||||
apache-mpm-worker brotli http2 xml
|
||||
|
||||
.if ${OPSYS} == "SunOS" && !empty(OS_VERSION:M5.1[0-9])
|
||||
PKG_SUPPORTED_OPTIONS+= privileges
|
||||
|
@ -25,7 +25,7 @@ PKG_SUPPORTED_OPTIONS+= privileges
|
|||
# worker hybrid multi-threaded multi-process web server
|
||||
#
|
||||
PLIST_VARS+= worker prefork event only-prefork not-only-prefork
|
||||
PLIST_VARS+= http2 lua privileges suexec xml
|
||||
PLIST_VARS+= brotli http2 lua privileges suexec xml
|
||||
|
||||
.if !empty(PKG_OPTIONS:Mapache-mpm-event)
|
||||
MPMS+= event
|
||||
|
@ -116,6 +116,13 @@ CONFIGURE_ARGS+= --disable-proxy-html
|
|||
CONFIGURE_ARGS+= --disable-xml2enc
|
||||
.endif
|
||||
|
||||
.if !empty(PKG_OPTIONS:Mbrotli)
|
||||
.include "../../archivers/brotli/buildlink3.mk"
|
||||
CONFIGURE_ARGS+= --enable-brotli
|
||||
CONFIGURE_ARGS+= --with-brotli=${PREFIX}
|
||||
PLIST.brotli= yes
|
||||
.endif
|
||||
|
||||
# DTrace support is manifest, but actually not implemented at all
|
||||
#.if !empty(PKG_OPTIONS:Mdtrace)
|
||||
#CONFIGURE_ARGS+= --enable-dtrace
|
||||
|
|
Loading…
Reference in a new issue