Bug 182575

Summary: New port: net/shadowsocks-libev Lightweight tunnel proxy which can help you get through firewalls
Product: Ports & Packages Reporter: xiaoding+freebsd
Component: Individual Port(s)Assignee: Xin LI <delphij>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.shar none

Description xiaoding+freebsd 2013-10-02 15:20:00 UTC
Shadowsocks
A lightweight tunnel proxy which can help you get through firewalls

Fix: Patch attached with submission follows:
Comment 1 dfilter service freebsd_committer freebsd_triage 2013-10-24 00:30:05 UTC
Author: delphij
Date: Wed Oct 23 23:29:56 2013
New Revision: 331447
URL: http://svnweb.freebsd.org/changeset/ports/331447

Log:
  net/shadowsocks-libev is a lightweight tunnel proxy which can help you get
  through firewalls.
  
  PR:		ports/182575
  Submitted by:	Xiaoding Liu <xiaoding freebsd xiaoding.org>

Added:
  head/net/shadowsocks-libev/
  head/net/shadowsocks-libev/Makefile   (contents, props changed)
  head/net/shadowsocks-libev/distinfo   (contents, props changed)
  head/net/shadowsocks-libev/files/
  head/net/shadowsocks-libev/files/shadowsocks_libev.in   (contents, props changed)
  head/net/shadowsocks-libev/pkg-descr   (contents, props changed)
  head/net/shadowsocks-libev/pkg-plist   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Wed Oct 23 23:05:52 2013	(r331446)
+++ head/net/Makefile	Wed Oct 23 23:29:56 2013	(r331447)
@@ -1094,6 +1094,7 @@
     SUBDIR += service-discovery-applet
     SUBDIR += serviio
     SUBDIR += sflowtool
+    SUBDIR += shadowsocks-libev
     SUBDIR += shaperprobe
     SUBDIR += sharity-light
     SUBDIR += shelldap

Added: head/net/shadowsocks-libev/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/shadowsocks-libev/Makefile	Wed Oct 23 23:29:56 2013	(r331447)
@@ -0,0 +1,25 @@
+# Created by: Xiaoding Liu <xiaoding+freebsd@xiaoding.org>
+# $FreeBSD$
+
+PORTNAME=	shadowsocks-libev
+PORTVERSION=	1.3.2
+CATEGORIES=	net
+MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/${GH_TAGNAME}.tar.gz?dummy=/
+
+MAINTAINER=	xiaoding+freebsd@xiaoding.org
+COMMENT=	Lightweight tunnel proxy which can help you get through firewalls
+
+LICENSE=	GPLv3
+
+# fetch from github repo
+USE_GITHUB=	yes
+GH_ACCOUNT=	madeye
+GH_TAGNAME=	v1.3.2
+WRKSRC=		${WRKDIR}/${DISTNAME}
+
+GNU_CONFIGURE=	yes
+USES=		gmake
+
+USE_RC_SUBR=	shadowsocks_libev
+
+.include <bsd.port.mk>

Added: head/net/shadowsocks-libev/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/shadowsocks-libev/distinfo	Wed Oct 23 23:29:56 2013	(r331447)
@@ -0,0 +1,2 @@
+SHA256 (shadowsocks-libev-1.3.2.tar.gz) = 94e4ca2aec82d2271e6927f91bd1c03ca196dd98300c02ca8b2f06725994b671
+SIZE (shadowsocks-libev-1.3.2.tar.gz) = 780502

Added: head/net/shadowsocks-libev/files/shadowsocks_libev.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/shadowsocks-libev/files/shadowsocks_libev.in	Wed Oct 23 23:29:56 2013	(r331447)
@@ -0,0 +1,50 @@
+#!/bin/sh
+# $FreeBSD$
+
+# PROVIDE: shadowsocks-libev
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable shadowsocks-libev:
+# shadowsocks_libev_enable (bool):  Set to "NO" by default.
+#      Set to "YES" to enable shadowsocks-libev.
+# shadowsocks_libev_host (ip addr/hostname): Set to "0.0.0.0" by default.
+# shadowsocks_libev_port (port number): Set to 8388 by default.
+# shadowsocks_libev_localport (local port): Set to 1080 by default.
+# shadowsocks_libev_password (password): Set to ""(null) by default.
+# shadowsocks_libev_encrypt_method (encrypt method): Set to rc4 by default.
+#      Available methods: table, rc4, aes-128-cfb, aes-192-cfb, aes-256-cfb,
+#      bf-cfb, camellia-128-cfb, camellia-192-cfb, camellia-256-cfb,
+#      cast5-cfb, des-cfb, idea-cfb, rc2-cfb and seed-cfb
+# shadowsocks_libev_timeout (time): Set to "300" seconds by default.
+
+
+. /etc/rc.subr
+
+name="shadowsocks_libev"
+rcvar=shadowsocks_libev_enable
+
+
+load_rc_config $name
+
+: ${shadowsocks_libev_enable:="NO"}
+: ${shadowsocks_libev_host="0.0.0.0"}
+: ${shadowsocks_libev_port=8388}
+: ${shadowsocks_libev_localport=1080}
+: ${shadowsocks_libev_password=""}
+: ${shadowsocks_libev_encrypt_method="rc4"}
+: ${shadowsocks_libev_timeout="300"}
+
+command="%%PREFIX%%/bin/ss-server" 
+pidfile="/var/run/shadowsocks-libev.pid"
+
+: ${shadowsocks_libev_flags:="-s ${shadowsocks_libev_host} \
+    -p ${shadowsocks_libev_port} \
+    -l ${shadowsocks_libev_localport} \
+    -k ${shadowsocks_libev_password} \
+    -m ${shadowsocks_libev_encrypt_method} \
+    -f ${pidfile} \
+    -t ${shadowsocks_libev_timeout}"}
+
+
+run_rc_command "$1"

Added: head/net/shadowsocks-libev/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/shadowsocks-libev/pkg-descr	Wed Oct 23 23:29:56 2013	(r331447)
@@ -0,0 +1,7 @@
+Shadowsocks is a lightweight tunnel proxy which can help you get through
+firewalls.
+
+Shadowsocks-libuv is a C implentment based on libuv. It targets mainly on
+embedded devices and low end boxes.
+
+WWW: https://github.com/madeye/shadowsocks-libev

Added: head/net/shadowsocks-libev/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/shadowsocks-libev/pkg-plist	Wed Oct 23 23:29:56 2013	(r331447)
@@ -0,0 +1,3 @@
+bin/ss-local
+bin/ss-server
+man/man8/shadowsocks.8.gz
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Xin LI freebsd_committer freebsd_triage 2013-10-24 00:30:18 UTC
State Changed
From-To: open->closed

Committed, thanks! 


Comment 3 Xin LI freebsd_committer freebsd_triage 2013-10-24 00:30:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->delphij

Take.