summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2010-05-03 09:59:23 +0000
committerThilo Bangert <bangert@gentoo.org>2010-05-03 09:59:23 +0000
commit36dfa663998399fee8b771a3301e45f3380c6916 (patch)
tree860f5de6dcc31af5e27e92fbebeb6fda2654e3e5 /net-misc/miredo
parentRestrict test suite which is broken with gcc-4.3 and above on all old ebuilds... (diff)
downloadgentoo-2-36dfa663998399fee8b771a3301e45f3380c6916.tar.gz
gentoo-2-36dfa663998399fee8b771a3301e45f3380c6916.tar.bz2
gentoo-2-36dfa663998399fee8b771a3301e45f3380c6916.zip
initial import - in part based on the work Clemmit Sigler and Samuel Tardieu (bug #77603) - Thanks
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'net-misc/miredo')
-rw-r--r--net-misc/miredo/ChangeLog12
-rw-r--r--net-misc/miredo/files/miredo-server.conf6
-rw-r--r--net-misc/miredo/files/miredo-server.rc24
-rw-r--r--net-misc/miredo/files/miredo.conf6
-rw-r--r--net-misc/miredo/files/miredo.rc24
-rw-r--r--net-misc/miredo/metadata.xml15
-rw-r--r--net-misc/miredo/miredo-1.2.3.ebuild47
7 files changed, 134 insertions, 0 deletions
diff --git a/net-misc/miredo/ChangeLog b/net-misc/miredo/ChangeLog
new file mode 100644
index 000000000000..eb5754bfe60e
--- /dev/null
+++ b/net-misc/miredo/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for net-misc/miredo
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/miredo/ChangeLog,v 1.1 2010/05/03 09:59:23 bangert Exp $
+
+*miredo-1.2.3 (03 May 2010)
+
+ 03 May 2010; Thilo Bangert <bangert@gentoo.org> +miredo-1.2.3.ebuild,
+ +files/miredo.conf, +files/miredo.rc, +files/miredo-server.conf,
+ +files/miredo-server.rc, +metadata.xml:
+ initial import - in part based on the work Clemmit Sigler and Samuel
+ Tardieu (bug #77603)
+
diff --git a/net-misc/miredo/files/miredo-server.conf b/net-misc/miredo/files/miredo-server.conf
new file mode 100644
index 000000000000..167162db79de
--- /dev/null
+++ b/net-misc/miredo/files/miredo-server.conf
@@ -0,0 +1,6 @@
+# Load the tun module
+MIREDO_MODPROBE_TUN="yes"
+# Load the ipv6 module
+MIREDO_MODPROBE_IPV6="yes"
+# Options to pass to the miredo process
+MIREDO_OPTS=""
diff --git a/net-misc/miredo/files/miredo-server.rc b/net-misc/miredo/files/miredo-server.rc
new file mode 100644
index 000000000000..aae516513dc3
--- /dev/null
+++ b/net-misc/miredo/files/miredo-server.rc
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header $
+
+depend() {
+ need net
+ use dns logger
+}
+
+start() {
+ ebegin "Starting Miredo server"
+ [ "${MIREDO_SERVER_MODPROBE_IPV6}" == "yes" ] && modprobe ipv6
+ [ "${MIREDO_SERVER_MODPROBE_TUN}" == "yes" ] && modprobe tun
+ start-stop-daemon --start --quiet --exec /usr/sbin/miredo-server -- \
+ ${MIREDO_SERVER_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Miredo server"
+ start-stop-daemon --stop --quiet --pidfile /var/run/miredo-server.pid
+ eend $?
+}
diff --git a/net-misc/miredo/files/miredo.conf b/net-misc/miredo/files/miredo.conf
new file mode 100644
index 000000000000..167162db79de
--- /dev/null
+++ b/net-misc/miredo/files/miredo.conf
@@ -0,0 +1,6 @@
+# Load the tun module
+MIREDO_MODPROBE_TUN="yes"
+# Load the ipv6 module
+MIREDO_MODPROBE_IPV6="yes"
+# Options to pass to the miredo process
+MIREDO_OPTS=""
diff --git a/net-misc/miredo/files/miredo.rc b/net-misc/miredo/files/miredo.rc
new file mode 100644
index 000000000000..ded4790177ae
--- /dev/null
+++ b/net-misc/miredo/files/miredo.rc
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header $
+
+depend() {
+ need net
+ use dns logger
+}
+
+start() {
+ ebegin "Starting Miredo"
+ [ "${MIREDO_MODPROBE_IPV6}" == "yes" ] && modprobe ipv6
+ [ "${MIREDO_MODPROBE_TUN}" == "yes" ] && modprobe tun
+ start-stop-daemon --start --quiet --exec /usr/sbin/miredo -- \
+ ${MIREDO_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Miredo"
+ start-stop-daemon --stop --quiet --pidfile /var/run/miredo.pid
+ eend $?
+}
diff --git a/net-misc/miredo/metadata.xml b/net-misc/miredo/metadata.xml
new file mode 100644
index 000000000000..75286d8ef5bc
--- /dev/null
+++ b/net-misc/miredo/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>bangert@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+Miredo is an open-source Teredo IPv6 tunneling software, for Linux and the
+BSD operating systems. It includes functional implementations of all
+components of the Teredo specification (client, relay and server). It is
+meant to provide IPv6 connectivity even from behind NAT devices.
+</longdescription>
+</pkgmetadata>
+
diff --git a/net-misc/miredo/miredo-1.2.3.ebuild b/net-misc/miredo/miredo-1.2.3.ebuild
new file mode 100644
index 000000000000..d70af4a2998e
--- /dev/null
+++ b/net-misc/miredo/miredo-1.2.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/miredo/miredo-1.2.3.ebuild,v 1.1 2010/05/03 09:59:23 bangert Exp $
+
+EAPI=3
+
+inherit eutils
+
+DESCRIPTION="Miredo is an open-source Teredo IPv6 tunneling software."
+HOMEPAGE="http://www.remlab.net/miredo/"
+SRC_URI="http://www.remlab.net/files/miredo/miredo-1.2.3.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="+caps"
+
+DEPEND="dev-libs/judy
+ caps? ( sys-libs/libcap )"
+RDEPEND="${DEPEND}
+ sys-apps/iproute2"
+
+src_configure() {
+ econf --enable-miredo-user \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --docdir="/usr/share/doc/${P}"
+ use caps || \
+ echo "#undef HAVE_SYS_CAPABILITY_H" >> config.h
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "failed install"
+ newinitd "${FILESDIR}"/miredo-server.rc miredo-server
+ newconfd "${FILESDIR}"/miredo-server.conf miredo-server
+ newinitd "${FILESDIR}"/miredo.rc miredo
+ newconfd "${FILESDIR}"/miredo.conf miredo
+ insinto /etc/miredo
+ doins misc/miredo-server.conf
+ dodoc README NEWS ChangeLog AUTHORS THANKS TODO
+}
+
+pkg_preinst() {
+ enewgroup miredo
+ enewuser miredo -1 -1 /var/empty miredo
+}