ports/182575: New port: net/shadowsocks-libev Lightweight tunnel proxy which can help you get through firewalls

Xiaoding Liu xiaoding+freebsd at xiaoding.org
Wed Oct 2 14:20:01 UTC 2013


>Number:         182575
>Category:       ports
>Synopsis:       New port: net/shadowsocks-libev Lightweight tunnel proxy which can help you get through firewalls
>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:   Wed Oct 02 14:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Xiaoding Liu
>Release:        
>Organization:
>Environment:
>Description:
Shadowsocks
A lightweight tunnel proxy which can help you get through firewalls

>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:
#
#	shadowsocks-libev
#	shadowsocks-libev/Makefile
#	shadowsocks-libev/distinfo
#	shadowsocks-libev/pkg-descr
#	shadowsocks-libev/files
#	shadowsocks-libev/files/shadowsocks_libev.in
#	shadowsocks-libev/pkg-plist
#
echo c - shadowsocks-libev
mkdir -p shadowsocks-libev > /dev/null 2>&1
echo x - shadowsocks-libev/Makefile
sed 's/^X//' >shadowsocks-libev/Makefile << '704c39eb254acc7e707ee8cfff8ae8aa'
X# Created by: Xiaoding Liu <xiaoding+freebsd at xiaoding.org>
X# $FreeBSD$
X
XPORTNAME=	shadowsocks-libev
XPORTVERSION=	1.3.2
XCATEGORIES=	net
X
XMAINTAINER=	xiaoding+freebsd at xiaoding.org
XCOMMENT=	Lightweight tunnel proxy which can help you get through firewalls
X
XLICENSE=	GPLv3
X
X# fetch from github repo
XGH_ACCOUNT=	madeye
XGH_PROJECT=	${PORTNAME}
XGH_TAGNAME=	v1.3.2
XMASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/${GH_TAGNAME}.tar.gz?dummy=/ 
X
XFETCH_ARGS=	-Fpr
X
XGNU_CONFIGURE=	yes
XUSES=	${GMAKE}
X
XUSE_RC_SUBR=	shadowsocks_libev
X
X.include <bsd.port.mk>
704c39eb254acc7e707ee8cfff8ae8aa
echo x - shadowsocks-libev/distinfo
sed 's/^X//' >shadowsocks-libev/distinfo << '63285bca2c967fecb45eba3756b673e7'
XSHA256 (shadowsocks-libev-1.3.2.tar.gz) = 94e4ca2aec82d2271e6927f91bd1c03ca196dd98300c02ca8b2f06725994b671
XSIZE (shadowsocks-libev-1.3.2.tar.gz) = 780502
63285bca2c967fecb45eba3756b673e7
echo x - shadowsocks-libev/pkg-descr
sed 's/^X//' >shadowsocks-libev/pkg-descr << 'e83d80fece8a8a34c5ef8a168d3ec7c6'
XShadowsocks is a lightweight tunnel proxy which can help you get through
Xfirewalls.
X
XShadowsocks-libuv is a C implentment based on libuv. It targets mainly on
Xembedded devices and low end boxes.
X
XWWW: https://github.com/madeye/shadowsocks-libev
e83d80fece8a8a34c5ef8a168d3ec7c6
echo c - shadowsocks-libev/files
mkdir -p shadowsocks-libev/files > /dev/null 2>&1
echo x - shadowsocks-libev/files/shadowsocks_libev.in
sed 's/^X//' >shadowsocks-libev/files/shadowsocks_libev.in << 'bf17dfaa24ad809b193f70409f4c2c9e'
X#!/bin/sh
X# $FreeBSD$
X
X# PROVIDE: shadowsocks-libev
X# REQUIRE: LOGIN cleanvar
X# KEYWORD: shutdown
X
X# Add the following lines to /etc/rc.conf to enable shadowsocks-libev:
X# shadowsocks_libev_enable (bool):  Set to "NO" by default.
X#      Set to "YES" to enable shadowsocks-libev.
X# shadowsocks_libev_host (ip addr/hostname): Set to "0.0.0.0" by default.
X# shadowsocks_libev_port (port number): Set to 8388 by default.
X# shadowsocks_libev_localport (local port): Set to 1080 by default.
X# shadowsocks_libev_password (password): Set to ""(null) by default.
X# shadowsocks_libev_encrypt_method (encrypt method): Set to rc4 by default.
X#      Available methods: table, rc4, aes-128-cfb, aes-192-cfb, aes-256-cfb,
X#      bf-cfb, camellia-128-cfb, camellia-192-cfb, camellia-256-cfb,
X#      cast5-cfb, des-cfb, idea-cfb, rc2-cfb and seed-cfb
X# shadowsocks_libev_timeout (time): Set to "300" seconds by default.
X
X
X. /etc/rc.subr
X
Xname="shadowsocks_libev"
Xrcvar=shadowsocks_libev_enable
X
X
Xload_rc_config $name
X
X: ${shadowsocks_libev_enable:="NO"}
X: ${shadowsocks_libev_host="0.0.0.0"}
X: ${shadowsocks_libev_port=8388}
X: ${shadowsocks_libev_localport=1080}
X: ${shadowsocks_libev_password=""}
X: ${shadowsocks_libev_encrypt_method="rc4"}
X: ${shadowsocks_libev_timeout="300"}
X
Xcommand="%%PREFIX%%/bin/ss-server" 
Xpidfile="/var/run/shadowsocks-libev.pid"
X
X: ${shadowsocks_libev_flags:="-s ${shadowsocks_libev_host} \
X    -p ${shadowsocks_libev_port} \
X    -l ${shadowsocks_libev_localport} \
X    -k ${shadowsocks_libev_password} \
X    -m ${shadowsocks_libev_encrypt_method} \
X    -f ${pidfile} \
X    -t ${shadowsocks_libev_timeout}"}
X
X
Xrun_rc_command "$1"
bf17dfaa24ad809b193f70409f4c2c9e
echo x - shadowsocks-libev/pkg-plist
sed 's/^X//' >shadowsocks-libev/pkg-plist << 'b50d506addc8403bf7b5dbf8fcd9ad17'
Xbin/ss-local
Xbin/ss-server
Xman/man8/shadowsocks.8.gz
b50d506addc8403bf7b5dbf8fcd9ad17
exit



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


More information about the freebsd-ports-bugs mailing list