From owner-svn-ports-head@FreeBSD.ORG Fri Jul 27 22:44:25 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AFAA1106564A; Fri, 27 Jul 2012 22:44:25 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 905628FC08; Fri, 27 Jul 2012 22:44:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6RMiPT3054785; Fri, 27 Jul 2012 22:44:25 GMT (envelope-from mi@svn.freebsd.org) Received: (from mi@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6RMiPcB054777; Fri, 27 Jul 2012 22:44:25 GMT (envelope-from mi@svn.freebsd.org) Message-Id: <201207272244.q6RMiPcB054777@svn.freebsd.org> From: Mikhail Teterin Date: Fri, 27 Jul 2012 22:44:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r301628 - in head/net: . libutp libutp/files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 27 Jul 2012 22:44:25 -0000 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 +# +# $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 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 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 ++ + // 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