summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2017-06-13 23:36:54 -0700
committerMatt Turner <mattst88@gentoo.org>2017-06-13 23:38:06 -0700
commit57e06412de895db97937ca51954ed77411ea43fa (patch)
treeab45ec7c5515d47d98bcf5adb8b1e672f4bc4650 /net-proxy/redsocks
parentmail-mta/postfix: bump to 3.1.6 (diff)
downloadgentoo-57e06412de895db97937ca51954ed77411ea43fa.tar.gz
gentoo-57e06412de895db97937ca51954ed77411ea43fa.tar.bz2
gentoo-57e06412de895db97937ca51954ed77411ea43fa.zip
net-proxy/redsocks: Add package
Diffstat (limited to 'net-proxy/redsocks')
-rw-r--r--net-proxy/redsocks/Manifest1
-rw-r--r--net-proxy/redsocks/metadata.xml11
-rw-r--r--net-proxy/redsocks/redsocks-0.5.ebuild37
-rw-r--r--net-proxy/redsocks/redsocks-9999.ebuild37
4 files changed, 86 insertions, 0 deletions
diff --git a/net-proxy/redsocks/Manifest b/net-proxy/redsocks/Manifest
new file mode 100644
index 000000000000..33ebf4f407fd
--- /dev/null
+++ b/net-proxy/redsocks/Manifest
@@ -0,0 +1 @@
+DIST redsocks-0.5.tar.gz 496403 SHA256 bbeb531d7f1986d7102f1bd6733dacce41d3f3ba7d604f1aab61c63e0ba2ee62 SHA512 678faca95b3570f793754abfe752b3d3580ea125aac8615ca2a1fce92cd50e7919832afe7cf5d1cc40b700045fca08f86ea1697d062ac8e7be706d166e69ff70 WHIRLPOOL aed4e6922f556696568d299767aaa917b90007359bfa37919112cb74bb6e91bb823bba585ef9dd878fe289c401dcc5df897b303861e882e7b5d105b2515054db
diff --git a/net-proxy/redsocks/metadata.xml b/net-proxy/redsocks/metadata.xml
new file mode 100644
index 000000000000..bf35bd06d383
--- /dev/null
+++ b/net-proxy/redsocks/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mattst88@gentoo.org</email>
+ <name>Matt Turner</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">darkk/redsocks</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-proxy/redsocks/redsocks-0.5.ebuild b/net-proxy/redsocks/redsocks-0.5.ebuild
new file mode 100644
index 000000000000..609aff1f9571
--- /dev/null
+++ b/net-proxy/redsocks/redsocks-0.5.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} != *9999* ]]; then
+ SRC_URI="https://github.com/darkk/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+else
+ GIT_ECLASS="git-r3"
+ EGIT_REPO_URI="git://github.com/darkk/${PN}.git"
+fi
+
+inherit toolchain-funcs ${GIT_ECLASS}
+
+DESCRIPTION="Transparent redirector of any TCP connection to proxy"
+HOMEPAGE="http://darkk.net.ru/redsocks/"
+LICENSE="Apache-2.0 LGPL-2.1+ ZLIB"
+SLOT="0"
+IUSE="doc"
+
+DEPEND="dev-libs/libevent:0="
+RDEPEND="${DEPEND}
+ net-firewall/iptables"
+
+[[ ${PV} != *9999 ]] && S="${WORKDIR}"/"${PN}"-release-"${PV}"
+
+src_compile() {
+ CC="$(tc-getCC)" emake || die "emake failed"
+}
+
+src_install() {
+ dobin redsocks
+ use doc && dodoc README doc/*
+ insinto /etc/redsocks
+ newins redsocks.conf.example redsocks.conf
+}
diff --git a/net-proxy/redsocks/redsocks-9999.ebuild b/net-proxy/redsocks/redsocks-9999.ebuild
new file mode 100644
index 000000000000..609aff1f9571
--- /dev/null
+++ b/net-proxy/redsocks/redsocks-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} != *9999* ]]; then
+ SRC_URI="https://github.com/darkk/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+else
+ GIT_ECLASS="git-r3"
+ EGIT_REPO_URI="git://github.com/darkk/${PN}.git"
+fi
+
+inherit toolchain-funcs ${GIT_ECLASS}
+
+DESCRIPTION="Transparent redirector of any TCP connection to proxy"
+HOMEPAGE="http://darkk.net.ru/redsocks/"
+LICENSE="Apache-2.0 LGPL-2.1+ ZLIB"
+SLOT="0"
+IUSE="doc"
+
+DEPEND="dev-libs/libevent:0="
+RDEPEND="${DEPEND}
+ net-firewall/iptables"
+
+[[ ${PV} != *9999 ]] && S="${WORKDIR}"/"${PN}"-release-"${PV}"
+
+src_compile() {
+ CC="$(tc-getCC)" emake || die "emake failed"
+}
+
+src_install() {
+ dobin redsocks
+ use doc && dodoc README doc/*
+ insinto /etc/redsocks
+ newins redsocks.conf.example redsocks.conf
+}