pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/apache24 apache24: Make xml support optional, defa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f85f365b64b2
branches:  trunk
changeset: 332187:f85f365b64b2
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Apr 05 13:48:38 2019 +0000

description:
apache24: Make xml support optional, defaulting to on.

Allows mod_proxy_html to be supported again.  Based on a pull request from
vec4f in joyent/pkgsrc#169.

diffstat:

 www/apache24/Makefile   |   5 ++---
 www/apache24/PLIST      |   4 +++-
 www/apache24/options.mk |  19 +++++++++++++++----
 3 files changed, 20 insertions(+), 8 deletions(-)

diffs (95 lines):

diff -r ed1ae1c55c1e -r f85f365b64b2 www/apache24/Makefile
--- a/www/apache24/Makefile     Fri Apr 05 13:42:54 2019 +0000
+++ b/www/apache24/Makefile     Fri Apr 05 13:48:38 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2019/04/02 07:25:38 adam Exp $
+# $NetBSD: Makefile,v 1.78 2019/04/05 13:48:38 jperkin Exp $
 #
 # When updating this package, make sure that no strings like
 # "PR 12345" are in the commit message. Upstream likes
@@ -7,6 +7,7 @@
 
 DISTNAME=      httpd-2.4.39
 PKGNAME=       ${DISTNAME:S/httpd/apache/}
+PKGREVISION=   1
 CATEGORIES=    www
 MASTER_SITES=  ${MASTER_SITE_APACHE:=httpd/}
 MASTER_SITES+= http://archive.apache.org/dist/httpd/
@@ -52,8 +53,6 @@
 .include "../../mk/dlopen.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 
-CONFIGURE_ARGS+=       --disable-xml2enc
-CONFIGURE_ARGS+=       --disable-proxy-html
 CONFIGURE_ARGS+=       --enable-proxy-fdpass
 
 DFLT_APACHE_MODULES+=  all
diff -r ed1ae1c55c1e -r f85f365b64b2 www/apache24/PLIST
--- a/www/apache24/PLIST        Fri Apr 05 13:42:54 2019 +0000
+++ b/www/apache24/PLIST        Fri Apr 05 13:48:38 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.28 2019/04/02 07:25:38 adam Exp $
+@comment $NetBSD: PLIST,v 1.29 2019/04/05 13:48:38 jperkin Exp $
 bin/ab
 bin/apxs
 bin/dbmmanage
@@ -150,6 +150,7 @@
 lib/httpd/mod_proxy_fdpass.so
 lib/httpd/mod_proxy_ftp.so
 lib/httpd/mod_proxy_hcheck.so
+${PLIST.xml}lib/httpd/mod_proxy_html.so
 lib/httpd/mod_proxy_http.so
 lib/httpd/mod_proxy_scgi.so
 lib/httpd/mod_proxy_uwsgi.so
@@ -184,6 +185,7 @@
 lib/httpd/mod_version.so
 lib/httpd/mod_vhost_alias.so
 lib/httpd/mod_watchdog.so
+${PLIST.xml}lib/httpd/mod_xml2enc.so
 libexec/cgi-bin/printenv
 libexec/cgi-bin/printenv.vbs
 libexec/cgi-bin/printenv.wsf
diff -r ed1ae1c55c1e -r f85f365b64b2 www/apache24/options.mk
--- a/www/apache24/options.mk   Fri Apr 05 13:42:54 2019 +0000
+++ b/www/apache24/options.mk   Fri Apr 05 13:48:38 2019 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: options.mk,v 1.13 2017/01/28 04:57:57 ryoon Exp $
+# $NetBSD: options.mk,v 1.14 2019/04/05 13:48:38 jperkin Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.apache
 PKG_SUPPORTED_OPTIONS=         apache-mpm-event apache-mpm-prefork apache-mpm-worker \
-                               lua http2 suexec
+                               lua http2 suexec xml
 PKG_SUGGESTED_OPTIONS=         apache-mpm-event apache-mpm-prefork \
-                               apache-mpm-worker http2
+                               apache-mpm-worker 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
+PLIST_VARS+=           http2 lua privileges suexec xml
 
 .if !empty(PKG_OPTIONS:Mapache-mpm-event)
 MPMS+=                 event
@@ -105,6 +105,17 @@
 PLIST.privileges=      yes
 .endif
 
+.if !empty(PKG_OPTIONS:Mxml)
+.include "../../textproc/libxml2/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-libxml2=${BUILDLINK_PREFIX.libxml2}
+CONFIGURE_ARGS+=       --enable-proxy-html
+CONFIGURE_ARGS+=       --enable-xml2enc
+PLIST.xml=             yes
+.else
+CONFIGURE_ARGS+=       --disable-proxy-html
+CONFIGURE_ARGS+=       --disable-xml2enc
+.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