Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2013 20:31:42 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r318907 - in head/net: . ranch
Message-ID:  <201305232031.r4NKVgef069272@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk>
+
+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 <bsd.port.mk>

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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305232031.r4NKVgef069272>