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

Contents of /net-misc/vde/vde-2.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Mar 1 23:37:27 2012 UTC (2 years, 4 months ago) by ranger
Branch: MAIN
Changes since 1.5: +3 -3 lines
Marking vde-2.2.2 ppc for bug 356685

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 # Copyright 1999-2012 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.2.2.ebuild,v 1.5 2009/04/06 19:02:06 jmbsvicetto Exp $
4
5 inherit base eutils
6
7 MY_P="${PN}2-${PV}"
8 S="${WORKDIR}/${MY_P}"
9
10 DESCRIPTION="vde2 is a virtual distributed ethernet emulator for emulators like qemu, bochs, and uml."
11 SRC_URI="mirror://sourceforge/vde/${MY_P}.tar.bz2"
12 HOMEPAGE="http://vde.sourceforge.net/"
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="amd64 ppc ~ppc64 x86"
16 IUSE=""
17 DEPEND=""
18 RDEPEND=""
19
20 # The slirpvde-buffer-overflow patch was made by Ludwig Nussel and submitted upstream at
21 # http://sourceforge.net/tracker/?func=detail&aid=2138410&group_id=95403&atid=611248
22 PATCHES=( "${FILESDIR}/${P}-gcc43.patch" "${FILESDIR}/${P}-slirpvde-buffer-overflow.patch" )
23
24 src_install() {
25 emake DESTDIR="${D}" install || die "emake install failed"
26 newinitd "${FILESDIR}"/vde.init vde
27 newconfd "${FILESDIR}"/vde.conf vde
28
29 dodoc INSTALL README
30 }
31
32 pkg_postinst() {
33 # default group already used in kqemu
34 enewgroup qemu
35 einfo "To start vde automatically add it to the default runlevel:"
36 einfo "# rc-update add vde default"
37 einfo "You need to setup tap0 in /etc/conf.d/net"
38 einfo "To use it as an user be sure to set a group in /etc/conf.d/vde"
39 einfo "Users of the group can then run: $ vdeq qemu -sock /var/run/vde.ctl ..other opts"
40 }

  ViewVC Help
Powered by ViewVC 1.1.20