You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/vde/vde-2.3.2.ebuild

58 lines
1.4 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/vde/vde-2.3.2.ebuild,v 1.2 2014/08/10 20:48:47 slyfox Exp $
EAPI=5
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit eutils python user
MY_P="${PN}2-${PV}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="vde2 is a 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/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="pcap python ssl static-libs"
RDEPEND="pcap? ( net-libs/libpcap )
ssl? ( dev-libs/openssl )"
DEPEND="${RDEPEND}"
src_configure() {
econf \
$(use_enable pcap) \
$(use_enable python) \
$(use_enable ssl cryptcab) \
$(use_enable static-libs static)
}
src_compile() {
emake -j1 || die "emake failed"
}
src_install() {
default
use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
newinitd "${FILESDIR}"/vde.init vde
newconfd "${FILESDIR}"/vde.conf vde
}
pkg_postinst() {
# default group already used in kqemu
enewgroup qemu
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"
}