summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>2017-01-07 18:14:20 +0100
committerAnthony G. Basile <blueness@gentoo.org>2017-01-07 17:27:50 -0500
commit8b7df2f326454e53249c81445d0df081d15d8f88 (patch)
treec2030563c39895e2b184e249c5c77771a3e75483 /net-proxy
parentnet-p2p/tribler: remove unused patch (diff)
downloadgentoo-8b7df2f326454e53249c81445d0df081d15d8f88.tar.gz
gentoo-8b7df2f326454e53249c81445d0df081d15d8f88.tar.bz2
gentoo-8b7df2f326454e53249c81445d0df081d15d8f88.zip
net-proxy/obfsproxy: remove unused patches/init files
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/obfsproxy/files/obfsproxy-0.2.8-remove-argparse.patch11
-rw-r--r--net-proxy/obfsproxy/files/obfsproxy.confd45
-rw-r--r--net-proxy/obfsproxy/files/obfsproxy.initd58
3 files changed, 0 insertions, 114 deletions
diff --git a/net-proxy/obfsproxy/files/obfsproxy-0.2.8-remove-argparse.patch b/net-proxy/obfsproxy/files/obfsproxy-0.2.8-remove-argparse.patch
deleted file mode 100644
index 9c5051667669..000000000000
--- a/net-proxy/obfsproxy/files/obfsproxy-0.2.8-remove-argparse.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -Naur obfsproxy-0.2.8.orig/setup.py obfsproxy-0.2.8/setup.py
---- obfsproxy-0.2.8.orig/setup.py 2014-03-27 13:24:39.000000000 -0400
-+++ obfsproxy-0.2.8/setup.py 2014-03-29 15:10:05.063283282 -0400
-@@ -32,7 +32,6 @@
- 'setuptools',
- 'PyCrypto',
- 'Twisted',
-- 'argparse',
- 'pyptlib >= 0.0.5',
- 'pyyaml'
- ],
diff --git a/net-proxy/obfsproxy/files/obfsproxy.confd b/net-proxy/obfsproxy/files/obfsproxy.confd
deleted file mode 100644
index f86d648c9ab8..000000000000
--- a/net-proxy/obfsproxy/files/obfsproxy.confd
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-# protocols ofbsproxy will obfuscate = obfs2 | dummy
-PROTOCOL="obfs2"
-
-#options for PROTOCOLE="dummy"
-# dummy <mode> <listen_address> [<target_address>]
-# mode ~ server|client|socks
-# listen_address, target_address ~ host:port
-# target_address is required for server and client mode, and forbidden for socks mode.
-# Examples:
-# obfsproxy dummy socks 127.0.0.1:5000
-# obfsproxy dummy client 127.0.0.1:5000 192.168.1.99:11253
-# obfsproxy dummy server 192.168.1.99:11253 127.0.0.1:9005
-
-#MODE="socks"
-#LISTEN="127.0.0.1:5000"
-#TARGET="127.0.0.1:9005"
-
-
-#options for PROTOCOL="obfs2"
-# obfs2 [obfs2_args] obfs2_opts
-# 'obfs2_opts':
-# mode ~ server|client|socks
-# listen address ~ host:port
-# 'obfs2_args':
-# Destination Address ~ --dest=host:port
-# Shared Secret ~ --shared-secret=<secret>
-# Example:
-# obfsproxy obfs2 --dest=127.0.0.1:666 --shared-secret=himitsu server 127.0.0.1:1026
-
-MODE="server"
-DESTINATION="127.0.0.1:666"
-SECRET="changeme"
-LISTEN="127.0.0.1:1026"
-
-#Logging
-# --log-file=<file> ~ set logfile
-# --log-min-severity=warn|notice|info|debug ~ set minimum logging severity (default: notice)
-# --no-log ~ disable logging
-# --no-safe-logging ~ disable safe (scrubbed address) logging
-
-LOGGING="--log-file=/var/log/obfsproxy.log --log-min-severity=warn"
diff --git a/net-proxy/obfsproxy/files/obfsproxy.initd b/net-proxy/obfsproxy/files/obfsproxy.initd
deleted file mode 100644
index 70e9295d1a74..000000000000
--- a/net-proxy/obfsproxy/files/obfsproxy.initd
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-PIDFILE="/var/run/obfsproxy.pid"
-DAEMON="/usr/bin/obfsproxy"
-
-depend() {
- need net
-}
-
-checkconfig() {
- [[ "x${PROTOCOL}" = "x" ]] \
- && eerror "PROTOCOL not given" && return 1
- [[ "x${MODE}" = "x" ]] \
- && eerror "MODE not given" && return 1
- if [ ${PROTOCOL} = "dummy" ] ; then
- [[ "x${LISTEN}" = "x" ]] \
- && eerror "No listen address was given" && return 1
- [[ "x${MODE}" = "xserver" && "x${TARGET}" = "x" ]] \
- && eerror "MODE=server but no target address was given" && return 1
- [[ "x${MODE}" = "xsocks" && "x${TARGET}" != "x" ]] \
- && eerror "MODE=sock but a target address was given" && return 1
- CMDLINE="${LOGGING} ${PROTOCOL} ${MODE} ${LISTEN} ${TARGET}"
- elif [ ${PROTOCOL} = "obfs2" ] ; then
- [[ "x${MODE}" = "xsocks" && "x${DESTINATION}" != "x" ]] \
- && eerror "MODE=sock but a destination address was given" && return 1
- [[ "x${LISTEN}" = "x" ]] \
- && eerror "LISTEN host:port was not given" && return 1
- [[ "x${DESTINATION}" != "x" ]] \
- && DESTINATION="--dest=${DESTINATION}"
- [[ "x${SECRET}" != "x" ]] \
- && SECRET="--shared-secret=${SECRET}"
- CMDLINE="${LOGGING} ${PROTOCOL} ${DESTINATION} ${SECRET} ${MODE} ${LISTEN}"
- else
- eerror "Unknown protocol ${PROTOCOL}"
- return 1
- fi
- return 0
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting obfsproxy server"
- start-stop-daemon --start \
- --background --make-pidfile --pidfile ${PIDFILE} \
- --exec ${DAEMON} -- ${CMDLINE}
- eend $?
-}
-
-stop() {
- ebegin "Stopping obfsproxy server"
- start-stop-daemon --stop \
- --pidfile ${PIDFILE} \
- --exec ${DAEMON}
- eend $?
-}