summaryrefslogtreecommitdiffstats
path: root/net-proxy
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /net-proxy
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/socks5/Manifest7
-rw-r--r--net-proxy/socks5/files/socks5-v1.0r11-ifaaddr.patch.bz2bin0 -> 407 bytes
-rw-r--r--net-proxy/socks5/files/socks5-v1.0r11.patch1.txt.bz2bin0 -> 529 bytes
-rw-r--r--net-proxy/socks5/files/socks5-v1.0r11.tar.bz2bin0 -> 329136 bytes
-rw-r--r--net-proxy/socks5/files/socks5-vararg.patch.bz2bin0 -> 1062 bytes
-rw-r--r--net-proxy/socks5/files/socks5.init20
-rw-r--r--net-proxy/socks5/files/unsocks28
-rw-r--r--net-proxy/socks5/socks5-1.0-r11.ebuild58
8 files changed, 113 insertions, 0 deletions
diff --git a/net-proxy/socks5/Manifest b/net-proxy/socks5/Manifest
new file mode 100644
index 0000000..952208a
--- /dev/null
+++ b/net-proxy/socks5/Manifest
@@ -0,0 +1,7 @@
+AUX socks5-v1.0r11-ifaaddr.patch.bz2 407 RMD160 025b36eb67cb8def4a8c28a86fdb3e3bb11cb9c7 SHA1 d9a709f7dd3c2ae8d981f170b3f18bacd703b3e8 SHA256 accf433ab6208c3d13e21353e269612d4497402ee0bf8f1163114c55decb445b
+AUX socks5-v1.0r11.patch1.txt.bz2 529 RMD160 ce52d2ba93be0017cc1bd265043b773c5147f1e3 SHA1 623f4dc28ae300eb65d3e859acdf6bd90351510a SHA256 b7b29531125c8587d3d0c26abfb607a5af92c222b2c4d49d2c89bf3e349b5a72
+AUX socks5-v1.0r11.tar.bz2 329136 RMD160 3d21415a8aeae4fdf50297df6751c2fa5f909f7e SHA1 204da84eba1c29df244c7ff0f6aea5238a6bc09f SHA256 4e883a9b789ca585047d8b31198074661614cd1aae4de2d458e8b7d5732513ce
+AUX socks5-vararg.patch.bz2 1062 RMD160 462b0abb599ee27eca7cbc82b5b90c133a38b135 SHA1 392226c9e837bdf89dae18f5dc449725747a021d SHA256 7e4027a0bf16cc9efb46dc615a97971464b344bca5f6dd6b59e85efcea8ed05f
+AUX socks5.init 315 RMD160 0a70988d2b1dd78362f499e81ec8c23c84103252 SHA1 cf563980f3c7acef302ace2e5efb2d20396ee1c9 SHA256 0237912f4d5735fd3101a8b6bca442369157f711621a4cdc1ad9b354c0adfd1f
+AUX unsocks 738 RMD160 1f9a52216446495b251a71bb162dc042ec87887f SHA1 6d59540281d8814925c4c86ce4d9f5feef5d2c7a SHA256 528dc0beeb8e75969e640b78c828f4cb7c62b6ec287a1971022df4b7022e18c0
+EBUILD socks5-1.0-r11.ebuild 1477 RMD160 a45915d4b96e78e19a8229ed78274064ab4133e7 SHA1 1c3c286b160c32e068cb96eee3d614469f9fcf9f SHA256 438e4325d0f52af7a8488627cbef6e56206a03586b182deeec7e8cbc2ec85cf2
diff --git a/net-proxy/socks5/files/socks5-v1.0r11-ifaaddr.patch.bz2 b/net-proxy/socks5/files/socks5-v1.0r11-ifaaddr.patch.bz2
new file mode 100644
index 0000000..7847dd3
--- /dev/null
+++ b/net-proxy/socks5/files/socks5-v1.0r11-ifaaddr.patch.bz2
Binary files differ
diff --git a/net-proxy/socks5/files/socks5-v1.0r11.patch1.txt.bz2 b/net-proxy/socks5/files/socks5-v1.0r11.patch1.txt.bz2
new file mode 100644
index 0000000..216c385
--- /dev/null
+++ b/net-proxy/socks5/files/socks5-v1.0r11.patch1.txt.bz2
Binary files differ
diff --git a/net-proxy/socks5/files/socks5-v1.0r11.tar.bz2 b/net-proxy/socks5/files/socks5-v1.0r11.tar.bz2
new file mode 100644
index 0000000..d6df932
--- /dev/null
+++ b/net-proxy/socks5/files/socks5-v1.0r11.tar.bz2
Binary files differ
diff --git a/net-proxy/socks5/files/socks5-vararg.patch.bz2 b/net-proxy/socks5/files/socks5-vararg.patch.bz2
new file mode 100644
index 0000000..87ce8ce
--- /dev/null
+++ b/net-proxy/socks5/files/socks5-vararg.patch.bz2
Binary files differ
diff --git a/net-proxy/socks5/files/socks5.init b/net-proxy/socks5/files/socks5.init
new file mode 100644
index 0000000..d2fb964
--- /dev/null
+++ b/net-proxy/socks5/files/socks5.init
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting socks5:"
+ socks5
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping socks5:"
+ killall ${KILL_OPTS} socks5
+ eend $?
+}
diff --git a/net-proxy/socks5/files/unsocks b/net-proxy/socks5/files/unsocks
new file mode 100644
index 0000000..63b8d91
--- /dev/null
+++ b/net-proxy/socks5/files/unsocks
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+################################################################################
+##
+## unsocks - Don't let the dynamic socks library be loaded
+##
+## If you have in your ~/.profile the following
+##
+## export LD_PRELOAD=libsocks5_sh.so
+##
+## All your session will be socksified.
+## Some programs don't like it so you can use unsocks to run them unsocksified.
+## The usage is very similar to runsocks(1).
+##
+## This is free software distributed under GPL
+##
+## Avi Alkalay <avi@br.ibm.com>
+## 5 Jun 1999
+################################################################################
+
+
+if [ -n "$LD_PRELOAD" ]; then
+ ld_new=`echo $LD_PRELOAD | sed -e 's|libsocks5_sh.so||g'`
+ LD_PRELOAD=$ld_new
+ export LD_PRELOAD
+fi
+
+exec "$@"
diff --git a/net-proxy/socks5/socks5-1.0-r11.ebuild b/net-proxy/socks5/socks5-1.0-r11.ebuild
new file mode 100644
index 0000000..049e5c4
--- /dev/null
+++ b/net-proxy/socks5/socks5-1.0-r11.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+inherit eutils
+
+DESCRIPTION="SOCKS5 Implementation"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+RDEPEND="sys-libs/ncurses"
+
+S=${WORKDIR}/socks5-v1.0r11
+
+src_unpack() {
+ tar xjf ${FILESDIR}/socks5-v1.0r11.tar.bz2
+ EPATCH_OPTS="-p0 -d socks5-v1.0r11" epatch ${FILESDIR}/socks5-v1.0r11.patch1.txt.bz2
+ EPATCH_OPTS="-p1 -d socks5-v1.0r11" epatch ${FILESDIR}/socks5-vararg.patch.bz2
+ EPATCH_OPTS="-p1 -d socks5-v1.0r11" epatch ${FILESDIR}/socks5-v1.0r11-ifaaddr.patch.bz2
+}
+
+src_compile() {
+ econf --with-srvpidfile=/var/run/socks5.pid \
+ --with-libconffile=/etc/libsocks5.conf \
+ --with-srvconffile=/etc/socks5.conf \
+ --with-syslog-facility \
+ --with-threads || die
+ emake || die
+}
+
+src_install() {
+ into /usr
+
+ echo "-----------------"
+ echo ${D}
+ cd ${P}-r11/work/socks5-v1.0r11
+ make install prefix=${D}/usr || die
+ cd ${D}/usr/bin/
+ mv rarchie s5archie
+ mv rfinger s5finger
+ mv rftp s5ftp
+ mv rping s5ping
+ mv rtelnet s5telnet
+ mv rtraceroute s5traceroute
+ mv rwhois s5whois
+
+ chmod 511 s5*
+ strip s5*
+
+ mkdir ../sbin
+ strip socks5
+ mv socks5 stopsocks ../sbin
+
+ mkdir -p ${D}/etc/init.d/
+ install -m 755 ${FILESDIR}/socks5.init ${D}/etc/init.d/socks5
+ install -m 755 ${FILESDIR}/unsocks ${D}/usr/bin
+ echo "socks5 - - - - -" > ${D}/etc/libsocks5.conf
+}