diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2017-03-17 15:37:57 +0100 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2017-03-17 15:38:28 +0100 |
commit | 9754f457cc6d0aeb90a1535a5228ef909e9584c9 (patch) | |
tree | ffbd77f41fb100837cc8f992f8dc863cd01c270d /net-vpn/miredo | |
parent | app-forensics/openscap: remove old (diff) | |
download | gentoo-9754f457cc6d0aeb90a1535a5228ef909e9584c9.tar.gz gentoo-9754f457cc6d0aeb90a1535a5228ef909e9584c9.tar.bz2 gentoo-9754f457cc6d0aeb90a1535a5228ef909e9584c9.zip |
Second half of net-vpn/ move
Diffstat (limited to 'net-vpn/miredo')
-rw-r--r-- | net-vpn/miredo/Manifest | 2 | ||||
-rw-r--r-- | net-vpn/miredo/files/miredo-1.2.5-configure-libcap.diff | 33 | ||||
-rw-r--r-- | net-vpn/miredo/files/miredo-1.2.5-ip-path.patch | 28 | ||||
-rw-r--r-- | net-vpn/miredo/files/miredo.conf.2 | 2 | ||||
-rw-r--r-- | net-vpn/miredo/files/miredo.rc.2 | 13 | ||||
-rw-r--r-- | net-vpn/miredo/metadata.xml | 14 | ||||
-rw-r--r-- | net-vpn/miredo/miredo-1.2.5-r2.ebuild | 60 | ||||
-rw-r--r-- | net-vpn/miredo/miredo-1.2.6.ebuild | 60 |
8 files changed, 212 insertions, 0 deletions
diff --git a/net-vpn/miredo/Manifest b/net-vpn/miredo/Manifest new file mode 100644 index 000000000000..3eb6bd6e06be --- /dev/null +++ b/net-vpn/miredo/Manifest @@ -0,0 +1,2 @@ +DIST miredo-1.2.5.tar.xz 474236 SHA256 9d6c6aacfbde0e152481273cda4dc9a62f8724c4c941fa8e0806e89ab9992262 SHA512 94bc71b7093783ad103a0aceb95ad3de1739e4ec1d763b3c6cea9bb1768f55359448957f623ee3f966955c555bb9f71ff0216d9d4e8d2ff244bb058731702c70 WHIRLPOOL 45b38f19fc50bb5661dcc51166c721c507d70b29072c7a2c3195c093ec91259dfbcdc40e3889f5242af79cf2f04fb7fdb3e48f7bd2cc15d6262813891fa9624c +DIST miredo-1.2.6.tar.xz 477668 SHA256 fa26d2f4a405415833669e2e2e22677b225d8f83600844645d5683535ea43149 SHA512 9cbc604aecde566f921834a220be7675981e1c603cbcc81c3e2e9c58fdcdae2e78ec6ffc180939d5b8f6d7598ba3967270532b2c0c04de8b688a86c436719caf WHIRLPOOL 5b2723568e1cc583e15b32dbb578c12438ba30802bc1e11a912829c010d655d8a867f8070e1b9a4a2c1c910ca4abc1ef6109d87372f382e8787d4514d035d513 diff --git a/net-vpn/miredo/files/miredo-1.2.5-configure-libcap.diff b/net-vpn/miredo/files/miredo-1.2.5-configure-libcap.diff new file mode 100644 index 000000000000..cffdbf1e562e --- /dev/null +++ b/net-vpn/miredo/files/miredo-1.2.5-configure-libcap.diff @@ -0,0 +1,33 @@ +--- configure.ac.ori 2012-06-14 21:55:13.756603416 +0200 ++++ configure.ac 2012-06-14 23:12:01.425399836 +0200 +@@ -150,16 +150,23 @@ + + # POSIX capabilities + LIBCAP="" +-AC_CHECK_HEADERS([sys/capability.h], [ +- AC_CHECK_LIB(cap, cap_set_proc, [ +- LIBCAP="-lcap" +- AC_DEFINE(HAVE_LIBCAP, 1, +- [Define to 1 if you have the `cap' library (-lcap).]) +- ]) ++AC_ARG_WITH(libcap, ++ AS_HELP_STRING([--with-libcap], [enable POSIX 1003.1e capabilities]), ++ with_libcap=$withval, ++ with_libcap=auto) ++AC_MSG_CHECKING([whether to enable POSIX 1003.1e capabilities]) ++AC_MSG_RESULT($with_libcap) ++ ++AS_IF([test "x$with_libcap" != "xno"], [ ++ AC_CHECK_HEADERS([sys/capability.h]) ++ AC_CHECK_LIB(cap, cap_set_proc, [ ++ LIBCAP="-lcap" ++ AC_DEFINE(HAVE_LIBCAP, 1, ++ [Define to 1 if you have the cap library (-lcap).]) ++ ]) + ]) + AC_SUBST(LIBCAP) + +- + # Judy + AC_ARG_WITH(Judy, + [AS_HELP_STRING(--with-Judy, diff --git a/net-vpn/miredo/files/miredo-1.2.5-ip-path.patch b/net-vpn/miredo/files/miredo-1.2.5-ip-path.patch new file mode 100644 index 000000000000..1d7b0fc39f6e --- /dev/null +++ b/net-vpn/miredo/files/miredo-1.2.5-ip-path.patch @@ -0,0 +1,28 @@ +Index: miredo-1.2.5/misc/client-hook.iproute +=================================================================== +--- miredo-1.2.5.orig/misc/client-hook.iproute ++++ miredo-1.2.5/misc/client-hook.iproute +@@ -5,7 +5,10 @@ + # Distributed under the terms of the GNU General Public License version 2. + + # Linux iproute2 path: +-IP="/sbin/ip" ++IP="ip" ++ ++test -x "/sbin/ip" && IP=/sbin/ip ++test -x "/bin/ip" && IP=/bin/ip + + # Linux default route default metric is 1024 + # (we put 1029 so that Teredo is used as a last resort): +@@ -23,11 +26,6 @@ PRIO=32765 + # (default: specified by the Teredo server, or 1280) + #MTU=1400 + +-if ! test -x "$IP"; then +- echo "$0: iproute2 is required! Please install it." >&2 +- exit 1 +-fi +- + # Nothing to do with destroy event + if test "$STATE" = "destroy"; then exit 0; fi + diff --git a/net-vpn/miredo/files/miredo.conf.2 b/net-vpn/miredo/files/miredo.conf.2 new file mode 100644 index 000000000000..f4ef08a23112 --- /dev/null +++ b/net-vpn/miredo/files/miredo.conf.2 @@ -0,0 +1,2 @@ +# Options to pass to the daemon +EXTRA_OPTS="" diff --git a/net-vpn/miredo/files/miredo.rc.2 b/net-vpn/miredo/files/miredo.rc.2 new file mode 100644 index 000000000000..c0ae6d0d1495 --- /dev/null +++ b/net-vpn/miredo/files/miredo.rc.2 @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount + after net modules + use dns logger +} + +command=/usr/sbin/${SVCNAME} +command_args="${MIREDO_OPTS}" +pidfile=/var/run/${SVCNAME}.pid diff --git a/net-vpn/miredo/metadata.xml b/net-vpn/miredo/metadata.xml new file mode 100644 index 000000000000..52ee8970cb99 --- /dev/null +++ b/net-vpn/miredo/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> +</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-vpn/miredo/miredo-1.2.5-r2.ebuild b/net-vpn/miredo/miredo-1.2.5-r2.ebuild new file mode 100644 index 000000000000..74773d853de8 --- /dev/null +++ b/net-vpn/miredo/miredo-1.2.5-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit autotools eutils linux-info user + +DESCRIPTION="Miredo is an open-source Teredo IPv6 tunneling software" +HOMEPAGE="http://www.remlab.net/miredo/" +SRC_URI="http://www.remlab.net/files/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+caps" + +RDEPEND="sys-apps/iproute2 + dev-libs/judy + caps? ( sys-libs/libcap )" +DEPEND="${RDEPEND} + app-arch/xz-utils" + +CONFIG_CHECK="~IPV6" #318777 + +#tries to connect to external networks (#339180) +RESTRICT="test" + +DOCS=( AUTHORS ChangeLog NEWS README TODO THANKS ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-configure-libcap.diff + epatch "${FILESDIR}"/${P}-ip-path.patch + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + --enable-miredo-user \ + --localstatedir=/var \ + $(use_with caps libcap) +} + +src_install() { + default + prune_libtool_files + + newinitd "${FILESDIR}"/miredo.rc.2 miredo + newconfd "${FILESDIR}"/miredo.conf.2 miredo + newinitd "${FILESDIR}"/miredo.rc.2 miredo-server + newconfd "${FILESDIR}"/miredo.conf.2 miredo-server + + insinto /etc/miredo + doins misc/miredo-server.conf +} + +pkg_preinst() { + enewgroup miredo + enewuser miredo -1 -1 /var/empty miredo +} diff --git a/net-vpn/miredo/miredo-1.2.6.ebuild b/net-vpn/miredo/miredo-1.2.6.ebuild new file mode 100644 index 000000000000..63494b5abd31 --- /dev/null +++ b/net-vpn/miredo/miredo-1.2.6.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit autotools eutils linux-info user + +DESCRIPTION="Miredo is an open-source Teredo IPv6 tunneling software" +HOMEPAGE="http://www.remlab.net/miredo/" +SRC_URI="http://www.remlab.net/files/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+caps" + +RDEPEND="sys-apps/iproute2 + dev-libs/judy + caps? ( sys-libs/libcap )" +DEPEND="${RDEPEND} + app-arch/xz-utils" + +CONFIG_CHECK="~IPV6" #318777 + +#tries to connect to external networks (#339180) +RESTRICT="test" + +DOCS=( AUTHORS ChangeLog NEWS README TODO THANKS ) + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.2.5-configure-libcap.diff + epatch "${FILESDIR}"/${PN}-1.2.5-ip-path.patch + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + --enable-miredo-user \ + --localstatedir=/var \ + $(use_with caps libcap) +} + +src_install() { + default + prune_libtool_files + + newinitd "${FILESDIR}"/miredo.rc.2 miredo + newconfd "${FILESDIR}"/miredo.conf.2 miredo + newinitd "${FILESDIR}"/miredo.rc.2 miredo-server + newconfd "${FILESDIR}"/miredo.conf.2 miredo-server + + insinto /etc/miredo + doins misc/miredo-server.conf +} + +pkg_preinst() { + enewgroup miredo + enewuser miredo -1 -1 /var/empty miredo +} |