Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2014 11:15:05 GMT
From:      Fabian Keil <fk@fabiankeil.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187927: New port: security/obfsclient - Tor-managed pluggable transport client
Message-ID:  <201403251115.s2PBF5TI014271@cgiserv.freebsd.org>
Resent-Message-ID: <201403251120.s2PBK24c094644@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187927
>Category:       ports
>Synopsis:       New port: security/obfsclient - Tor-managed pluggable transport client
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 25 11:20:02 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Fabian Keil
>Release:        HEAD
>Organization:
>Environment:
FreeBSD r500.local 11.0-CURRENT FreeBSD 11.0-CURRENT #632 r262341+c524d9f(fk): Sun Feb 23 21:28:22 CET 2014     fk@r500.local:/usr/obj/usr/src/sys/ZOEY  amd64

>Description:
obfsclient is a C++11 Tor-managed pluggable transport client
implementation of the following protocols:

obfs2 - The Twobfuscator
obfs3 - The Threebfuscator
ScrambleSuit - Experimental

WWW: https://github.com/yawning/obfsclient

--
This port depends on devel/liballium which I submitted as ports/187926.

Note that I'm intentionally not using the still-optional LICENSE "framework"
in my ports until it's properly maintained, documented and the legal aspects are clear. Please do not add LICENSE* goo to this port without discussing it with me first. Thanks.

Redports build logs are available at (the two failures are Redports' issues):
https://redports.org/buildarchive/20140325101115-28920/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	security/obfsclient/
#	security/obfsclient/pkg-descr
#	security/obfsclient/Makefile
#	security/obfsclient/distinfo
#	security/obfsclient/pkg-plist
#
echo c - security/obfsclient/
mkdir -p security/obfsclient/ > /dev/null 2>&1
echo x - security/obfsclient/pkg-descr
sed 's/^X//' >security/obfsclient/pkg-descr << 'f304e1e55e9f089f03b418e547e29303'
Xobfsclient is a C++11 Tor-managed pluggable transport client
Ximplementation of the following protocols:
X
Xobfs2 - The Twobfuscator
Xobfs3 - The Threebfuscator
XScrambleSuit - Experimental
X
XWWW: https://github.com/yawning/obfsclient
f304e1e55e9f089f03b418e547e29303
echo x - security/obfsclient/Makefile
sed 's/^X//' >security/obfsclient/Makefile << '25dd3297e3181d82888073642b64840e'
X# Created by: Fabian Keil <fk@fabiankeil.de>
X# $FreeBSD$
X
XPORTNAME=	obfsclient
XPORTVERSION=	0.0.1
XCATEGORIES=	security
XDISTNAME=	g-${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-${GH_COMMIT}
X
XMAINTAINER=	fk@fabiankeil.de
XCOMMENT=	Tor-managed pluggable transport client
X
XLIB_DEPENDS=	liballium-1.0.so:${PORTSDIR}/devel/liballium \
X		libevent-2.0.so:${PORTSDIR}/devel/libevent2
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	Yawning
XGH_COMMIT=	d1fac69
XGH_TAGNAME=	${GH_COMMIT}
X
XHAS_CONFIGURE=	yes
XUSE_BZIP2=	yes
XUSES=		pkgconfig compiler:c++11-lib
XUSE_AUTOTOOLS=	autoconf aclocal automake libtool
XUSE_LDCONFIG=	yes
X
XPLIST_SUB+=	PKGNAME=${PKGNAME}
X
XCONFIGURE_ARGS+=	--prefix="${PREFIX}" \
X			--includedir=${LOCALBASE}/include \
X			--libdir=${LOCALBASE}/lib
X
XCFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 900000
X# This should no longer be necessary after the next obfsclient
X# release due to upstream commit 5ab2988bd.
XCXXFLAGS+=	-D__STDC_LIMIT_MACROS -D__LONG_LONG_SUPPORTED
X.endif
X
Xpre-configure:
X	@(cd ${WRKSRC} && ./autogen.sh)
X
Xpost-install:
X	@${MKDIR} ${STAGEDIR}/${PREFIX}/share/licenses/${PKGNAME}
X	${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${PREFIX}/share/licenses/${PKGNAME}
X
Xregression-test: build
X	(cd ${WRKSRC} && make check)
X
X.include <bsd.port.post.mk>
25dd3297e3181d82888073642b64840e
echo x - security/obfsclient/distinfo
sed 's/^X//' >security/obfsclient/distinfo << '5b237758ac3f132cf5142a76bf0d4627'
XSHA256 (g-Yawning-obfsclient-0.0.1-d1fac69.tar.bz2) = d0b66735f4cd0fbf6e7f3f684f410b2965ac41bf82fdc390bcf9f6b83fb2a682
XSIZE (g-Yawning-obfsclient-0.0.1-d1fac69.tar.bz2) = 372812
5b237758ac3f132cf5142a76bf0d4627
echo x - security/obfsclient/pkg-plist
sed 's/^X//' >security/obfsclient/pkg-plist << '5a364f93ede1fb068e2c80902bb47a46'
Xbin/obfsclient
Xshare/licenses/%%PKGNAME%%/COPYING
X@dirrmtry share/licenses/%%PKGNAME%%
5a364f93ede1fb068e2c80902bb47a46
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



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