summaryrefslogtreecommitdiff
path: root/net/proxytunnel
diff options
context:
space:
mode:
authorsborrill <sborrill@pkgsrc.org>2009-01-23 13:35:30 +0000
committersborrill <sborrill@pkgsrc.org>2009-01-23 13:35:30 +0000
commitcd9a534e860ae9567bb9b8f4a2d58963f335ab9d (patch)
tree9f87a424c2609b738554085c936cdd55ee2fbc71 /net/proxytunnel
parentb5f9ee16a82a85d77474b5c36e59ed7e606e9e60 (diff)
downloadpkgsrc-cd9a534e860ae9567bb9b8f4a2d58963f335ab9d.tar.gz
Import proxytunnel 1.9.0
ProxyTunnel is a program that connects stdin and stdout to a server somewhere on the network, through a standard HTTPS proxy. We mostly use it to tunnel SSH sessions through HTTP(S) proxies, allowing us to do many things that wouldn't be possible without ProxyTunnel.
Diffstat (limited to 'net/proxytunnel')
-rw-r--r--net/proxytunnel/DESCR18
-rw-r--r--net/proxytunnel/Makefile32
-rw-r--r--net/proxytunnel/PLIST3
-rw-r--r--net/proxytunnel/distinfo8
-rw-r--r--net/proxytunnel/patches/patch-Makefile15
-rw-r--r--net/proxytunnel/patches/patch-cmdline.c24
-rw-r--r--net/proxytunnel/patches/patch-proxytunnel.124
7 files changed, 124 insertions, 0 deletions
diff --git a/net/proxytunnel/DESCR b/net/proxytunnel/DESCR
new file mode 100644
index 00000000000..e076ff294f9
--- /dev/null
+++ b/net/proxytunnel/DESCR
@@ -0,0 +1,18 @@
+ProxyTunnel is a program that connects stdin and stdout to a server
+somewhere on the network, through a standard HTTPS proxy. We mostly use it
+to tunnel SSH sessions through HTTP(S) proxies, allowing us to do many
+things that wouldn't be possible without ProxyTunnel.
+
+Proxytunnel can currently do the following:
+- Create tunnels using HTTP and HTTPS proxies (That understand the HTTP
+ CONNECT command).
+- Work as a back-end driver for an OpenSSH client, and create SSH connections
+ through HTTP(S) proxies.
+- Work as a stand-alone application, listening on a port for connections, and
+ then tunneling these connections to a specified destination.
+
+If you want to make effective use of ProxyTunnel, the proxy server you are
+going to be tunneling through must adhere to some requirements:
+- Must support HTTP CONNECT command
+- Must allow you to connect to destination machine and host, with or without
+ HTTP proxy authentication
diff --git a/net/proxytunnel/Makefile b/net/proxytunnel/Makefile
new file mode 100644
index 00000000000..25f197972a6
--- /dev/null
+++ b/net/proxytunnel/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/23 13:35:30 sborrill Exp $
+#
+
+DISTNAME= proxytunnel-1.9.0
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=proxytunnel/}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://proxytunnel.sourceforge.net/
+COMMENT= Connect stdin/stdout to a remote host through a standard HTTPS proxy
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_TOOLS+= gmake
+BUILD_TARGET= proxytunnel
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1 bin
+
+SUBST_CLASSES+= fix-paths
+SUBST_STAGE.fix-paths= post-patch
+SUBST_MESSAGE.fix-paths= Fixing absolute paths.
+SUBST_FILES.fix-paths= proxytunnel.1
+SUBST_SED.fix-paths= -e 's,/usr,${PREFIX},g'
+
+do-install:
+ ${INSTALL} ${WRKSRC}/proxytunnel ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/proxytunnel.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/proxytunnel/PLIST b/net/proxytunnel/PLIST
new file mode 100644
index 00000000000..70853bc24eb
--- /dev/null
+++ b/net/proxytunnel/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/23 13:35:30 sborrill Exp $
+bin/proxytunnel
+man/man1/proxytunnel.1
diff --git a/net/proxytunnel/distinfo b/net/proxytunnel/distinfo
new file mode 100644
index 00000000000..457cfc2ffd9
--- /dev/null
+++ b/net/proxytunnel/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/23 13:35:30 sborrill Exp $
+
+SHA1 (proxytunnel-1.9.0.tgz) = 51d816125bb9e9bca267d35f861000eb0fa9d80b
+RMD160 (proxytunnel-1.9.0.tgz) = 5444861031fa256a5e0d2d83be297afc70137e8b
+Size (proxytunnel-1.9.0.tgz) = 46556 bytes
+SHA1 (patch-Makefile) = 21c7112f5b856916369038a91f597d30af6b5ff5
+SHA1 (patch-cmdline.c) = 6d56e2d307a2225cdd4ddb732dd64c6d9a7f48cc
+SHA1 (patch-proxytunnel.1) = 0556f23e769f2e52ef50cf952bacb9318b420228
diff --git a/net/proxytunnel/patches/patch-Makefile b/net/proxytunnel/patches/patch-Makefile
new file mode 100644
index 00000000000..c37105a5ce6
--- /dev/null
+++ b/net/proxytunnel/patches/patch-Makefile
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1.1.1 2009/01/23 13:35:30 sborrill Exp $
+
+Remove code which attempts to read svn revision numbers from source files for use in comments
+
+--- Makefile.orig 2009-01-23 12:55:03.000000000 +0000
++++ Makefile 2009-01-23 12:55:21.000000000 +0000
+@@ -5,7 +5,7 @@
+ CC ?= cc
+ CFLAGS ?= -Wall -O2 -ggdb
+
+-OPTFLAGS = -DREV=$(shell ./getrev.sh)
++#OPTFLAGS = -DREV=$(shell ./getrev.sh)
+
+ # Comment on non-gnu systems
+ OPTFLAGS += -DHAVE_GETOPT_LONG
diff --git a/net/proxytunnel/patches/patch-cmdline.c b/net/proxytunnel/patches/patch-cmdline.c
new file mode 100644
index 00000000000..3b3c888bf92
--- /dev/null
+++ b/net/proxytunnel/patches/patch-cmdline.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-cmdline.c,v 1.1.1.1 2009/01/23 13:35:30 sborrill Exp $
+
+Remove code which attempts to read svn revision numbers from source files for use in comments
+Fix spelling mistake
+
+--- cmdline.c.orig 2009-01-23 13:00:08.000000000 +0000
++++ cmdline.c 2009-01-23 13:01:02.000000000 +0000
+@@ -38,14 +38,14 @@
+ static char *getCredentialsFromFile( const char* filename, char **user, char **pass, char **rem_user, char **rem_pass);
+
+ void cmdline_parser_print_version (void) {
+- printf ("%s %s (rev %d) Copyright 2001-2008 Proxytunnel Project\n", PACKAGE, VERSION, REV);
++ printf ("%s %s Copyright 2001-2008 Proxytunnel Project\n", PACKAGE, VERSION);
+ }
+
+ void cmdline_parser_print_help (void) {
+ cmdline_parser_print_version ();
+ printf(
+ "Usage: %s [OPTIONS]...\n"
+-"Build generic tunnels trough HTTPS proxy's, supports HTTP authorization\n"
++"Build generic tunnels trough HTTPS proxies, supports HTTP authorization\n"
+ "\n"
+ "Standard options:\n"
+ // FIXME: " -c, --config=FILE Read config options from file\n"
diff --git a/net/proxytunnel/patches/patch-proxytunnel.1 b/net/proxytunnel/patches/patch-proxytunnel.1
new file mode 100644
index 00000000000..fa53472401c
--- /dev/null
+++ b/net/proxytunnel/patches/patch-proxytunnel.1
@@ -0,0 +1,24 @@
+$NetBSD: patch-proxytunnel.1,v 1.1.1.1 2009/01/23 13:35:30 sborrill Exp $
+
+Fix typos
+
+--- proxytunnel.1.orig 2008-02-22 21:20:41.000000000 +0000
++++ proxytunnel.1 2009-01-23 13:12:26.000000000 +0000
+@@ -16,7 +16,7 @@
+ .\" .sp <n> insert n+1 empty lines
+ .\" for manpage-specific macros, see man(7)
+ .SH NAME
+-proxytunnel \- program to tunnel a connection throught an standard
++proxytunnel \- program to tunnel a connection through a standard
+ HTTPS proxy.
+ .SH SYNOPSIS
+ .B proxytunnel
+@@ -37,7 +37,7 @@
+ Print help and exit.
+ .TP
+ .B \-V, \-\-version
+-kPrint the version of the program and exit.
++Print the version of the program and exit.
+ .TP
+ .B \-i, \-\-inetd
+ Run from inetd. Default is off.