1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs
9 DESCRIPTION="SSLH lets one accept both HTTPS and SSH connections on the same port"
10 HOMEPAGE="http://www.rutschle.net/tech/sslh.shtml"
11 SRC_URI="http://www.rutschle.net/tech/${P}.tar.gz"
18 RDEPEND="net-libs/libnet"
23 sed -e "/^USELIBWRAP=1/d" \
25 -e "s/\(\$(LIBS)\)$/\1 ${LDFLAGS}/" -i Makefile || die "sed failed"
29 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
33 dobin sslh || die "dobin failed"
34 doman sslh.8.gz || die "doman failed"
36 newinitd "${FILESDIR}"/sslh.init sslh
37 newconfd "${FILESDIR}"/sslh.conf sslh