# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Little hack which accepts both https and ssh connection on the same port." HOMEPAGE="http://www.rutschle.net/tech/sslh.shtml" SRC_URI="http://www.rutschle.net/tech/${P}.tar.gz" KEYWORDS="~amd64 ~x86" LICENSE="GPL-2" SLOT="0" IUSE="" DEPEND="" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} echo ${S} sed -i 's/USELIBWRAP=1/#USELIBWRAP=1/' ${S}/Makefile } src_install() { # install binary and doc file dosbin ${S}/sslh dodoc ${S}/README # modify conf.d file echo "USER=nobody" >> ${S}/scripts/etc.default.sslh sed -i 's/ifname/'`hostname`'/' ${S}/scripts/etc.default.sslh # install init.d script and conf.d file newinitd ${FILESDIR}/sslh.init.d sslh newconfd ${S}/scripts/etc.default.sslh sslh } pkg_postinst() { einfo einfo "Because sslh should be running on a external network interface, you must run" einfo "your SSL Apache server on different interface (e.g. localhost:443)!" einfo "You can change some settings in /etc/conf.d/sslh." einfo }