Index: head/www/Makefile =================================================================== --- head/www/Makefile +++ head/www/Makefile @@ -468,6 +468,7 @@ SUBDIR += mod_flickr SUBDIR += mod_geoip2 SUBDIR += mod_gzip2 + SUBDIR += mod_http2-devel SUBDIR += mod_h264_streaming SUBDIR += mod_hosts_access SUBDIR += mod_jail Index: head/www/mod_http2-devel/Makefile =================================================================== --- head/www/mod_http2-devel/Makefile +++ head/www/mod_http2-devel/Makefile @@ -0,0 +1,40 @@ +# Created by: Bernard Spil +# $FreeBSD$ + +PORTNAME= mod_http2-devel +PORTVERSION= 1.2.7 +DISTVERSIONPREFIX= v +CATEGORIES= www + +MAINTAINER= brnrd@FreeBSD.org +COMMENT= Early experience HTTP/2 module for Apache httpd + +LICENSE= APACHE20 + +BUILD_DEPENDS= nghttp2>=1.2:${PORTSDIR}/www/nghttp2 +LIB_DEPENDS= libnghttp2.so:${PORTSDIR}/www/nghttp2 + +USE_GITHUB= yes +GH_ACCOUNT= icing +GH_PROJECT= mod_h2 + +USES= autoreconf libtool +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --program-prefix=ext- +CONFIGURE_ENV= CONFIG_SHELL=/bin/sh + +USE_APACHE= 24+ +MODULENAME= ${GH_PROJECT} + +CFLAGS+= -I${LOCALBASE}/include + +post-install: + # Rename mod_http2 to the mod_h2 to avoid conflict with Apache24 + ${MV} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_http2.so.0.0.0 \ + ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so + ${RM} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_http2.so + ${MV} ${STAGEDIR}${PORTDOCS}${PREFIX}/share/doc/mod_http2 \ + ${STAGEDIR}${PORTDOCS}${DOCSDIR} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so + +.include Index: head/www/mod_http2-devel/distinfo =================================================================== --- head/www/mod_http2-devel/distinfo +++ head/www/mod_http2-devel/distinfo @@ -0,0 +1,2 @@ +SHA256 (icing-mod_h2-v1.2.7_GH0.tar.gz) = 165b03a506be640584a297cdeb09b8c9355f9362910a9c7086f65cb583333c18 +SIZE (icing-mod_h2-v1.2.7_GH0.tar.gz) = 139292 Index: head/www/mod_http2-devel/pkg-descr =================================================================== --- head/www/mod_http2-devel/pkg-descr +++ head/www/mod_http2-devel/pkg-descr @@ -0,0 +1,4 @@ +This Apache module supports the "h2" (HTTP2 over TLS) and "h2c" (HTTP2 +over plain HTTP connections via Upgrade). You can enable it for the +whole server or for specific virtual hosts only. More on this below on +"Configuration". Index: head/www/mod_http2-devel/pkg-message =================================================================== --- head/www/mod_http2-devel/pkg-message +++ head/www/mod_http2-devel/pkg-message @@ -0,0 +1,14 @@ +If you want to have the h2 module enabled in your apache installation, +you need to add + + LoadModule http2_module modules/mod_h2.so + +somewhere in your config files and add a line like + + H2Engine on + +whereever you want the module to be active (general server of specific +virtual hosts). + +NB: The shared libraries were renamed from mod_http2 to mod_h2 to + avoid conflicts with the (now bundled) mod_http2 in www/apache24 Index: head/www/mod_http2-devel/pkg-plist =================================================================== --- head/www/mod_http2-devel/pkg-plist +++ head/www/mod_http2-devel/pkg-plist @@ -0,0 +1,2 @@ +%%APACHEMODDIR%%/%%AP_MODULE%% +%%PORTDOCS%%%%DOCSDIR%%/README