svn commit: r331414 - in head/www: . spdylay
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Oct 23 19:10:39 UTC 2013
Author: sunpoet
Date: Wed Oct 23 19:10:37 2013
New Revision: 331414
URL: http://svnweb.freebsd.org/changeset/ports/331414
Log:
- Add spdylay 1.1.0
Spdylay - SPDY C Library
This is an experimental implementation of Google's SPDY protocol in C. This
library provides SPDY version 2 and 3 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://spdylay.sourceforge.net/
Added:
head/www/spdylay/
head/www/spdylay/Makefile (contents, props changed)
head/www/spdylay/distinfo (contents, props changed)
head/www/spdylay/pkg-descr (contents, props changed)
head/www/spdylay/pkg-plist (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Wed Oct 23 19:09:17 2013 (r331413)
+++ head/www/Makefile Wed Oct 23 19:10:37 2013 (r331414)
@@ -1868,6 +1868,7 @@
SUBDIR += snarf
SUBDIR += snownews
SUBDIR += spawn-fcgi
+ SUBDIR += spdylay
SUBDIR += speedtest-mini
SUBDIR += spreadlogd
SUBDIR += sqstat
Added: head/www/spdylay/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/spdylay/Makefile Wed Oct 23 19:10:37 2013 (r331414)
@@ -0,0 +1,60 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= spdylay
+PORTVERSION= 1.1.0
+CATEGORIES= www net
+MASTER_SITES= SF/${PORTNAME}/stable/${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= SPDY protocol version 2 and 3 implementation in C
+
+LICENSE= MIT
+
+OPTIONS_DEFINE= SHRPX
+OPTIONS_SUB= yes
+SHRPX_DESC= Build shrpx (HTTP reverse proxy), requires OpenSSL 1.0.1+
+
+CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
+ OPENSSL_LIBS="-L${OPENSSLLIB} -lssl" \
+ ZLIB_CFLAGS="-I${INCLUDEDIR}" \
+ ZLIB_LIBS="-L${LIBDIR} -lz"
+GNU_CONFIGURE= yes
+USE_CXXSTD= c++11
+USE_GNOME= libxml2
+USE_LDCONFIG= yes
+USE_OPENSSL= yes
+USE_XZ= yes
+USES= compiler:c++11-lang pathfix pkgconfig
+
+PORTDOCS= README.rst
+
+.include <bsd.port.pre.mk>
+
+# Only build shrpx on FreeBSD 10 and above
+.if ${PORT_OPTIONS:MSHRPX} && ${OSVERSION} < 1000000 && !defined(WITH_OPENSSL_PORT)
+IGNORE= shrpx requires libevent_openssl.so (devel/libevent2) built with OpenSSL 1.0.1+
+.endif
+
+# spdylay requires OpenSSL 1.0.1+
+.if ${OSVERSION} < 1000000
+WITH_OPENSSL_PORT= yes
+.endif
+
+.if ${PORT_OPTIONS:MSHRPX}
+LIB_DEPENDS+= libevent_openssl.so:${PORTSDIR}/devel/libevent2
+CONFIGURE_ARGS+=--enable-examples
+CONFIGURE_ENV+= LIBEVENT_OPENSSL_CFLAGS="-I${LOCALBASE}" \
+ LIBEVENT_OPENSSL_LIBS="-L${LOCALBASE}/lib/event2 -levent_openssl"
+.endif
+
+post-build:
+ @${STRIP_CMD} ${WRKSRC}/lib/.libs/libspdylay.so.6
+
+post-install:
+ @${INSTALL_SCRIPT} ${WRKSRC}/examples/spdycli ${STAGEDIR}${PREFIX}/bin/
+.if ${PORT_OPTIONS:MSHRPX}
+ @${INSTALL_DATA} ${WRKSRC}/shrpx.conf.sample ${STAGEDIR}${PREFIX}/etc/
+.endif
+
+.include <bsd.port.post.mk>
Added: head/www/spdylay/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/spdylay/distinfo Wed Oct 23 19:10:37 2013 (r331414)
@@ -0,0 +1,2 @@
+SHA256 (spdylay-1.1.0.tar.xz) = f6382926fc42031bc01b9402be606356430ec122db0ff9bbeac895cc84085ec7
+SIZE (spdylay-1.1.0.tar.xz) = 411900
Added: head/www/spdylay/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/spdylay/pkg-descr Wed Oct 23 19:10:37 2013 (r331414)
@@ -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 and 3 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://spdylay.sourceforge.net/
Added: head/www/spdylay/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/spdylay/pkg-plist Wed Oct 23 19:10:37 2013 (r331414)
@@ -0,0 +1,13 @@
+%%SHRPX%%bin/shrpx
+bin/spdycat
+bin/spdycli
+bin/spdyd
+%%SHRPX%%etc/shrpx.conf.sample
+include/spdylay/spdylay.h
+include/spdylay/spdylayver.h
+lib/libspdylay.a
+lib/libspdylay.la
+lib/libspdylay.so
+lib/libspdylay.so.6
+libdata/pkgconfig/libspdylay.pc
+ at dirrm include/spdylay
More information about the svn-ports-all
mailing list