pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc apache24: Add mod_brotli option



details:   https://anonhg.NetBSD.org/pkgsrc/rev/be9a05626807
branches:  trunk
changeset: 334858:be9a05626807
user:      tm <tm%pkgsrc.org@localhost>
date:      Fri Jun 07 11:26:20 2019 +0000

description:
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.

diffstat:

 mk/defaults/options.description |   1 +
 www/apache24/Makefile           |   4 ++--
 www/apache24/PLIST              |   3 ++-
 www/apache24/options.mk         |  15 +++++++++++----
 4 files changed, 16 insertions(+), 7 deletions(-)

diffs (86 lines):

diff -r cce1b8ea1cf3 -r be9a05626807 mk/defaults/options.description
--- a/mk/defaults/options.description   Fri Jun 07 10:47:33 2019 +0000
+++ b/mk/defaults/options.description   Fri Jun 07 11:26:20 2019 +0000
@@ -65,6 +65,7 @@
 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.
diff -r cce1b8ea1cf3 -r be9a05626807 www/apache24/Makefile
--- a/www/apache24/Makefile     Fri Jun 07 10:47:33 2019 +0000
+++ b/www/apache24/Makefile     Fri Jun 07 11:26:20 2019 +0000
@@ -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/
diff -r cce1b8ea1cf3 -r be9a05626807 www/apache24/PLIST
--- a/www/apache24/PLIST        Fri Jun 07 10:47:33 2019 +0000
+++ b/www/apache24/PLIST        Fri Jun 07 11:26:20 2019 +0000
@@ -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_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
diff -r cce1b8ea1cf3 -r be9a05626807 www/apache24/options.mk
--- a/www/apache24/options.mk   Fri Jun 07 10:47:33 2019 +0000
+++ b/www/apache24/options.mk   Fri Jun 07 11:26:20 2019 +0000
@@ -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 @@
 #      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-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



Home | Main Index | Thread Index | Old Index