summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2008-02-26 19:40:44 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2008-02-26 19:40:44 +0000
commit1271a2b991e21b4d7fe3ac8d6c15fac9f24fb2b4 (patch)
tree4b166929af3a502d119f732731bc8769050d9d00 /net-misc/freenet6/freenet6-5.1.ebuild
parentUse emake and remove pkgconfig from RDEPEND. (diff)
downloadgentoo-2-1271a2b991e21b4d7fe3ac8d6c15fac9f24fb2b4.tar.gz
gentoo-2-1271a2b991e21b4d7fe3ac8d6c15fac9f24fb2b4.tar.bz2
gentoo-2-1271a2b991e21b4d7fe3ac8d6c15fac9f24fb2b4.zip
Make initscript depend on bootmisc, as the daemon writes in /tmp.
Also version bump to 5.1, and fix quoting (Portage version: 2.1.4.4)
Diffstat (limited to 'net-misc/freenet6/freenet6-5.1.ebuild')
-rw-r--r--net-misc/freenet6/freenet6-5.1.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/net-misc/freenet6/freenet6-5.1.ebuild b/net-misc/freenet6/freenet6-5.1.ebuild
new file mode 100644
index 000000000000..f15834c7a390
--- /dev/null
+++ b/net-misc/freenet6/freenet6-5.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/freenet6-5.1.ebuild,v 1.1 2008/02/26 19:40:43 voyageur Exp $
+
+inherit eutils versionator
+
+MY_PV=$(replace_all_version_separators "_")
+DESCRIPTION="Client to configure an IPv6 tunnel to freenet6"
+HOMEPAGE="http://www.freenet6.net/"
+SRC_URI="mirror://gentoo/gw6c-${MY_PV}-RELEASE-src.tar.gz"
+
+LICENSE="VPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~sparc ~x86"
+IUSE=""
+
+DEPEND="dev-libs/openssl"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/tspc-advanced"
+
+src_compile() {
+ emake all configdir=/etc/freenet6 target=linux || die "Build Failed"
+ sed -i "s#tsp-#/tmp/tsp-#" bin/gw6c.conf.sample
+}
+
+src_install() {
+ dosbin bin/gw6c
+
+ insopts -m 600
+ insinto /etc/freenet6
+ newins bin/gw6c.conf.sample gw6c.conf
+ exeinto /etc/freenet6/template
+ doexe template/{linux,checktunnel}.sh
+
+ newinitd "${FILESDIR}"/gw6c.rc gw6c
+
+ doman man/{man5/gw6c.conf.5,man8/gw6c.8}
+}
+
+pkg_postinst() {
+ if has_version '=net-misc/freenet6-1*' ; then
+ ewarn "Warning: you are upgrading from an older version"
+ ewarn "The configuration file has been renamed to gw6c.conf"
+ ewarn "Remember to port your personal settings from tspc.conf to it"
+ ewarn "The init script has been renamed to 'gw6c',"
+ else
+ elog "The freenet6 ebuild installs an init script named 'gw6c'"
+ fi
+ elog "to coincide with the name of the client binary installed"
+ elog "To add support for a freenet6 connection at startup, do"
+ elog ""
+ elog "# rc-update add gw6c default"
+}