summaryrefslogtreecommitdiffstats
path: root/net-misc/httptunnel
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/httptunnel')
-rw-r--r--net-misc/httptunnel/Manifest6
-rwxr-xr-xnet-misc/httptunnel/files/htc31
-rw-r--r--net-misc/httptunnel/files/htc.sysconfig13
-rwxr-xr-xnet-misc/httptunnel/files/hts20
-rw-r--r--net-misc/httptunnel/files/hts.sysconfig12
-rw-r--r--net-misc/httptunnel/httptunnel-3.3-r1.ebuild33
6 files changed, 115 insertions, 0 deletions
diff --git a/net-misc/httptunnel/Manifest b/net-misc/httptunnel/Manifest
new file mode 100644
index 0000000..1a45d70
--- /dev/null
+++ b/net-misc/httptunnel/Manifest
@@ -0,0 +1,6 @@
+AUX htc 643 RMD160 84d138856798707c7c46d41dba9b81125e71d62e SHA1 67895977fd492c57d0f67e117a75172007b2597c SHA256 f6ec7ade4a7e188888a78898bbe8d4234349009299d03542c4be90b9b4860b82
+AUX htc.sysconfig 213 RMD160 09116d614b30e742fbd969f6418cb8051a9226cc SHA1 d72d48fdca00aac752cc75f2d84b18c1d4337194 SHA256 468fdeb7cfe16cca1787533da0b30628a99c93006d9d296ac2084c8a63534caa
+AUX hts 492 RMD160 fecd4c2ed4b7dbf2eb36730c46991ec392292cca SHA1 cad9e1303c5c51bad879863b5fe8b95fe9b809f9 SHA256 5fe3cd340414ed51e00548fddfcd1f8da957b3db7f9d35eaff5cbbc6ed941a35
+AUX hts.sysconfig 232 RMD160 4841a5776df7a4256a57eb4838ec3bda03424466 SHA1 56cd0d049b9172dabca8bfac8964f261dada0632 SHA256 3c10b6b356c309314fb59481dfc1bc53a7bc76556795d60e60fe9e88520d612b
+DIST httptunnel-3.3.tar.gz 262749 RMD160 0e0a34dbe122510b19a2e37f3dcaeab8ff7cae5d SHA1 e3fa5c6499cbad9202bb7a3ba8a5b6478a60a3f3 SHA256 142f82b204876c2aa90f19193c7ff78d90bb4c2cba99dfd4ef625864aed1c556
+EBUILD httptunnel-3.3-r1.ebuild 1014 RMD160 c13eff5d95b69e3f2d560933c5dd6e92ec145a22 SHA1 6a588de5f562dcd99767da22a2e330b52d1240d6 SHA256 0e8f4b846d15dd80a93ed612e9f08693afa429611e871630efb2547edb2131a9
diff --git a/net-misc/httptunnel/files/htc b/net-misc/httptunnel/files/htc
new file mode 100755
index 0000000..c06fcb1
--- /dev/null
+++ b/net-misc/httptunnel/files/htc
@@ -0,0 +1,31 @@
+#!/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 httptunnel (client)"
+
+ htc_args=""
+ if [ -n "$HTC_PROXY" ]; then
+ htc_args="$htc_args -P $HTC_PROXY"
+ fi
+
+ if [ -n "$HTC_SERVICE_PORT" ]; then
+ htc_args="$htc_args -F $HTC_SERVICE_PORT"
+ fi
+
+ start-stop-daemon --start --quiet --exec /usr/bin/htc -c nobody -- $htc_args $HTC_SERVER:$HTC_PORT
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping httptunnel (client)"
+ start-stop-daemon --stop --retry 5 --quiet --name htc
+ eend $?
+}
diff --git a/net-misc/httptunnel/files/htc.sysconfig b/net-misc/httptunnel/files/htc.sysconfig
new file mode 100644
index 0000000..f31ba55
--- /dev/null
+++ b/net-misc/httptunnel/files/htc.sysconfig
@@ -0,0 +1,13 @@
+###
+## Client Configuration
+###
+
+# Server and port HTS is running on
+HTC_SERVER=darkserv1.dyndns.org
+HTC_PORT=8080
+
+# Proxy Server
+HTC_PROXY=217.113.0.1:80
+
+# The port HTC is listinening for
+HTC_SERVICE_PORT=5000
diff --git a/net-misc/httptunnel/files/hts b/net-misc/httptunnel/files/hts
new file mode 100755
index 0000000..37b902b
--- /dev/null
+++ b/net-misc/httptunnel/files/hts
@@ -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 $HTS_SERVICE
+}
+
+start() {
+ ebegin "Starting httptunnel (server)"
+ start-stop-daemon --start --quiet --exec /usr/bin/hts -c nobody -- -S -F $HTS_SERVICE_SERVER:$HTS_SERVICE_PORT $HTS_PORT
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping httptunnel (server)"
+ start-stop-daemon --stop --retry 5 --quiet --name hts
+ eend $?
+}
diff --git a/net-misc/httptunnel/files/hts.sysconfig b/net-misc/httptunnel/files/hts.sysconfig
new file mode 100644
index 0000000..eb3fd3b
--- /dev/null
+++ b/net-misc/httptunnel/files/hts.sysconfig
@@ -0,0 +1,12 @@
+###
+## Server Configuration
+###
+
+# Port HTS listening for connections
+HTS_PORT=8080
+
+# Service connections are redirected to.
+HTS_SERVICE=vtun
+# Server and port service running on
+HTS_SERVICE_SERVER=localhost
+HTS_SERVICE_PORT=5000
diff --git a/net-misc/httptunnel/httptunnel-3.3-r1.ebuild b/net-misc/httptunnel/httptunnel-3.3-r1.ebuild
new file mode 100644
index 0000000..3911c26
--- /dev/null
+++ b/net-misc/httptunnel/httptunnel-3.3-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/httptunnel/httptunnel-3.3.ebuild,v 1.4 2005/08/13 23:14:57 hansmi Exp $
+
+DESCRIPTION="httptunnel can create IP tunnels through firewalls/proxies using HTTP"
+HOMEPAGE="http://www.nocrew.org/software/httptunnel.html"
+LICENSE="GPL-2"
+DEPEND=""
+KEYWORDS="ppc sparc x86 amd64"
+IUSE=""
+SLOT="0"
+#RDEPEND=""
+SRC_URI="http://www.nocrew.org/software/httptunnel/${P}.tar.gz"
+
+src_compile() {
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+ emake || die
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+
+ dodir /etc/conf.d /etc/init.d
+ install -c -m 755 "${FILESDIR}"/htc ${D}/etc/init.d
+ install -c -m 755 "${FILESDIR}"/hts ${D}/etc/init.d
+ install -c -m 644 "${FILESDIR}"/htc.sysconfig ${D}/etc/conf.d/htc
+ install -c -m 644 "${FILESDIR}"/hts.sysconfig ${D}/etc/conf.d/hts
+}
+