aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-12-17 10:43:58 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-12-17 10:43:58 +0000
commit9786cfe4aea4b6eeb8bfc7ddf209af6aa045230d (patch)
tree5d247f2d48e725d62bbe7fd95916f4e994acb2ac /www
parent2e9b65139ca889fe24bc5c612014ab8b6687c7ba (diff)
downloadports-9786cfe4aea4b6eeb8bfc7ddf209af6aa045230d.tar.gz
ports-9786cfe4aea4b6eeb8bfc7ddf209af6aa045230d.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/nghttp2/Makefile18
-rw-r--r--www/nghttp2/pkg-descr8
2 files changed, 18 insertions, 8 deletions
diff --git a/www/nghttp2/Makefile b/www/nghttp2/Makefile
index cda22490fe02..b89547ce2800 100644
--- a/www/nghttp2/Makefile
+++ b/www/nghttp2/Makefile
@@ -4,6 +4,7 @@
PORTNAME= nghttp2
PORTVERSION= 1.17.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= www net
MAINTAINER= sunpoet@FreeBSD.org
@@ -12,15 +13,14 @@ COMMENT= HTTP/2.0 C Library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
-OPTIONS_DEFINE= APP ASIO DOCS HPACK SPDY
+OPTIONS_DEFINE= APP ASIO DOCS EXAMPLES HPACK SPDY
OPTIONS_DEFAULT=APP HPACK SPDY
OPTIONS_SUB= yes
APP_DESC= Build h2load, nghttp, nghttpd and nghttpx
SPDY_DESC= Enable SPDY in h2load and nghttpx
SPDY_IMPLIES= APP
-CONFIGURE_ARGS= --disable-python-bindings \
- --disable-examples
+CONFIGURE_ARGS= --disable-python-bindings
CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
ZLIB_CFLAGS="-I${INCLUDEDIR}" \
@@ -34,19 +34,22 @@ USES= autoreconf compiler:c++11-lib gmake libtool localbase pathfix pkgconfig s
PORTDATA= fetch-ocsp-response
PORTDOCS= *
+PORTEXAMPLES= *
USE_GITHUB= yes
APP_BUILD_DEPENDS= libev>=4.11:devel/libev
-APP_CONFIGURE_OFF= --without-libxml2
APP_CONFIGURE_ENABLE= app
+APP_CONFIGURE_OFF= --without-libxml2
APP_LIB_DEPENDS= libev.so:devel/libev
APP_USE= GNOME=libxml2
+APP_USES= gnome
ASIO_BUILD_DEPENDS= boost-libs>=1.54.0:devel/boost-libs
ASIO_CONFIGURE_OFF= --with-boost=no
ASIO_CONFIGURE_ON= --enable-asio-lib --with-boost-asio --with-boost-system --with-boost-thread
ASIO_LIB_DEPENDS= libboost_thread.so:devel/boost-libs
ASIO_RUN_DEPENDS= boost-libs>=1.54.0:devel/boost-libs
+EXAMPLES_CONFIGURE_ENABLE= examples
HPACK_BUILD_DEPENDS= jansson>=2.5:devel/jansson
HPACK_CONFIGURE_ENABLE= hpack-tools
HPACK_LIB_DEPENDS= libjansson.so:devel/jansson
@@ -72,7 +75,12 @@ CONFIGURE_ARGS+=--with-jemalloc
.endif
post-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/etc/nghttpx
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/nghttpx/
${INSTALL_DATA} ${FILESDIR}/nghttpx.conf.sample ${STAGEDIR}${PREFIX}/etc/nghttpx/nghttpx.conf.sample
+post-install-examples-on:
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.c* ${STAGEDIR}${EXAMPLESDIR}/
+ ${INSTALL_PROGRAM} ${WRKSRC}/examples/.libs/* ${STAGEDIR}${EXAMPLESDIR}/
+
.include <bsd.port.post.mk>
diff --git a/www/nghttp2/pkg-descr b/www/nghttp2/pkg-descr
index 0f125f395e4d..eaa3e604e3ea 100644
--- a/www/nghttp2/pkg-descr
+++ b/www/nghttp2/pkg-descr
@@ -1,6 +1,8 @@
-nghttp2 - HTTP/2.0 C Library
+nghttp2 is an implementation of HTTP/2 and its header compression algorithm
+HPACK in C.
-This is an experimental implementation of Hypertext Transfer Protocol version
-2.0.
+The framing layer of HTTP/2 is implemented as a form of reusable C library. On
+top of that, we have implemented HTTP/2 client, server and proxy. We have also
+developed load test and benchmarking tool for HTTP/2 and SPDY.
WWW: https://nghttp2.org/