From 4e3b908add13f4dbff4b5f028f40c9aca17b58c6 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Mon, 17 Oct 2016 19:13:56 -0400 Subject: net-misc/vde: add libressl support Package-Manager: portage-2.2.28 --- net-misc/vde/vde-2.3.2-r3.ebuild | 71 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 net-misc/vde/vde-2.3.2-r3.ebuild (limited to 'net-misc') diff --git a/net-misc/vde/vde-2.3.2-r3.ebuild b/net-misc/vde/vde-2.3.2-r3.ebuild new file mode 100644 index 000000000000..f3f39f1a7d0b --- /dev/null +++ b/net-misc/vde/vde-2.3.2-r3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 user + +MY_P="${PN}2-${PV}" + +DESCRIPTION="Virtual distributed ethernet emulator for emulators like qemu, bochs, and uml" +SRC_URI="mirror://sourceforge/vde/${MY_P}.tar.bz2" +HOMEPAGE="http://vde.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +IUSE="pcap python selinux ssl libressl static-libs" + +COMMON_DEPS="pcap? ( net-libs/libpcap ) + python? ( ${PYTHON_DEPS} ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + )" +DEPEND="${COMMON_DEPS}" +RDEPEND="${COMMON_DEPS} + selinux? ( sec-policy/selinux-vde )" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + # default group already used in kqemu + enewgroup qemu + + python-single-r1_pkg_setup +} + +src_prepare() { + epatch_user +} + +src_configure() { + econf \ + $(use_enable pcap) \ + $(use_enable python) \ + $(use_enable ssl cryptcab) \ + $(use_enable static-libs static) +} + +src_compile() { + emake -j1 +} + +src_install() { + default + prune_libtool_files + + newinitd "${FILESDIR}"/vde.init vde + newconfd "${FILESDIR}"/vde.conf vde +} + +pkg_postinst() { + einfo "To start vde automatically add it to the default runlevel:" + einfo "# rc-update add vde default" + einfo "You need to setup tap0 in /etc/conf.d/net" + einfo "To use it as an user be sure to set a group in /etc/conf.d/vde" + einfo "Users of the group can then run: $ vdeq qemu -sock /var/run/vde.ctl ..other opts" +} -- cgit v1.2.3-65-gdbad