vde2 is a virtual distributed ethernet emulator for emulators like qemu, bochs, and uml. New version 2.3.2 comes with Python bindings, called "VdePlug", that can be used by e.g. virtualbricks (successor of app-emulation/qemulator). I introduced the "python" use flag to the ebuild to enable/disable building the python bindings. The downside of the new version is that it only seems to compile with MAKEOPTS="-j1", reflected by "emake -j1" in src_compile(). Reproducible: Always
Created attachment 306847 [details] vde-2.3.2.ebuild
Comment on attachment 306847 [details] vde-2.3.2.ebuild --- vde-2.3.1.ebuild 2011-10-24 13:31:07.000000000 +0200 +++ - 2012-03-27 19:05:20.898356584 +0200 @@ -4,7 +4,10 @@ EAPI=4 -inherit eutils +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit eutils python MY_P="${PN}2-${PV}" S="${WORKDIR}/${MY_P}" @@ -16,7 +19,7 @@ LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="pcap ssl static-libs" +IUSE="pcap python ssl static-libs" RDEPEND="pcap? ( net-libs/libpcap ) ssl? ( dev-libs/openssl )" @@ -25,10 +28,15 @@ 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 {} + @@ -40,6 +48,7 @@ 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"
I added in the user eclass as enewgroup is used. Other than that it seems to run fine here, although I only use basic functionality in vde_switch currently so I can't consider this a thorough investigation ;) Committed to the tree. Thanks!