summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-05 17:27:47 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-05 17:27:47 +0000
commit504a8cf2d29a3e2439fd919d04d95528a77fccee (patch)
tree6b0f8addc859fa58a80f564c630915529990402d /net-misc/sslh
parentVersion bump. (diff)
downloadhistorical-504a8cf2d29a3e2439fd919d04d95528a77fccee.tar.gz
historical-504a8cf2d29a3e2439fd919d04d95528a77fccee.tar.bz2
historical-504a8cf2d29a3e2439fd919d04d95528a77fccee.zip
Initial ebuild by Jiri Tyr #251296 and cleaned up by me.
Package-Manager: portage-2.2_rc65/cvs/Linux x86_64
Diffstat (limited to 'net-misc/sslh')
-rw-r--r--net-misc/sslh/ChangeLog10
-rw-r--r--net-misc/sslh/Manifest6
-rw-r--r--net-misc/sslh/files/sslh.conf.d4
-rwxr-xr-xnet-misc/sslh/files/sslh.init.d18
-rw-r--r--net-misc/sslh/metadata.xml5
-rw-r--r--net-misc/sslh/sslh-1.7a.ebuild45
6 files changed, 88 insertions, 0 deletions
diff --git a/net-misc/sslh/ChangeLog b/net-misc/sslh/ChangeLog
new file mode 100644
index 000000000000..f1184f3619a9
--- /dev/null
+++ b/net-misc/sslh/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/sslh
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/sslh/ChangeLog,v 1.1 2010/03/05 17:27:47 vapier Exp $
+
+*sslh-1.7a (05 Mar 2010)
+
+ 05 Mar 2010; Mike Frysinger <vapier@gentoo.org> +sslh-1.7a.ebuild,
+ +files/sslh.conf.d, +files/sslh.init.d, +metadata.xml:
+ Initial ebuild by Jiri Tyr #251296 and cleaned up by me.
+
diff --git a/net-misc/sslh/Manifest b/net-misc/sslh/Manifest
new file mode 100644
index 000000000000..19a35b3d964b
--- /dev/null
+++ b/net-misc/sslh/Manifest
@@ -0,0 +1,6 @@
+AUX sslh.conf.d 98 RMD160 ff293afae15d1e1b63a9a0b3d1144031d9ebe1c4 SHA1 2c1d277974553def905023936d76c0c2f11d9c13 SHA256 5677dcb1adec893f62da723ce25bae903724d8ece5ff6117872c1dbdb361f290
+AUX sslh.init.d 465 RMD160 5013d3022b67c95415b006f7d5c881deffca7ec9 SHA1 74c75e3e521c9e0cbe0b3e790ab4b62679bc24da SHA256 5b8608078fd436e414c77622582485246a29cba4a54ee3c036d0c369be2b1627
+DIST sslh-1.7a.tar.gz 9733 RMD160 79a156469ba4b10c493851be28d15898eaef4731 SHA1 11bcb9fd4285b06819d16db638ca111d8d43577a SHA256 add698342ea622e5085a26f05e4ec613763f71ff203202cadfa119a45659e13a
+EBUILD sslh-1.7a.ebuild 1014 RMD160 a1b8c1098098e734c9d635e65cad201b7e9fc4e7 SHA1 70c16cf52acbf4849a5a9c03fc2d38f93a1d604b SHA256 ca60c295de2b60b03b8c61de38691fdb2a1081073d96a761d651900bc0c11014
+MISC ChangeLog 411 RMD160 8c7fac497656cca95f244ac037431b823a4f2e6e SHA1 f33f116f2d3d314a4578d5db0c3c4a35060cb86e SHA256 b53a18e1eb082cbdc708e7ecfad7fb2d18888b4d1f8fff34d01c46dc559f2853
+MISC metadata.xml 160 RMD160 d86217bb48cf4283e08e43bcaabbc919101ad795 SHA1 d6147d00f16e8cfeef893d0764b0675a93d62849 SHA256 56fca1e06f6dcbe3bc12e7d3962998c7cb79d74f218ce8a17b07771b3e06f49e
diff --git a/net-misc/sslh/files/sslh.conf.d b/net-misc/sslh/files/sslh.conf.d
new file mode 100644
index 000000000000..95792bd4062e
--- /dev/null
+++ b/net-misc/sslh/files/sslh.conf.d
@@ -0,0 +1,4 @@
+# /etc/conf.d/sslh
+
+# Options to sslh itself. See the sslh(1) man page.
+#OPTIONS="-p someip:443"
diff --git a/net-misc/sslh/files/sslh.init.d b/net-misc/sslh/files/sslh.init.d
new file mode 100755
index 000000000000..f59d80ff6458
--- /dev/null
+++ b/net-misc/sslh/files/sslh.init.d
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/sslh/files/sslh.init.d,v 1.1 2010/03/05 17:27:40 vapier Exp $
+
+start() {
+ ebegin "Starting sslh"
+ start-stop-daemon --start \
+ --exec /usr/bin/sslh -- ${OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping sslh"
+ start-stop-daemon --stop --quiet --retry 20 \
+ --pidfile /var/run/sslh.pid
+ eend $?
+}
diff --git a/net-misc/sslh/metadata.xml b/net-misc/sslh/metadata.xml
new file mode 100644
index 000000000000..20ce219711a2
--- /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>no-herd</herd>
+</pkgmetadata>
diff --git a/net-misc/sslh/sslh-1.7a.ebuild b/net-misc/sslh/sslh-1.7a.ebuild
new file mode 100644
index 000000000000..e569a2b9c9a0
--- /dev/null
+++ b/net-misc/sslh/sslh-1.7a.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/sslh/sslh-1.7a.ebuild,v 1.1 2010/03/05 17:27:47 vapier Exp $
+
+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="~amd64 ~x86"
+IUSE="tcpd"
+
+RDEPEND="net-libs/libnet
+ tcpd? ( sys-apps/tcp-wrappers )"
+DEPEND="${RDEPEND}
+ dev-lang/perl"
+
+src_prepare() {
+ sed -i \
+ -e '/strip sslh/d' \
+ -e '/^LIBS=/s:$: $(LDFLAGS):' \
+ -e '/^CFLAGS=/{s:=:+=:;s:$: $(CPPFLAGS):}' \
+ Makefile || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ USELIBWRAP=$(use tcpd && echo 1 || echo 0) \
+ || die
+}
+
+src_install() {
+ dobin sslh || die
+ doman sslh.8.gz || die
+ dodoc ChangeLog README
+
+ newinitd "${FILESDIR}"/sslh.init.d sslh
+ newconfd "${FILESDIR}"/sslh.conf.d sslh
+}