Skip to content

Commit

Permalink
apache24: Make xml support optional, defaulting to on.
Browse files Browse the repository at this point in the history
Allows mod_proxy_html to be supported again.  Based on a pull request from
vec4f in TritonDataCenter#169.
  • Loading branch information
jperkin committed Apr 5, 2019
1 parent 4c8b865 commit 9f82563
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
5 changes: 2 additions & 3 deletions www/apache24/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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/
Expand Down Expand Up @@ -52,8 +53,6 @@ BUILDLINK_API_DEPENDS.apr-util+= apr-util>=1.5.3
.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
Expand Down
4 changes: 3 additions & 1 deletion www/apache24/PLIST
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -150,6 +150,7 @@ lib/httpd/mod_proxy_fcgi.so
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
Expand Down Expand Up @@ -184,6 +185,7 @@ lib/httpd/mod_usertrack.so
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
Expand Down
19 changes: 15 additions & 4 deletions www/apache24/options.mk
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
PLIST_VARS+= http2 lua privileges suexec xml

.if !empty(PKG_OPTIONS:Mapache-mpm-event)
MPMS+= event
Expand Down Expand Up @@ -105,6 +105,17 @@ CONFIGURE_ARGS+= --enable-privileges
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
Expand Down

0 comments on commit 9f82563

Please sign in to comment.