diff options
author | Pacho Ramos <pacho@gentoo.org> | 2016-02-20 19:31:32 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2016-02-20 19:31:32 +0100 |
commit | 031ceb4bc4a53dca5c20906459ff08b8c48f7c5e (patch) | |
tree | ee1b081d58989215ab12530f6cd38e58277a1649 /net-proxy | |
parent | Remove masked for removal packages (diff) | |
download | gentoo-031ceb4bc4a53dca5c20906459ff08b8c48f7c5e.tar.gz gentoo-031ceb4bc4a53dca5c20906459ff08b8c48f7c5e.tar.bz2 gentoo-031ceb4bc4a53dca5c20906459ff08b8c48f7c5e.zip |
Remove masked for removal packages
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/ntlmaps/Manifest | 2 | ||||
-rw-r--r-- | net-proxy/ntlmaps/files/ntlmaps-0.9.9-gentoo.patch | 37 | ||||
-rw-r--r-- | net-proxy/ntlmaps/files/ntlmaps-0.9.9.6-gentoo.patch | 33 | ||||
-rw-r--r-- | net-proxy/ntlmaps/files/ntlmaps.init | 27 | ||||
-rw-r--r-- | net-proxy/ntlmaps/files/ntlmaps.service | 10 | ||||
-rw-r--r-- | net-proxy/ntlmaps/metadata.xml | 12 | ||||
-rw-r--r-- | net-proxy/ntlmaps/ntlmaps-0.9.9-r2.ebuild | 61 | ||||
-rw-r--r-- | net-proxy/ntlmaps/ntlmaps-0.9.9.6-r3.ebuild | 56 | ||||
-rw-r--r-- | net-proxy/sshproxy/Manifest | 1 | ||||
-rw-r--r-- | net-proxy/sshproxy/files/sshproxy-0.6.0_beta2-rename-wrappers.patch | 159 | ||||
-rw-r--r-- | net-proxy/sshproxy/files/sshproxy.ini | 26 | ||||
-rw-r--r-- | net-proxy/sshproxy/files/sshproxyd.confd | 7 | ||||
-rw-r--r-- | net-proxy/sshproxy/files/sshproxyd.initd | 22 | ||||
-rw-r--r-- | net-proxy/sshproxy/metadata.xml | 21 | ||||
-rw-r--r-- | net-proxy/sshproxy/sshproxy-0.6.0_beta2-r2.ebuild | 197 |
15 files changed, 0 insertions, 671 deletions
diff --git a/net-proxy/ntlmaps/Manifest b/net-proxy/ntlmaps/Manifest deleted file mode 100644 index f4beb10fa83c..000000000000 --- a/net-proxy/ntlmaps/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST ntlmaps-0.9.9.6.tar.gz 60760 SHA256 005c66a84f535951dc6ad558b301b7b49b96a3bbc56e3a83a553a5500e3f6a2a SHA512 0b0c80f3a32c523fdad47af2d0c7fa21d01124d014aafb2f7e9a00ba525685917b6c24572a25d5c294848f88fd6775a0e9c9e95014d91e35b86411c83f12adff WHIRLPOOL 66431212f20e5451992a2f788d7c8077dae95ee3cb97e956bd65862ce9c93fe2bea31e46cf34922fe5cbd99c6ea5780cfecd3fbadc128cbbd820c5c772f9371e -DIST ntlmaps-0.9.9.tar.gz 55459 SHA256 6f955ef0a8f3e944df0a9b2d22e385ee4399fa4e16f4c30ccdcb6f4c92fdccd1 SHA512 53848de24d2b16e72b42af0a55c7e72356cfe0cbf9f90136ed8d6d72bf6293a3fd4c76e9fa47ddaaae865abec70c0b0a4cb4b510754a89bc422b657ffe51ac1e WHIRLPOOL 08a185f038ec20dd2a0992fb5ebb67c9c337db3f7949268837a5d31fa85212c226ee8a44cb1c4184fc96c27d0cc1ac1e90d22c1b1c4f3ca7d3c2db7ca8574c20 diff --git a/net-proxy/ntlmaps/files/ntlmaps-0.9.9-gentoo.patch b/net-proxy/ntlmaps/files/ntlmaps-0.9.9-gentoo.patch deleted file mode 100644 index 02e90f2ccf9d..000000000000 --- a/net-proxy/ntlmaps/files/ntlmaps-0.9.9-gentoo.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff -Nru ntlmaps-0.9.9.orig/__init__.py ntlmaps-0.9.9/__init__.py ---- ntlmaps-0.9.9.orig/__init__.py 2004-11-10 01:27:05.000000000 +0200 -+++ ntlmaps-0.9.9/__init__.py 2005-02-24 13:07:56.601327735 +0200 -@@ -22,8 +22,7 @@ - - import os, sys - --ntlmaps_dir = os.path.dirname(os.path.abspath(__file__)) --ntlmaps_libdir = ntlmaps_dir + '/lib' -+ntlmaps_dir = '/usr/lib/ntlmaps' - sys.path.append(ntlmaps_libdir) - - del os, sys -diff -Nru ntlmaps-0.9.9.orig/main.py ntlmaps-0.9.9/main.py ---- ntlmaps-0.9.9.orig/main.py 2005-02-01 04:45:02.000000000 +0200 -+++ ntlmaps-0.9.9/main.py 2005-02-24 13:11:46.762545214 +0200 -@@ -18,17 +18,17 @@ - # Free Software Foundation, Inc., - # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. - # --import __init__ -- - import sys - -+sys.path.append('/usr/lib/ntlmaps') -+ - import server, config, config_affairs - - - #-------------------------------------------------------------- - # config affairs - # look for default config name in lib/config.py --conf = config.read_config(config.findConfigFileNameInArgv(sys.argv, __init__.ntlmaps_dir+'/')) -+conf = config.read_config('/etc/ntlmaps/server.cfg') - - conf['GENERAL']['VERSION'] = '0.9.9' - diff --git a/net-proxy/ntlmaps/files/ntlmaps-0.9.9.6-gentoo.patch b/net-proxy/ntlmaps/files/ntlmaps-0.9.9.6-gentoo.patch deleted file mode 100644 index bda0843e6c9f..000000000000 --- a/net-proxy/ntlmaps/files/ntlmaps-0.9.9.6-gentoo.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- __init__.py.old 2010-10-06 16:03:54.000000000 +0200 -+++ __init__.py 2010-10-06 16:05:38.000000000 +0200 -@@ -20,10 +20,3 @@ - # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. - # - --import os, sys -- --ntlmaps_dir = os.path.dirname(os.path.abspath(__file__)) --ntlmaps_libdir = ntlmaps_dir + '/lib' --sys.path.append(ntlmaps_libdir) -- --del os, sys ---- main.py.old 2010-10-06 16:26:57.000000000 +0200 -+++ main.py 2010-10-06 16:27:29.000000000 +0200 -@@ -18,8 +18,6 @@ - # Free Software Foundation, Inc., - # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. - # --import __init__ -- - import sys - - import server, config, config_affairs -@@ -28,7 +26,7 @@ - #-------------------------------------------------------------- - # config affairs - # look for default config name in lib/config.py --conf = config.read_config(config.findConfigFileNameInArgv(sys.argv, __init__.ntlmaps_dir+'/')) -+conf = config.read_config('/etc/ntlmaps/server.cfg') - - conf['GENERAL']['VERSION'] = '0.9.9.6' - diff --git a/net-proxy/ntlmaps/files/ntlmaps.init b/net-proxy/ntlmaps/files/ntlmaps.init deleted file mode 100644 index 0d0251660670..000000000000 --- a/net-proxy/ntlmaps/files/ntlmaps.init +++ /dev/null @@ -1,27 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -PID_FILE="/var/run/ntlmaps.pid" - -depend() { - need net -} - -start() { - ebegin "Starting ntlmaps" - touch ${PID_FILE} - chown ntlmaps:ntlmaps ${PID_FILE} - cd /var/log/ntlmaps && \ - start-stop-daemon --quiet --start --background --exec /usr/bin/python \ - --make-pidfile --pidfile ${PID_FILE} --chuid ntlmaps -- /usr/bin/ntlmaps < /dev/null && \ - sleep 1 - eend $? -} -stop() { - ebegin "Stopping ntlmaps" - start-stop-daemon --stop --quiet --pidfile ${PID_FILE} && \ - rm -f ${PID_FILE} - eend $? -} diff --git a/net-proxy/ntlmaps/files/ntlmaps.service b/net-proxy/ntlmaps/files/ntlmaps.service deleted file mode 100644 index 163ab2623ed2..000000000000 --- a/net-proxy/ntlmaps/files/ntlmaps.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=NTLM proxy Authentication against MS proxy/web server -Wants=network.target -Before=network.target - -[Service] -ExecStart=/usr/bin/ntlmaps - -[Install] -WantedBy=multi-user.target diff --git a/net-proxy/ntlmaps/metadata.xml b/net-proxy/ntlmaps/metadata.xml deleted file mode 100644 index 27562f7f4e95..000000000000 --- a/net-proxy/ntlmaps/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <longdescription lang="en"> - ntlmaps is a http/ftp/socks proxy server written in python that - implements samba-like ntlm authentication against a Microsoft Proxy - Server (which does not support 'normal' digest authentication). - </longdescription> - <upstream> - <remote-id type="sourceforge">ntlmaps</remote-id> - </upstream> -</pkgmetadata> diff --git a/net-proxy/ntlmaps/ntlmaps-0.9.9-r2.ebuild b/net-proxy/ntlmaps/ntlmaps-0.9.9-r2.ebuild deleted file mode 100644 index c23b818c53c4..000000000000 --- a/net-proxy/ntlmaps/ntlmaps-0.9.9-r2.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils user - -DESCRIPTION="NTLM proxy Authentication against MS proxy/web server" -HOMEPAGE="http://ntlmaps.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 x86" -IUSE="" - -DEPEND="dev-lang/python" - -pkg_setup() { - enewgroup ntlmaps - enewuser ntlmaps -1 -1 -1 ntlmaps -} - -src_prepare() { - epatch "${FILESDIR}/${P}-gentoo.patch" - - sed -i -e 's/\r//' lib/*.py server.cfg *.txt doc/*.{txt,htm} || die 'Failed to convert line endings.' -} - -src_install() { - exeinto /usr/bin - newexe main.py ntlmaps - insinto /usr/lib/ntlmaps - doins lib/* - - dodoc *.txt doc/*.txt - dohtml doc/* - - insopts -m0640 -g ntlmaps - insinto /etc/ntlmaps - doins server.cfg - newinitd "${FILESDIR}/ntlmaps.init" ntlmaps - - diropts -m 0770 -g ntlmaps - keepdir /var/log/ntlmaps -} - -pkg_preinst() { - #Remove the following lines sometime in December 2005 - #Their purpose is to fix security bug #107766 - if [ -f "${ROOT}/etc/ntlmaps/server.cfg" ]; then - chmod 0640 "${ROOT}/etc/ntlmaps/server.cfg" - chgrp ntlmaps "${ROOT}/etc/ntlmaps/server.cfg" - fi -} - -pkg_prerm() { - einfo "Removing python compiled bytecode" - rm -f "${ROOT}"/usr/lib/ntlmaps/*.py? -} diff --git a/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r3.ebuild b/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r3.ebuild deleted file mode 100644 index 0773811d7052..000000000000 --- a/net-proxy/ntlmaps/ntlmaps-0.9.9.6-r3.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit eutils multilib systemd user python-r1 - -DESCRIPTION="NTLM proxy Authentication against MS proxy/web server" -HOMEPAGE="http://ntlmaps.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86" - -DEPEND="${PYTHON_DEPS}" -RDEPEND="${DEPEND}" - -pkg_setup() { - enewgroup ntlmaps - enewuser ntlmaps -1 -1 -1 ntlmaps -} - -src_prepare() { - epatch "${FILESDIR}/${P}-gentoo.patch" - - sed \ - -e 's/\r//' \ - -i lib/*.py server.cfg doc/*.{txt,htm} || die 'Failed to convert line endings.' -} - -src_install() { - # Bug #351305, prevent file collision. - rm "${S}"/lib/utils.py || die - - python_foreach_impl python_domodule lib/*.py - - python_foreach_impl python_newscript main.py ntlmaps - - python_foreach_impl python_optimize - - dodoc doc/*.txt - dohtml doc/*.{gif,htm} - - insopts -m0640 -g ntlmaps - insinto /etc/ntlmaps - doins server.cfg - newinitd "${FILESDIR}/ntlmaps.init" ntlmaps - systemd_dounit "${FILESDIR}"/${PN}.service - - diropts -m 0770 -g ntlmaps - keepdir /var/log/ntlmaps -} diff --git a/net-proxy/sshproxy/Manifest b/net-proxy/sshproxy/Manifest deleted file mode 100644 index 9033dc555390..000000000000 --- a/net-proxy/sshproxy/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST sshproxy-0.6.0_beta2.tar.gz 131958 SHA256 c36fbd22d1315f290a9bfefa176bc29c82e0bf450a75a1bd0a09cfa54b08363c SHA512 74e3de94c7fa6fc0b1202e0fc98b4ada150864c8a8c2cac6148c58db82a670680036055717a27ca291d4e8eb7c76929c4ac27b88f905ce624e01e58f257e1ffd WHIRLPOOL 8a8e13c585d3c34fb8e2f5244e6f03fe8485975fa36d9d2c2978655b11a9dd318c05bd9bb3a38130f997d527decbfc47fae067bef4076f1875307e516f603569 diff --git a/net-proxy/sshproxy/files/sshproxy-0.6.0_beta2-rename-wrappers.patch b/net-proxy/sshproxy/files/sshproxy-0.6.0_beta2-rename-wrappers.patch deleted file mode 100644 index 765bd9d5bdf9..000000000000 --- a/net-proxy/sshproxy/files/sshproxy-0.6.0_beta2-rename-wrappers.patch +++ /dev/null @@ -1,159 +0,0 @@ -diff -Nru sshproxy-0.6.0_beta2.orig/lib/get_client_scripts/getscript.py sshproxy-0.6.0_beta2/lib/get_client_scripts/getscript.py ---- sshproxy-0.6.0_beta2.orig/lib/get_client_scripts/getscript.py 2008-01-28 01:44:29.000000000 +0200 -+++ sshproxy-0.6.0_beta2/lib/get_client_scripts/getscript.py 2009-07-23 10:34:01.000000000 +0300 -@@ -22,7 +22,7 @@ - from sshproxy import get_class - from sshproxy.util import chanfmt - --pssh = """#!/bin/bash -+spssh = """#!/bin/bash - - PROXY_PORT=${SSHPROXY_PORT:-%(port)d} - PROXY_HOST=${SSHPROXY_HOST:-%(ip_addr)s} -@@ -32,7 +32,7 @@ - exec ssh -tp $PROXY_PORT $PROXY_USER@$PROXY_HOST -- "$@" - """ - --pscp = """#!/bin/bash -+spscp = """#!/bin/bash - - PROXY_PORT=${SSHPROXY_PORT:-%(port)s} - PROXY_HOST=${SSHPROXY_HOST:-%(ip_addr)s} -@@ -79,26 +79,26 @@ - class Server(base_class): - def add_cmdline_options(self, parser): - base_class.add_cmdline_options(self, parser) -- parser.add_option("", "--get-pssh", dest="action", -- help="display pssh client script.", -+ parser.add_option("", "--get-spssh", dest="action", -+ help="display spssh client script.", - action="store_const", -- const="get_pssh", -+ const="get_spssh", - ) -- parser.add_option("", "--get-pscp", dest="action", -- help="display pscp client script.", -+ parser.add_option("", "--get-spscp", dest="action", -+ help="display spscp client script.", - action="store_const", -- const="get_pscp", -+ const="get_spscp", - ) - -- def opt_get_pssh(self, options, *args): -+ def opt_get_spssh(self, options, *args): - user = self.pwdb.get_client().username - ip_addr, port = self.ip_addr, self.port -- self.chan.send(pssh % locals()) -+ self.chan.send(spssh % locals()) - -- def opt_get_pscp(self, options, *args): -+ def opt_get_spscp(self, options, *args): - user = self.pwdb.get_client().username - ip_addr, port = self.ip_addr, self.port -- self.chan.send(pscp % locals()) -+ self.chan.send(spscp % locals()) - - - -diff -Nru sshproxy-0.6.0_beta2.orig/lib/get_client_scripts/__init__.py sshproxy-0.6.0_beta2/lib/get_client_scripts/__init__.py ---- sshproxy-0.6.0_beta2.orig/lib/get_client_scripts/__init__.py 2008-01-28 01:44:29.000000000 +0200 -+++ sshproxy-0.6.0_beta2/lib/get_client_scripts/__init__.py 2009-07-23 10:32:34.000000000 +0300 -@@ -21,11 +21,11 @@ - - __plugin_name__ = "Get Client Scripts" - __description__ = """ -- This plugin allows clients to download the pssh and -- pscp wrapper scripts with special options on the ssh -+ This plugin allows clients to download the spssh and -+ spscp wrapper scripts with special options on the ssh - command line: -- ssh -tp 2242 user@sshproxy -- --get-pssh -- ssh -tp 2242 user@sshproxy -- --get-pscp -+ ssh -tp 2242 user@sshproxy -- --get-spssh -+ ssh -tp 2242 user@sshproxy -- --get-spscp - """ - - def __init_plugin__(): -diff -Nru sshproxy-0.6.0_beta2.orig/misc/acl.db sshproxy-0.6.0_beta2/misc/acl.db ---- sshproxy-0.6.0_beta2.orig/misc/acl.db 2008-01-28 01:44:29.000000000 +0200 -+++ sshproxy-0.6.0_beta2/misc/acl.db 2009-07-23 10:30:30.000000000 +0300 -@@ -78,13 +78,13 @@ - # options ###################################################### - - # opt_list_sites is to allow or deny the use of the --list-sites option: --# $ pssh --list-sites -+# $ spssh --list-sites - opt_list_sites: - # guests group members can't see the list of allowed sites (they're blind) - client.group != "guests" - --# opt_get_pkey controls the option --get-pkey of pssh: --# $ pssh --get-pkey root@host -+# opt_get_pkey controls the option --get-pkey of spssh: -+# $ spssh --get-pkey root@host - opt_get_pkey: - # only admins can get the public key of a site login - "admin" in split(client.groups) -diff -Nru sshproxy-0.6.0_beta2.orig/README sshproxy-0.6.0_beta2/README ---- sshproxy-0.6.0_beta2.orig/README 2008-01-28 01:44:29.000000000 +0200 -+++ sshproxy-0.6.0_beta2/README 2009-07-23 10:23:21.000000000 +0300 -@@ -95,9 +95,9 @@ - root@remote-site # exit - me@myhost $ - --Here is the same with the pssh shell wrapper:: -+Here is the same with the spssh shell wrapper:: - -- me@myhost $ pssh remote-site -+ me@myhost $ spssh remote-site - root@remote-site # - ... doing some administration commands ... - root@remote-site # exit -@@ -105,7 +105,7 @@ - - You can also execute remote commands:: - -- me@myhost $ pssh remote-site uname -a -+ me@myhost $ spssh remote-site uname -a - nova.wallix.com - me@myhost $ - -@@ -114,9 +114,9 @@ - me@myhost $ scp /etc/issue me@proxy:root@remote-site:/etc/issue.new - me@myhost $ - --And the same with the pscp shell wrapper:: -+And the same with the spscp shell wrapper:: - -- me@myhost $ pscp /etc/issue remote-site:/etc/issue.new -+ me@myhost $ spscp /etc/issue remote-site:/etc/issue.new - me@myhost $ - - -diff -Nru sshproxy-0.6.0_beta2.orig/setup.py sshproxy-0.6.0_beta2/setup.py ---- sshproxy-0.6.0_beta2.orig/setup.py 2008-01-28 01:44:29.000000000 +0200 -+++ sshproxy-0.6.0_beta2/setup.py 2009-07-23 10:22:31.000000000 +0300 -@@ -74,7 +74,7 @@ - url=url, - download_url='%sdownload/sshproxy-%s.tar.gz' % (url, version), - packages=['sshproxy'], -- scripts=['bin/sshproxyd', 'bin/sshproxy-setup', 'bin/pssh', 'bin/pscp'], -+ scripts=['bin/sshproxyd', 'bin/sshproxy-setup', 'bin/spssh', 'bin/spscp'], - long_description=long_description, - data_files=data_files, - classifiers=classifiers, -diff -Nru sshproxy-0.6.0_beta2.orig/sshproxy/server.py sshproxy-0.6.0_beta2/sshproxy/server.py ---- sshproxy-0.6.0_beta2.orig/sshproxy/server.py 2008-01-28 01:44:29.000000000 +0200 -+++ sshproxy-0.6.0_beta2/sshproxy/server.py 2009-07-23 10:30:44.000000000 +0300 -@@ -308,8 +308,8 @@ - - def parse_cmdline(self, args): - usage = u""" -- pssh [options] -- pssh [user@site [cmd]] -+ spssh [options] -+ spssh [user@site [cmd]] - """ - parser = OptionParser(self.chan, usage=usage) - # add options from a mapping or a Registry callback diff --git a/net-proxy/sshproxy/files/sshproxy.ini b/net-proxy/sshproxy/files/sshproxy.ini deleted file mode 100644 index c37cb374b3d2..000000000000 --- a/net-proxy/sshproxy/files/sshproxy.ini +++ /dev/null @@ -1,26 +0,0 @@ -[sshproxy] -max_connections = 0 -client_db = ini_db -pkey_id = sshproxy@%HOSTNAME% -plugin_dir = /usr/lib/sshproxy -plugin_list = ini_db -port = 2242 -logger_conf = /usr/share/sshproxy/logger.conf -cipher_type = blowfish -log_dir = /var/log/sshproxy -acl_db = ini_db -site_db = ini_db -listen_on = -auto_add_key = no - -[blowfish] -secret = %BLOWFISH_SECRET% - -[client_db.ini] -file = /var/lib/sshproxy/client.db - -[acl_db.ini] -file = /var/lib/sshproxy/acl.db - -[site_db.ini] -db_path = /var/lib/sshproxy/site.db diff --git a/net-proxy/sshproxy/files/sshproxyd.confd b/net-proxy/sshproxy/files/sshproxyd.confd deleted file mode 100644 index a6f715df09d4..000000000000 --- a/net-proxy/sshproxy/files/sshproxyd.confd +++ /dev/null @@ -1,7 +0,0 @@ -# /etc/conf.d/sshproxyd: config file for /etc/init.d/sshproxyd - -# Where is your sshproxy.ini file stored? -SSHPROXYD_CONFDIR="/etc/sshproxy" - -# What user runs the proxy? -SSHPROXYD_USER="sshproxy" diff --git a/net-proxy/sshproxy/files/sshproxyd.initd b/net-proxy/sshproxy/files/sshproxyd.initd deleted file mode 100644 index 52dd72a771ee..000000000000 --- a/net-proxy/sshproxy/files/sshproxyd.initd +++ /dev/null @@ -1,22 +0,0 @@ -#!/sbin/runscript - -depend() { - need net - use logger mysql -} - -start() { - ebegin "Starting SSH Proxy daemon" - start-stop-daemon --start --background \ - --pidfile /var/run/sshproxyd.pid --exec /usr/bin/sshproxyd -- \ - --daemon --user ${SSHPROXYD_USER:-sshproxy} \ - --config-dir ${SSHPROXYD_CONFDIR:-/etc/sshproxy} \ - --pid /var/run/sshproxyd.pid - eend $? -} - -stop() { - ebegin "Stopping SSH Proxy daemon" - start-stop-daemon --quiet --stop --pidfile /var/run/sshproxyd.pid - eend $? -} diff --git a/net-proxy/sshproxy/metadata.xml b/net-proxy/sshproxy/metadata.xml deleted file mode 100644 index 563dd784f3bf..000000000000 --- a/net-proxy/sshproxy/metadata.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<longdescription> -sshproxy is a pure python implementation of an ssh proxy. It allows users to connect to remote sites without having to remember -or even know the password or key of the remote sites. There are 2 possible scenarios which could possibly interest you. - - Scenario 1: Team mode -If you're in charge of a lot of remote sites, and your company has several administrators to do some remote administration tasks, -then no user will ever need to know the password or key of the servers he administrates. When an employee quits your company, -you just have to delete his entry in the proxy database, and he will never be able to connect to the remote site. - - Scenario 2: Forwarding mode -You want to allow some people to connect through your firewall to a range of server inside your DMZ or LAN, but you don't want to -open one port for each server. What you can do is open the sshproxy port and setup the password database to proxy each -external user to it's own desktop, or create groups of users allowed to connect to your DMZ servers. -</longdescription> -<use> - <flag name="client-only">Install only the client wrappers</flag> -</use> -</pkgmetadata> diff --git a/net-proxy/sshproxy/sshproxy-0.6.0_beta2-r2.ebuild b/net-proxy/sshproxy/sshproxy-0.6.0_beta2-r2.ebuild deleted file mode 100644 index 9a1feec905b8..000000000000 --- a/net-proxy/sshproxy/sshproxy-0.6.0_beta2-r2.ebuild +++ /dev/null @@ -1,197 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" -PYTHON_COMPAT=( python2_7 ) -DISTUTILS_SINGLE_IMPL=1 - -inherit distutils-r1 eutils user - -DESCRIPTION="sshproxy is an ssh gateway to apply ACLs on ssh connections" -HOMEPAGE="http://sshproxy-project.org/" -SRC_URI="http://sshproxy-project.org/download/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="client-only mysql minimal" -# mysql: install the mysql_db backend driver -# minimal: do not install extra plugins -# client-only: install only the client wrappers - -DEPEND="!client-only? ( - >=dev-python/paramiko-1.6.3[${PYTHON_USEDEP}] - mysql? ( >=dev-python/mysql-python-1.2.0[${PYTHON_USEDEP}] ) - )" -RDEPEND="${DEPEND} - net-misc/openssh" - -pkg_setup() { - python-single-r1_pkg_setup - enewgroup sshproxy - enewuser sshproxy -1 -1 /var/lib/sshproxy sshproxy -} - -src_prepare() { - # avoid conflicts with net-misc/putty and net-misc/pssh - # by renaming pscp and pssh scripts (#248193 and #278794) - epatch "${FILESDIR}"/${P}-rename-wrappers.patch - sed -i -e 's/pscp/spscp/g;s/pssh/spssh/g' doc/* && \ - mv bin/pssh bin/spssh && \ - mv bin/pscp bin/spscp && \ - mv doc/pscp.1 doc/spscp.1 && \ - mv doc/pssh.1 doc/spssh.1 || die "failed to rename pscp or pssh files" - ewarn "For avoiding conflicts with net-misc/putty and net-misc/pssh," - ewarn "pscp and pssh scripts have been renamed as spscp respectively spssh." - - sed -i -e 's/if paramiko.__version_info__ < (1, 6, 3):/if False:/g' "${S}"/sshproxy/__init__.py || die 'Sed failed.' -} - -src_install () { - dobin bin/spscp - dobin bin/spssh - - if ! use client-only; then - distutils-r1_src_install - - diropts -o sshproxy -g sshproxy -m0750 - keepdir /var/lib/sshproxy - keepdir /var/log/sshproxy - - # Create a default sshproxy.ini - dodir /etc/sshproxy - insopts -o root -g sshproxy -m0600 - insinto /etc/sshproxy - doins "${FILESDIR}/sshproxy.ini" - local BLOWFISH_SECRET=$(printf "%04hX%04hX%04hX%04hX\n" ${RANDOM} ${RANDOM} ${RANDOM} ${RANDOM}) - sed -i -e "s/%BLOWFISH_SECRET%/${BLOWFISH_SECRET}/" \ - -e "s/%HOSTNAME%/${HOSTNAME}/" \ - "${D}/etc/sshproxy/sshproxy.ini" - - insopts -o sshproxy -g sshproxy -m0600 - rm -rf "${D}/usr/lib/sshproxy/spexpect" - if use minimal; then - local p - for p in acl_funcs console_extra logusers; do - rm -rf "${D}/usr/lib/sshproxy/${p}" - done - else - keepdir /var/log/sshproxy/logusers - { # initialize a reasonable value for the logusers plugin - echo - echo "[logusers]" - echo "logdir = /var/log/sshproxy/logusers" - echo - } >> "${D}/etc/sshproxy/sshproxy.ini" - fi - - # init/conf files for sshproxy daemon - newinitd "${FILESDIR}/sshproxyd.initd" sshproxyd - newconfd "${FILESDIR}/sshproxyd.confd" sshproxyd - - # install manpages - doman doc/spscp.1 - doman doc/spssh.1 - if ! use client-only; then - doman doc/sshproxy.ini.5 - doman doc/sshproxy-setup.8 - doman doc/sshproxyd.8 - fi - - if use mysql; then - insinto /usr/share/sshproxy/mysql_db - doins misc/mysql_db.sql - doins misc/sshproxy-mysql-user.sql - else - rm -rf "${D}/usr/lib/sshproxy/mysql_db" - sed -i -e 's/[ \t]\+mysql//' \ - "${D}/etc/init.d/sshproxyd" || die 'Sed failed.' - fi - fi -} - -pkg_postinst () { - echo - einfo "Don't forget to set the following environment variables" - einfo " SSHPROXY_HOST (default to localhost)" - einfo " SSHPROXY_PORT (default to 2242)" - einfo " SSHPROXY_USER (default to \$USER)" - einfo "for each sshproxy user." - if ! use client-only; then - distutils_pkg_postinst - - echo - einfo "If this is your first installation, run" - einfo " emerge --config =${CATEGORY}/${PF}" - einfo "to initialize the backend and configure sshproxy." - echo - einfo "There is no need to install sshproxy on a client machine." - einfo "You can connect to a SSH server using this proxy by running" - einfo " ssh -tp PROXY_PORT PROXY_USER@PROXY_HOST -- REMOTE_USER@REMOTE_HOST" - fi -} - -pkg_config() { - if [[ -d "${ROOT}/usr/lib/sshproxy/mysql_db" ]]; then - local PASSWD=$(printf "%04hX%04hX%04hX%04hX\n" ${RANDOM} ${RANDOM} ${RANDOM} ${RANDOM}) - local SHARE="${ROOT}/usr/share/sshproxy/mysql_db" - local DB_HOST DB_PORT - read -p "Enter the MySQL host (default localhost): " DB_HOST - [[ -n "${DB_HOST}" ]] || DB_HOST=localhost - read -p "Enter the MySQL port (default 3306): " DB_PORT - [[ -n "${DB_PORT}" ]] || DB_PORT=3306 - - ewarn "When prompted for a password, enter your MySQL root password" - ewarn - - if mysql -h ${DB_HOST} -P ${DB_PORT} -u root -p <<EOF ; then -CREATE DATABASE sshproxy; -USE sshproxy; -$(sed -e "s/sshproxypw/${PASSWD}/g" "${SHARE}/sshproxy-mysql-user.sql") -$(<"${SHARE}/mysql_db.sql") -EOF - - { - echo - echo "[client_db.mysql]" - echo "host = ${DB_HOST}" - echo "password = ${PASSWD}" - echo "db = sshproxy" - echo "user = sshproxy" - echo "port = ${DB_PORT}" - echo - echo "[acl_db.mysql]" - echo "host = ${DB_HOST}" - echo "password = ${PASSWD}" - echo "db = sshproxy" - echo "user = sshproxy" - echo "port = ${DB_PORT}" - echo - echo "[site_db.mysql]" - echo "host = ${DB_HOST}" - echo "password = ${PASSWD}" - echo "db = sshproxy" - echo "user = sshproxy" - echo "port = ${DB_PORT}" - } >> "${ROOT}/etc/sshproxy/sshproxy.ini" - - sed -i -e 's/^\(\(acl\|client\|site\)_db = \)ini_db/\1mysql_db/g' \ - "${ROOT}/etc/sshproxy/sshproxy.ini" - grep -q "^plugin_list .* mysql_db" \ - "${ROOT}/etc/sshproxy/sshproxy.ini" || \ - sed -i -e 's/^\(plugin_list = .*\)$/\1 mysql_db/g' \ - "${ROOT}/etc/sshproxy/sshproxy.ini" - else - ewarn "Failed to create MySQL database!" - ewarn "If the database already existed and you want to replace it," - ewarn "hit Ctrl-C now and drop the old database by running the command:" - ewarn " /usr/bin/mysqladmin -h ${DB_HOST} -P ${DB_PORT} -u root -p drop sshproxy" - read -p "Hit Ctrl-C to stop the procedure or Enter to continue " key - fi - fi - - INITD_STARTUP="/etc/init.d/sshproxyd start" chroot "${ROOT}" \ - sshproxy-setup -u sshproxy -c /etc/sshproxy -} |