Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 22:44:25 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r301628 - in head/net: . libutp libutp/files
Message-ID:  <201207272244.q6RMiPcB054777@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mi
Date: Fri Jul 27 22:44:24 2012
New Revision: 301628
URL: http://svn.freebsd.org/changeset/ports/301628

Log:
  Add port of libutp -- a TCP-like networking API using UDP-transport.

Added:
  head/net/libutp/
  head/net/libutp/Makefile   (contents, props changed)
  head/net/libutp/distinfo   (contents, props changed)
  head/net/libutp/files/
  head/net/libutp/files/BSDmakefile   (contents, props changed)
  head/net/libutp/files/patch-utypes   (contents, props changed)
  head/net/libutp/pkg-descr   (contents, props changed)
  head/net/libutp/pkg-plist   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Fri Jul 27 22:25:14 2012	(r301627)
+++ head/net/Makefile	Fri Jul 27 22:44:24 2012	(r301628)
@@ -347,6 +347,7 @@
     SUBDIR += libtnl
     SUBDIR += libtrace
     SUBDIR += libunp
+    SUBDIR += libutp
     SUBDIR += libvncserver
     SUBDIR += liferea
     SUBDIR += linc

Added: head/net/libutp/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libutp/Makefile	Fri Jul 27 22:44:24 2012	(r301628)
@@ -0,0 +1,31 @@
+# New ports collection makefile for: libutp
+# Date created: July 26, 2012
+# Whom:		Mikhail Teterin <mi@aldan.algebra.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME=	bittorrent-libutp
+PORTVERSION=	0.20120526
+DISTVERSION=	d4685a3
+CATEGORIES=	net devel
+MASTER_SITES=	https://github.com/bittorrent/libutp/tarball/${DISTVERSION}/
+
+MAINTAINER=	mi@aldan.algebra.com
+COMMENT=	The uTorrent Transport Protocol library
+
+LICENSE=	MIT
+
+USE_DOS2UNIX=	yes
+MAKEFILE=	${FILESDIR}/BSDmakefile
+MAKE_JOBS_SAFE=	yes
+USE_LDCONFIG=	yes
+# GitHub will issue a 302 redirect, no way around that, so we
+# have to allow fetch(1) to follow the redirect, which is normally
+# prevented by the -A flag:
+FETCH_ARGS=	-Fpr
+
+pre-su-install:
+	${MKDIR} ${PREFIX}/include/libutp
+
+.include <bsd.port.mk>

Added: head/net/libutp/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libutp/distinfo	Fri Jul 27 22:44:24 2012	(r301628)
@@ -0,0 +1,2 @@
+SHA256 (bittorrent-libutp-d4685a3.tar.gz) = 0b4096d3a03cd171743a6f1db37e4cb1d6c8ef27bbebbc21a3eb9ee93c37b37f
+SIZE (bittorrent-libutp-d4685a3.tar.gz) = 70654

Added: head/net/libutp/files/BSDmakefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libutp/files/BSDmakefile	Fri Jul 27 22:44:24 2012	(r301628)
@@ -0,0 +1,13 @@
+LIB=	utp
+SHLIB_MAJOR=	0
+SRCS=	utp.cpp utp_utils.cpp
+
+CXXFLAGS+=	-fno-exceptions -fno-rtti
+CXXFLAGS+=	-I${.CURDIR} -I${.CURDIR}/utp_config_lib -DPOSIX
+CXXFLAGS+=	-Wall
+
+INCLUDEDIR=	${PREFIX}/include/libutp
+LIBDIR= 	${PREFIX}/lib
+INCS=  		utp.h utp_utils.h utypes.h
+
+.include <bsd.lib.mk>

Added: head/net/libutp/files/patch-utypes
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libutp/files/patch-utypes	Fri Jul 27 22:44:24 2012	(r301628)
@@ -0,0 +1,34 @@
+--- utypes.h	2012-05-26 22:02:05.000000000 -0400
++++ utypes.h	2012-07-26 17:21:44.000000000 -0400
+@@ -2,13 +2,15 @@
+ #define __UTYPES_H__
+ 
++#include <stdint.h>
++
+ // standard types
+-typedef unsigned char byte;
+-typedef unsigned char uint8;
+-typedef signed char int8;
+-typedef unsigned short uint16;
+-typedef signed short int16;
++typedef uint8_t byte;
++typedef uint8_t uint8;
++typedef int8_t int8;
++typedef uint16_t uint16;
++typedef int16_t	int16;
+ typedef unsigned int uint;
+-typedef unsigned int uint32;
+-typedef signed int int32;
++typedef uint32_t uint32;
++typedef int32_t int32;
+ 
+ #ifdef _MSC_VER
+@@ -16,6 +18,6 @@
+ typedef signed __int64 int64;
+ #else
+-typedef unsigned long long uint64;
+-typedef long long int64;
++typedef uint64_t uint64;
++typedef int64_t int64;
+ #endif
+ 

Added: head/net/libutp/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libutp/pkg-descr	Fri Jul 27 22:44:24 2012	(r301628)
@@ -0,0 +1,12 @@
+# libutp - The uTorrent Transport Protocol library.
+Copyright (c) 2010 BitTorrent, Inc.
+
+uTP provides provides reliable, ordered delivery while maintaining
+minimum extra delay. It is implemented on top of UDP to be
+cross-platform and functional today. As a result, uTP is the primary
+transport for uTorrent peer-to-peer connections.
+
+uTP is written in C++, but the external interface is strictly C
+(ANSI C89).
+
+WWW:	https://github.com/bittorrent/libutp

Added: head/net/libutp/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libutp/pkg-plist	Fri Jul 27 22:44:24 2012	(r301628)
@@ -0,0 +1,7 @@
+lib/libutp.so.0
+lib/libutp.so
+lib/libutp.a
+include/libutp/utp.h
+include/libutp/utp_utils.h
+include/libutp/utypes.h
+@dirrm include/libutp



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