# 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() { dodoc ${S}/README dosbin ${S}/sslh dodir /etc/init.d dodir /etc/conf.d cp ${FILESDIR}/sslh.init.d ${D}/etc/init.d/sslh cp ${S}/scripts/etc.default.sslh ${D}/etc/conf.d/sslh echo "USER=nobody" >> ${D}/etc/conf.d/sslh sed -i 's/ifname/'`hostname`'/' ${D}/etc/conf.d/sslh chmod 755 ${D}/etc/init.d/sslh chmod 644 ${D}/etc/conf.d/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 }