[Midnightbsd-cvs] mports [20548] trunk/www: add nghttp2 and spdyplay

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Oct 29 07:20:41 EDT 2015


Revision: 20548
          http://svnweb.midnightbsd.org/mports/?rev=20548
Author:   laffer1
Date:     2015-10-29 07:20:40 -0400 (Thu, 29 Oct 2015)
Log Message:
-----------
add nghttp2 and spdyplay

Modified Paths:
--------------
    trunk/www/Makefile

Added Paths:
-----------
    trunk/www/nghttp2/
    trunk/www/nghttp2/Makefile
    trunk/www/nghttp2/distinfo
    trunk/www/nghttp2/pkg-descr
    trunk/www/nghttp2/pkg-plist
    trunk/www/spdylay/
    trunk/www/spdylay/Makefile
    trunk/www/spdylay/distinfo
    trunk/www/spdylay/pkg-descr
    trunk/www/spdylay/pkg-plist

Modified: trunk/www/Makefile
===================================================================
--- trunk/www/Makefile	2015-10-29 01:41:26 UTC (rev 20547)
+++ trunk/www/Makefile	2015-10-29 11:20:40 UTC (rev 20548)
@@ -52,6 +52,7 @@
 SUBDIR += moinmoin
 SUBDIR += nanoblogger
 SUBDIR += neon
+SUBDIR += nghttp2
 SUBDIR += nginx
 SUBDIR += npm
 SUBDIR += node
@@ -98,6 +99,7 @@
 SUBDIR += serf
 SUBDIR += selfhtml-de
 SUBDIR += spawn-fcgi
+SUBDIR += spdylay
 SUBDIR += squid
 SUBDIR += thttpd
 SUBDIR += tidy

Added: trunk/www/nghttp2/Makefile
===================================================================
--- trunk/www/nghttp2/Makefile	                        (rev 0)
+++ trunk/www/nghttp2/Makefile	2015-10-29 11:20:40 UTC (rev 20548)
@@ -0,0 +1,66 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD: head/www/nghttp2/Makefile 394075 2015-08-13 17:31:14Z sunpoet $
+# $MidnightBSD$
+
+PORTNAME=	nghttp2
+PORTVERSION=	1.2.0
+CATEGORIES=	www net
+MASTER_SITES=	https://github.com/tatsuhiro-t/${PORTNAME}/releases/download/v${PORTVERSION}/ \
+		FREEBSD_LOCAL/sunpoet
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	HTTP/2.0 C Library
+
+LICENSE=	mit
+
+BUILD_DEPENDS=	libev>=4.15:${PORTSDIR}/devel/libev \
+		libevent2>=2.0.8:${PORTSDIR}/devel/libevent2 \
+		spdylay>=1.3.0:${PORTSDIR}/www/spdylay
+LIB_DEPENDS=	libev.so:${PORTSDIR}/devel/libev \
+		libevent_openssl.so:${PORTSDIR}/devel/libevent2 \
+		libspdylay.so:${PORTSDIR}/www/spdylay
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+
+OPTIONS_DEFINE=	ASIO DOCS HPACK
+OPTIONS_DEFAULT=HPACK
+OPTIONS_SUB=	yes
+
+CONFIGURE_ARGS=	--disable-python-bindings \
+		--enable-app \
+		--enable-examples \
+		--with-spdylay
+CONFIGURE_ENV=	LIBEV_CFLAGS="-I${LOCALBASE}/include" \
+		LIBEV_LIBS="-L${LOCALBASE}/lib -lev" \
+		OPENSSL_CFLAGS="-I${OPENSSLINC}" \
+		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
+		ZLIB_CFLAGS="-I${INCLUDEDIR}" \
+		ZLIB_LIBS="-L${LIBDIR} -lz"
+CPPFLAGS+=	-I${LOCALBASE}/include
+GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
+LIBS+=		-L${LOCALBASE}/lib -lev
+USE_CXXSTD=	c++11
+USE_GNOME=	libxml2
+USE_LDCONFIG=	yes
+USE_OPENSSL=	yes
+USES=		compiler:c++11-lib gmake libtool pathfix pkgconfig tar:xz
+
+PORTDATA=	fetch-ocsp-response
+PORTDOCS=	*
+
+ASIO_BUILD_DEPENDS=	boost-libs>=1.54.0:${PORTSDIR}/devel/boost-libs
+ASIO_CONFIGURE_OFF=	--with-boost=no
+ASIO_CONFIGURE_ON=	--enable-asio-lib --with-boost=${LOCALBASE} --with-boost-asio --with-boost-system --with-boost-thread
+ASIO_LIB_DEPENDS=	libboost_thread.so:${PORTSDIR}/devel/boost-libs
+ASIO_RUN_DEPENDS=	boost-libs>=1.54.0:${PORTSDIR}/devel/boost-libs
+HPACK_CONFIGURE_ENABLE=	hpack-tools
+HPACK_LIB_DEPENDS=	libjansson.so:${PORTSDIR}/devel/jansson
+
+.include <bsd.port.pre.mk>
+
+CPPFLAGS+=	-D_GLIBCXX_USE_C99
+
+post-patch:
+	@${REINPLACE_CMD} -e '/JEMALLOC_LIBS/ s|-ljemalloc||' ${WRKSRC}/configure
+
+.include <bsd.port.post.mk>


Property changes on: trunk/www/nghttp2/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/www/nghttp2/distinfo
===================================================================
--- trunk/www/nghttp2/distinfo	                        (rev 0)
+++ trunk/www/nghttp2/distinfo	2015-10-29 11:20:40 UTC (rev 20548)
@@ -0,0 +1,2 @@
+SHA256 (nghttp2-1.2.0.tar.xz) = 9e4a419c835b6cfa08ff9743f823638d32d8516aa3abfc86598272d173bc558f
+SIZE (nghttp2-1.2.0.tar.xz) = 937040


Property changes on: trunk/www/nghttp2/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/www/nghttp2/pkg-descr
===================================================================
--- trunk/www/nghttp2/pkg-descr	                        (rev 0)
+++ trunk/www/nghttp2/pkg-descr	2015-10-29 11:20:40 UTC (rev 20548)
@@ -0,0 +1,6 @@
+nghttp2 - HTTP/2.0 C Library
+
+This is an experimental implementation of Hypertext Transfer Protocol version
+2.0.
+
+WWW: https://nghttp2.org/


Property changes on: trunk/www/nghttp2/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/www/nghttp2/pkg-plist
===================================================================
--- trunk/www/nghttp2/pkg-plist	                        (rev 0)
+++ trunk/www/nghttp2/pkg-plist	2015-10-29 11:20:40 UTC (rev 20548)
@@ -0,0 +1,25 @@
+%%HPACK%%bin/deflatehd
+bin/h2load
+%%HPACK%%bin/inflatehd
+bin/nghttp
+bin/nghttpd
+bin/nghttpx
+%%ASIO%%include/nghttp2/asio_http2.h
+%%ASIO%%include/nghttp2/asio_http2_client.h
+%%ASIO%%include/nghttp2/asio_http2_server.h
+include/nghttp2/nghttp2.h
+include/nghttp2/nghttp2ver.h
+lib/libnghttp2.a
+lib/libnghttp2.so
+lib/libnghttp2.so.14
+lib/libnghttp2.so.14.0.7
+%%ASIO%%lib/libnghttp2_asio.a
+%%ASIO%%lib/libnghttp2_asio.so
+%%ASIO%%lib/libnghttp2_asio.so.1
+%%ASIO%%lib/libnghttp2_asio.so.1.0.0
+libdata/pkgconfig/libnghttp2.pc
+%%ASIO%%libdata/pkgconfig/libnghttp2_asio.pc
+man/man1/h2load.1.gz
+man/man1/nghttp.1.gz
+man/man1/nghttpd.1.gz
+man/man1/nghttpx.1.gz


Property changes on: trunk/www/nghttp2/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/www/spdylay/Makefile
===================================================================
--- trunk/www/spdylay/Makefile	                        (rev 0)
+++ trunk/www/spdylay/Makefile	2015-10-29 11:20:40 UTC (rev 20548)
@@ -0,0 +1,49 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD: head/www/spdylay/Makefile 381872 2015-03-21 22:00:20Z sunpoet $
+# $MidnightBSD$
+
+PORTNAME=	spdylay
+PORTVERSION=	1.3.2
+CATEGORIES=	www net
+MASTER_SITES=	https://github.com/tatsuhiro-t/${PORTNAME}/releases/download/v${PORTVERSION}/ \
+		LOCAL/sunpoet
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	SPDY protocol version 2, 3 and 3.1 implementation in C
+
+LICENSE=	mit
+
+BUILD_DEPENDS=	libevent2>=2.0.8:${PORTSDIR}/devel/libevent2
+LIB_DEPENDS=	libevent_openssl.so:${PORTSDIR}/devel/libevent2
+RUN_DEPENDS=	libevent2>=2.0.8:${PORTSDIR}/devel/libevent2
+
+CONFIGURE_ARGS=	--enable-examples \
+		--enable-src
+CONFIGURE_ENV=	OPENSSL_CFLAGS="-I${OPENSSLINC}" \
+		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
+		ZLIB_CFLAGS="-I${INCLUDEDIR}" \
+		ZLIB_LIBS="-L${LIBDIR} -lz"
+GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
+USE_CXXSTD=	c++11
+USE_GNOME=	libxml2
+USE_LDCONFIG=	yes
+USE_OPENSSL=	yes
+USES=		compiler:c++11-lang libtool pathfix pkgconfig tar:xz
+
+PORTDOCS=	*
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 8000 || !defined(WITH_OPENSSL_PORT)
+IGNORE=		spdylay requires OpenSSL 1.0.1+
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|^Requires.private: zlib$$|Libs.private: -L${LIBDIR} -lz|' ${WRKSRC}/lib/libspdylay.pc.in
+
+post-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/examples/spdycli ${PREFIX}/bin/
+	${INSTALL_DATA} ${WRKSRC}/shrpx.conf.sample ${PREFIX}/etc/
+
+.include <bsd.port.post.mk>


Property changes on: trunk/www/spdylay/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/www/spdylay/distinfo
===================================================================
--- trunk/www/spdylay/distinfo	                        (rev 0)
+++ trunk/www/spdylay/distinfo	2015-10-29 11:20:40 UTC (rev 20548)
@@ -0,0 +1,2 @@
+SHA256 (spdylay-1.3.2.tar.xz) = e2c954466aae4e7cbc5e2f8ff559d05236a6b237ade19f88161f920fd7765440
+SIZE (spdylay-1.3.2.tar.xz) = 660900


Property changes on: trunk/www/spdylay/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/www/spdylay/pkg-descr
===================================================================
--- trunk/www/spdylay/pkg-descr	                        (rev 0)
+++ trunk/www/spdylay/pkg-descr	2015-10-29 11:20:40 UTC (rev 20548)
@@ -0,0 +1,14 @@
+Spdylay - SPDY C Library
+
+This is an experimental implementation of Google's SPDY protocol in C. This
+library provides SPDY version 2, 3 and 3.1 framing layer implementation. It does
+not perform any I/O operations. When the library needs them, it calls the
+callback functions provided by the application. It also does not include any
+event polling mechanism, so the application can freely choose the way of
+handling events. This library code does not depend on any particular SSL library
+(except for example programs which depend on OpenSSL 1.0.1 or later).
+
+This project also develops SPDY client, server and proxy on top of Spdylay
+library.
+
+WWW: http://tatsuhiro-t.github.io/spdylay/


Property changes on: trunk/www/spdylay/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/www/spdylay/pkg-plist
===================================================================
--- trunk/www/spdylay/pkg-plist	                        (rev 0)
+++ trunk/www/spdylay/pkg-plist	2015-10-29 11:20:40 UTC (rev 20548)
@@ -0,0 +1,12 @@
+bin/shrpx
+bin/spdycat
+bin/spdycli
+bin/spdyd
+etc/shrpx.conf.sample
+include/spdylay/spdylay.h
+include/spdylay/spdylayver.h
+lib/libspdylay.a
+lib/libspdylay.so
+lib/libspdylay.so.7
+lib/libspdylay.so.7.2.0
+libdata/pkgconfig/libspdylay.pc


Property changes on: trunk/www/spdylay/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list