svn commit: r467406 - in head/www/mod_http2-devel: . files
Bernard Spil
brnrd at FreeBSD.org
Sun Apr 15 19:20:35 UTC 2018
Author: brnrd
Date: Sun Apr 15 19:20:34 2018
New Revision: 467406
URL: https://svnweb.freebsd.org/changeset/ports/467406
Log:
www/mod_http2-devel: Move to modules.d
- Unbreak build
- Use pkg-plist
- Add modules.d config files
Added:
head/www/mod_http2-devel/files/
head/www/mod_http2-devel/files/200_mod_http2.conf.in (contents, props changed)
head/www/mod_http2-devel/files/300_mod_proxy_http2.conf.in (contents, props changed)
head/www/mod_http2-devel/pkg-plist (contents, props changed)
Modified:
head/www/mod_http2-devel/Makefile
Modified: head/www/mod_http2-devel/Makefile
==============================================================================
--- head/www/mod_http2-devel/Makefile Sun Apr 15 19:12:25 2018 (r467405)
+++ head/www/mod_http2-devel/Makefile Sun Apr 15 19:20:34 2018 (r467406)
@@ -30,10 +30,13 @@ CFLAGS+= -I${LOCALBASE}/include
SUB_FILES= 200_mod_http2.conf 300_mod_proxy_http2.conf
PORTDOCS= README README.md
-PLIST_FILES= ${APACHEMODDIR}/mod_h2.so \
- ${APACHEMODDIR}/mod_proxy_h2.so
post-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
+ ${INSTALL_DATA} ${WRKDIR}/200_mod_http2.conf \
+ ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d/200_mod_h2.conf.sample
+ ${INSTALL_DATA} ${WRKDIR}/300_mod_proxy_http2.conf \
+ ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d/300_mod_proxy_h2.conf.sample
# Rename mod_http2 to mod_h2 to avoid conflict with Apache24
${MV} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_http2.so.0.0.0 \
${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so
Added: head/www/mod_http2-devel/files/200_mod_http2.conf.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/mod_http2-devel/files/200_mod_http2.conf.in Sun Apr 15 19:20:34 2018 (r467406)
@@ -0,0 +1,8 @@
+# To enable, uncomment the LoadModule line
+
+# LoadModule md_module %%APACHE_MODDIR%%/mod_h2.so
+
+<IfModule http2_module>
+Protocols h2 http/1.1
+ProtocolsHonorOrder On
+</IfModule>
Added: head/www/mod_http2-devel/files/300_mod_proxy_http2.conf.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/mod_http2-devel/files/300_mod_proxy_http2.conf.in Sun Apr 15 19:20:34 2018 (r467406)
@@ -0,0 +1,8 @@
+# To enable, uncomment the LoadModule line
+
+# LoadModule md_module %%APACHE_MODDIR%%/mod_proxy_h2.so
+
+<IfModule proxy_http2_module>
+# ProxyPass "/app" "h2://app.example.com"
+# ProxyPassReverse "/app" "https://app.example.com"
+</IfModule>
Added: head/www/mod_http2-devel/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/mod_http2-devel/pkg-plist Sun Apr 15 19:20:34 2018 (r467406)
@@ -0,0 +1,6 @@
+ at sample %%APACHEETCDIR%%/modules.d/200_mod_h2.conf.sample
+ at sample %%APACHEETCDIR%%/modules.d/300_mod_proxy_h2.conf.sample
+%%APACHEMODDIR%%/mod_h2.so
+%%APACHEMODDIR%%/mod_proxy_h2.so
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README.md
More information about the svn-ports-all
mailing list