diff --git a/net/Makefile b/net/Makefile index 6a70a1a3150a..f11cb819cb6c 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1178,6 +1178,7 @@ SUBDIR += spread4 SUBDIR += sprinkle SUBDIR += sqtop + SUBDIR += srelay SUBDIR += ss5 SUBDIR += ssldump SUBDIR += sslh diff --git a/net/srelay/Makefile b/net/srelay/Makefile new file mode 100644 index 000000000000..406c0cf34fd5 --- /dev/null +++ b/net/srelay/Makefile @@ -0,0 +1,26 @@ +# Created by: Bernhard Froehlich +# $FreeBSD$ + +PORTNAME= srelay +PORTVERSION= 0.4.8b6 +CATEGORIES= net + +MAINTAINER= decke@FreeBSD.org +COMMENT= Srelay is a SOCKS4/5 proxy and Relay + +LICENSE= BSD3CLAUSE + +USE_GITHUB= yes +GH_ACCOUNT= gco +GH_TAGNAME= 9461835 + +HAS_CONFIGURE= yes +USE_RC_SUBR= srelay + +do-install: + ${INSTALL_DATA} ${WRKSRC}/srelay.conf ${STAGEDIR}${PREFIX}/etc/srelay.conf.sample + ${INSTALL_DATA} ${WRKSRC}/srelay.passwd ${STAGEDIR}${PREFIX}/etc/srelay.passwd.sample + ${INSTALL_MAN} ${WRKSRC}/srelay.8 ${STAGEDIR}${PREFIX}/man/man8 + ${INSTALL_PROGRAM} ${WRKSRC}/srelay ${STAGEDIR}${PREFIX}/sbin + +.include diff --git a/net/srelay/distinfo b/net/srelay/distinfo new file mode 100644 index 000000000000..f08d16b44e01 --- /dev/null +++ b/net/srelay/distinfo @@ -0,0 +1,2 @@ +SHA256 (gco-srelay-0.4.8b6-9461835_GH0.tar.gz) = 52752c52660520570bf70719f8a6ca6775885bd8e9fa557020c1aa891ba274e0 +SIZE (gco-srelay-0.4.8b6-9461835_GH0.tar.gz) = 110152 diff --git a/net/srelay/files/srelay.in b/net/srelay/files/srelay.in new file mode 100644 index 000000000000..f1c5e1be4fd9 --- /dev/null +++ b/net/srelay/files/srelay.in @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: srelay +# REQUIRE: DAEMON jail +# BEFORE: LOGIN +# KEYWORD: FreeBSD NetBSD shutdown +# +# Add the following line to /etc/rc.conf to enable srelay: +# +# srelay_enable="YES" +# srelay_flags="-i 127.0.0.1" +# + +. /etc/rc.subr + +name=srelay +rcvar=srelay_enable + +load_rc_config $name +: ${srelay_enable="NO"} + +command="%%LOCALBASE%%/sbin/srelay" +pid_file="/var/run/srelay.pid" + +load_rc_config $name + +run_rc_command "$1" diff --git a/net/srelay/pkg-descr b/net/srelay/pkg-descr new file mode 100644 index 000000000000..2e6292b447ba --- /dev/null +++ b/net/srelay/pkg-descr @@ -0,0 +1,11 @@ +The SOCKS proxy and relay. + +* Srelay is a socks4/5 protocol proxy server +* Supports socks connect/bind request in the protocol v4, v4a, and v5. +* Supports socks server chaining with both v4 and v5 servers. +* Supports Username/Password authentication in v5 (not recommended). +* Testing on FreeBSD 8.1R, Solaris 8, 10, Linux-i386, MacOS 10.5. +* Supports IPv6 as well as IPv4. +* Srelay is Free. + +WWW: https://github.com/gco/srelay diff --git a/net/srelay/pkg-plist b/net/srelay/pkg-plist new file mode 100644 index 000000000000..a7aa817b84aa --- /dev/null +++ b/net/srelay/pkg-plist @@ -0,0 +1,4 @@ +@sample etc/srelay.conf.sample +@sample etc/srelay.passwd.sample +man/man8/srelay.8.gz +sbin/srelay