summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@gentoo.org>2009-11-04 18:28:11 +0000
committerTomás Touceda <chiiph@gentoo.org>2009-11-04 18:28:11 +0000
commitebffd14f0119222ce93f2f6c17f2aabb034c4297 (patch)
treeedc96642b8bfc3dedcd1f2518e6c32c21cfce0fc
parentdev-util/valide: Version bump for dev-util/valide. Thanks to ssuominen, Tommy... (diff)
downloadsunrise-reviewed-ebffd14f0119222ce93f2f6c17f2aabb034c4297.tar.gz
sunrise-reviewed-ebffd14f0119222ce93f2f6c17f2aabb034c4297.tar.bz2
sunrise-reviewed-ebffd14f0119222ce93f2f6c17f2aabb034c4297.zip
net-misc/sslh: New Ebuild for bug 251296. Thanks to ohnobinky and Tommy[D]
svn path=/sunrise/; revision=9460
-rw-r--r--net-misc/sslh/ChangeLog8
-rw-r--r--net-misc/sslh/Manifest6
-rw-r--r--net-misc/sslh/files/sslh.conf5
-rw-r--r--net-misc/sslh/files/sslh.init29
-rw-r--r--net-misc/sslh/metadata.xml5
-rw-r--r--net-misc/sslh/sslh-1.6i.ebuild38
6 files changed, 91 insertions, 0 deletions
diff --git a/net-misc/sslh/ChangeLog b/net-misc/sslh/ChangeLog
new file mode 100644
index 000000000..bf5c1fce9
--- /dev/null
+++ b/net-misc/sslh/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-misc/sslh
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 04 Nov 2009; Tomas Touceda (chiiph) <chiiph@gmail.com> +sslh-1.6i.ebuild,
+ +files/sslh.conf, +files/sslh.init, +metadata.xml:
+ New Ebuild for bug 251296. Thanks to ohnobinky and Tommy[D]
+
diff --git a/net-misc/sslh/Manifest b/net-misc/sslh/Manifest
new file mode 100644
index 000000000..6c9dce02b
--- /dev/null
+++ b/net-misc/sslh/Manifest
@@ -0,0 +1,6 @@
+AUX sslh.conf 98 RMD160 6b1cf8adf1528acb64d7ffe971d2c3d982bcc2bf SHA1 486dc0451b16a977a4c651af74f9b2858036e760 SHA256 7f9e6b0aba595e2b270725b6727e10144e6787ab10c941fd7b26813f40baa320
+AUX sslh.init 549 RMD160 37b607b1c7c7973594ae575feb076672e1b36b78 SHA1 1ccb881faa314c2451c04a4df4b9e797dadd151f SHA256 8045a02cc1fd746ed8c2044d58a7ec15c422525a858097d8c9c56889d71d0247
+DIST sslh-1.6i.tar.gz 8415 RMD160 992e81d571c594b200031efbfa35b703f2c6b900 SHA1 f6044ccd0236485a42baab03b16f1f4107f39c1d SHA256 b533860db6f9ae5be44778f7b3086a7454b00197accdb1be488b7fbaebee13ca
+EBUILD sslh-1.6i.ebuild 849 RMD160 9f8c00ff64a33e831b20f6ac61e20b60e5502a49 SHA1 dc6b1325bf99f20ee762a53257a37f6549aeb26d SHA256 dfdc2e777ab73cdae04edd36fac8a965db7330bdc386d891e245ce491afc725c
+MISC ChangeLog 306 RMD160 8c8a1a876d47775a216a1de154a4540d230f8e99 SHA1 8bb8c9258acc230947b8f834885c9eed7fbe173b SHA256 a1c31c6db9b04f8d2ec824d3224babc350d94379b84396cecdab8eba412a1fcc
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/net-misc/sslh/files/sslh.conf b/net-misc/sslh/files/sslh.conf
new file mode 100644
index 000000000..59057617e
--- /dev/null
+++ b/net-misc/sslh/files/sslh.conf
@@ -0,0 +1,5 @@
+# When you are done configuring set RUN=yes
+
+LISTEN=ifname:443
+SSH=localhost:22
+SSL=localhost:443
diff --git a/net-misc/sslh/files/sslh.init b/net-misc/sslh/files/sslh.init
new file mode 100644
index 000000000..206bab55c
--- /dev/null
+++ b/net-misc/sslh/files/sslh.init
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+start() {
+ if [ -z ${RUN} ]; then
+ eerror "You must edit the configure first"
+ return 1
+ fi
+
+ ebegin "Starting SSLH"
+ start-stop-daemon --start \
+ --pidfile /var/run/sslh/sslh.pid \
+ --exec /usr/bin/sslh -- -p ${LISTEN} -s ${SSH} -l ${SSL}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping SSLH"
+ start-stop-daemon --stop --quiet --retry 20 \
+ --pidfile /var/run/sslh/sslh.pid
+ eend $?
+}
+
+restart() {
+ stop
+ start
+}
diff --git a/net-misc/sslh/metadata.xml b/net-misc/sslh/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/net-misc/sslh/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/net-misc/sslh/sslh-1.6i.ebuild b/net-misc/sslh/sslh-1.6i.ebuild
new file mode 100644
index 000000000..81f59ccef
--- /dev/null
+++ b/net-misc/sslh/sslh-1.6i.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="SSLH lets one accept both HTTPS and SSH connections on the same port"
+HOMEPAGE="http://www.rutschle.net/tech/sslh.shtml"
+SRC_URI="http://www.rutschle.net/tech/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="net-libs/libnet"
+DEPEND="${RDEPEND}
+ dev-lang/perl"
+
+src_prepare() {
+ sed -e "/^USELIBWRAP=1/d" \
+ -e "/strip sslh/d" \
+ -e "s/\(\$(LIBS)\)$/\1 ${LDFLAGS}/" -i Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dobin sslh || die "dobin failed"
+ doman sslh.8.gz || die "doman failed"
+
+ newinitd "${FILESDIR}"/sslh.init sslh
+ newconfd "${FILESDIR}"/sslh.conf sslh
+}