# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $ DESCRIPTION="Client to configure an IPv6 tunnel to freenet6" HOMEPAGE="http://www.freenet6.net/" SRC_URI="http://simionato.org/gw6c4_2_2src.tar.gz" LICENSE="VPL-1.0" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa" DEPEND="" src_unpack() { unpack ${A} cd ${WORKDIR} mv tspc-advanced ${P} } src_compile() { emake all target=linux || die "Build Failed" } src_install() { dosbin bin/gw6c insopts -m 600 insinto /etc/freenet6 doins ${FILESDIR}/gw6c.conf exeinto /etc/freenet6/template doexe template/{linux,checktunnel}.sh doman man/{man5/gw6c.conf.5,man8/gw6c.8} exeinto /etc/init.d newexe ${FILESDIR}/gw6c.rc gw6c } pkg_postinst() { einfo "The freenet6 ebuild installs an init script named 'gw6c'" einfo "to coincide with the name of the client binary installed" einfo "To add support for a freenet6 connection at startup, do" einfo "" einfo "# rc-update add gw6c default" einfo "" einfo "The client is configured to connect anonymous, if you have" einfo "user/pass you can edit /etc/freenet6/gw6c.conf" }