From owner-svn-ports-head@FreeBSD.ORG Thu May 23 20:31:43 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9CC09C49; Thu, 23 May 2013 20:31:43 +0000 (UTC) (envelope-from olgeni@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 8EF66F07; Thu, 23 May 2013 20:31:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4NKVhno069280; Thu, 23 May 2013 20:31:43 GMT (envelope-from olgeni@svn.freebsd.org) Received: (from olgeni@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4NKVgef069272; Thu, 23 May 2013 20:31:42 GMT (envelope-from olgeni@svn.freebsd.org) Message-Id: <201305232031.r4NKVgef069272@svn.freebsd.org> From: Jimmy Olgeni Date: Thu, 23 May 2013 20:31:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r318907 - in head/net: . ranch X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 May 2013 20:31:43 -0000 Author: olgeni Date: Thu May 23 20:31:42 2013 New Revision: 318907 URL: http://svnweb.freebsd.org/changeset/ports/318907 Log: Add net/ranch, an Erlang library to accept TCP connections with a small code base and low latency. Added: head/net/ranch/ head/net/ranch/Makefile (contents, props changed) head/net/ranch/distinfo (contents, props changed) head/net/ranch/pkg-descr (contents, props changed) head/net/ranch/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Thu May 23 20:27:36 2013 (r318906) +++ head/net/Makefile Thu May 23 20:31:42 2013 (r318907) @@ -974,6 +974,7 @@ SUBDIR += radsecproxy SUBDIR += radvd SUBDIR += raggle + SUBDIR += ranch SUBDIR += rdesktop SUBDIR += rdist6 SUBDIR += recvnet Added: head/net/ranch/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ranch/Makefile Thu May 23 20:31:42 2013 (r318907) @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= ranch +PORTVERSION= 0.8.3 +CATEGORIES= net +MASTER_SITES= GH + +MAINTAINER= olgeni@FreeBSD.org +COMMENT= Erlang socket acceptor pool for TCP protocols + +BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang +RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang + +PLIST_SUB= VERSION="${PORTVERSION}" + +USE_GMAKE= yes +USE_GITHUB= yes +GH_ACCOUNT= extend +GH_PROJECT= ranch +GH_COMMIT= 53be20d +GH_TAGNAME= ${PORTVERSION} + +PORTDOCS= * + +.include + +do-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/guide/* ${DOCSDIR} +.endif +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR} +.endif + @${MKDIR} ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION} + @${MKDIR} ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION}/ebin + @${MKDIR} ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION}/src + ${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION}/ebin + ${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION}/src + +.include Added: head/net/ranch/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ranch/distinfo Thu May 23 20:31:42 2013 (r318907) @@ -0,0 +1,2 @@ +SHA256 (ranch-0.8.3.tar.gz) = e1ad2b4ce1ae0dddb6bb986f26011a97118bef126c7b7383078bdac3f61d3b49 +SIZE (ranch-0.8.3.tar.gz) = 28272 Added: head/net/ranch/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ranch/pkg-descr Thu May 23 20:31:42 2013 (r318907) @@ -0,0 +1,14 @@ +Ranch aims to provide everything you need to accept TCP connections +with a small code base and low latency while being easy to use +directly as an application or to embed into your own. + +Ranch provides a modular design, letting you choose which transport +and protocol are going to be used for a particular listener. Listeners +accept and manage connections on one port, and include facilities to +limit the number of concurrent connections. Connections are sorted +into pools, each pool having a different configurable limit. + +Ranch also allows you to upgrade the acceptor pool without having to +close any of the currently opened sockets. + +WWW: https://github.com/extend/ranch Added: head/net/ranch/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ranch/pkg-plist Thu May 23 20:31:42 2013 (r318907) @@ -0,0 +1,40 @@ +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch.app +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_acceptor.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_acceptors_sup.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_app.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_conns_sup.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_listener_sup.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_protocol.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_server.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_ssl.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_sup.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_tcp.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin/ranch_transport.beam +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch.app.src +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_acceptor.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_acceptors_sup.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_app.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_conns_sup.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_listener_sup.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_protocol.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_server.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_ssl.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_sup.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_tcp.erl +%%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src/ranch_transport.erl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp_echo/README.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp_echo/rebar.config +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp_echo/src/echo_protocol.erl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp_echo/src/tcp_echo.app.src +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp_echo/src/tcp_echo.erl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp_echo/src/tcp_echo_app.erl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp_echo/src/tcp_echo_sup.erl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp_echo/start.sh +@dirrm %%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/src +@dirrm %%LIB32DIR%%/erlang/lib/ranch-%%VERSION%%/ebin +@dirrm %%LIB32DIR%%/erlang/lib/ranch-%%VERSION%% +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/tcp_echo/src +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/tcp_echo +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%