/[gentoo-x86]/net-misc/vde/vde-2.3.2-r2.ebuild
Gentoo

Contents of /net-misc/vde/vde-2.3.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Aug 23 12:03:02 2014 UTC (5 years ago) by swift
Branch: MAIN
CVS Tags: HEAD
RDEPEND on sec-policy/selinux-vde if USE=selinux

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/vde/vde-2.3.2-r1.ebuild,v 1.1 2014/08/20 11:34:55 pinkbyte Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8 inherit eutils python-single-r1 user
9
10 MY_P="${PN}2-${PV}"
11
12 DESCRIPTION="Virtual distributed ethernet emulator for emulators like qemu, bochs, and uml"
13 SRC_URI="mirror://sourceforge/vde/${MY_P}.tar.bz2"
14 HOMEPAGE="http://vde.sourceforge.net/"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
19
20 IUSE="pcap python selinux ssl static-libs"
21
22 COMMON_DEPS="pcap? ( net-libs/libpcap )
23 python? ( ${PYTHON_DEPS} )
24 ssl? ( dev-libs/openssl )"
25 DEPEND="${COMMON_DEPS}"
26 RDEPEND="${COMMON_DEPS}
27 selinux? ( sec-policy/selinux-vde )"
28
29 S="${WORKDIR}/${MY_P}"
30
31 pkg_setup() {
32 # default group already used in kqemu
33 enewgroup qemu
34
35 python-single-r1_pkg_setup
36 }
37
38 src_prepare() {
39 epatch_user
40 }
41
42 src_configure() {
43 econf \
44 $(use_enable pcap) \
45 $(use_enable python) \
46 $(use_enable ssl cryptcab) \
47 $(use_enable static-libs static)
48 }
49
50 src_compile() {
51 emake -j1
52 }
53
54 src_install() {
55 default
56 prune_libtool_files
57
58 newinitd "${FILESDIR}"/vde.init vde
59 newconfd "${FILESDIR}"/vde.conf vde
60 }
61
62 pkg_postinst() {
63 einfo "To start vde automatically add it to the default runlevel:"
64 einfo "# rc-update add vde default"
65 einfo "You need to setup tap0 in /etc/conf.d/net"
66 einfo "To use it as an user be sure to set a group in /etc/conf.d/vde"
67 einfo "Users of the group can then run: $ vdeq qemu -sock /var/run/vde.ctl ..other opts"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20