diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-12-12 20:00:22 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-12-12 20:00:22 +0000 |
commit | f561e7de0203d17631fb51089a9fa6d8a4810138 (patch) | |
tree | 3a788ca2a477006d9a1d373441defa433084b548 /app-emulation | |
parent | Added ~amd64 keyword. Bug #114383. (diff) | |
download | gentoo-2-f561e7de0203d17631fb51089a9fa6d8a4810138.tar.gz gentoo-2-f561e7de0203d17631fb51089a9fa6d8a4810138.tar.bz2 gentoo-2-f561e7de0203d17631fb51089a9fa6d8a4810138.zip |
Initial commit. Ebuild by Robin H. Johnson <robbat2@gentoo.org>.
(Portage version: 2.0.53)
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/qenv/ChangeLog | 10 | ||||
-rw-r--r-- | app-emulation/qenv/Manifest | 3 | ||||
-rw-r--r-- | app-emulation/qenv/files/digest-qenv-0.1 | 1 | ||||
-rw-r--r-- | app-emulation/qenv/files/qenv-0.1-qemu-0.7.2.patch | 78 | ||||
-rw-r--r-- | app-emulation/qenv/metadata.xml | 8 | ||||
-rw-r--r-- | app-emulation/qenv/qenv-0.1.ebuild | 39 |
6 files changed, 139 insertions, 0 deletions
diff --git a/app-emulation/qenv/ChangeLog b/app-emulation/qenv/ChangeLog new file mode 100644 index 000000000000..9a3644a55ad9 --- /dev/null +++ b/app-emulation/qenv/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-emulation/qenv +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qenv/ChangeLog,v 1.1 2005/12/12 20:00:22 robbat2 Exp $ + +*qenv-0.1 (12 Dec 2005) + + 12 Dec 2005; Robin H. Johnson <robbat2@gentoo.org> + +files/qenv-0.1-qemu-0.7.2.patch, +metadata.xml, +qenv-0.1.ebuild: + Initial commit. Ebuild by Robin H. Johnson <robbat2@gentoo.org>. + diff --git a/app-emulation/qenv/Manifest b/app-emulation/qenv/Manifest new file mode 100644 index 000000000000..49bbaff329bf --- /dev/null +++ b/app-emulation/qenv/Manifest @@ -0,0 +1,3 @@ +MD5 2e7e1f3b4075e8120623613a3252b2f0 files/digest-qenv-0.1 61 +MD5 10ebe09878a03c82f9295299d1bf4185 files/qenv-0.1-qemu-0.7.2.patch 3412 +MD5 5011f394c6e98fa0db7f0a21851218f2 qenv-0.1.ebuild 759 diff --git a/app-emulation/qenv/files/digest-qenv-0.1 b/app-emulation/qenv/files/digest-qenv-0.1 new file mode 100644 index 000000000000..1ac7c6cafd33 --- /dev/null +++ b/app-emulation/qenv/files/digest-qenv-0.1 @@ -0,0 +1 @@ +MD5 bc766856706c7d64ad71e013eda99af5 qenv-0.1.tar.bz2 290596 diff --git a/app-emulation/qenv/files/qenv-0.1-qemu-0.7.2.patch b/app-emulation/qenv/files/qenv-0.1-qemu-0.7.2.patch new file mode 100644 index 000000000000..81c98743b236 --- /dev/null +++ b/app-emulation/qenv/files/qenv-0.1-qemu-0.7.2.patch @@ -0,0 +1,78 @@ +diff -Naur --exclude configure --exclude dnsmasq --exclude libtool --exclude Makefile --exclude autom4te.cache --exclude Makefile.in --exclude config.status --exclude aclocal.m4 --exclude ltmain.sh --exclude config.sub --exclude config.guess qenv-0.1/Makefile.am qenv-0.1.mod/Makefile.am +--- qenv-0.1/Makefile.am 2004-07-29 02:18:57.000000000 -0700 ++++ qenv-0.1.mod/Makefile.am 2005-12-12 11:00:54.000000000 -0800 +@@ -1 +1 @@ +-SUBDIRS = src dnsmasq ++SUBDIRS = src +diff -Naur --exclude configure --exclude dnsmasq --exclude libtool --exclude Makefile --exclude autom4te.cache --exclude Makefile.in --exclude config.status --exclude aclocal.m4 --exclude ltmain.sh --exclude config.sub --exclude config.guess qenv-0.1/README qenv-0.1.mod/README +--- qenv-0.1/README 2004-08-10 11:17:15.000000000 -0700 ++++ qenv-0.1.mod/README 2005-12-12 11:12:24.000000000 -0800 +@@ -73,7 +73,7 @@ + + Setting up the guests + --------------------- +-The script 'qenv-mkguest' creates the COW HD image for the QEMU guest system ++The script 'qenv-mkguest' creates the QCOW HD image for the QEMU guest system + and sets up several other QEMU-related parameters: + + Usage: qenv-mkguest --name=<node name> [options] +diff -Naur --exclude configure --exclude dnsmasq --exclude libtool --exclude Makefile --exclude autom4te.cache --exclude Makefile.in --exclude config.status --exclude aclocal.m4 --exclude ltmain.sh --exclude config.sub --exclude config.guess qenv-0.1/configure.in qenv-0.1.mod/configure.in +--- qenv-0.1/configure.in 2004-08-06 08:24:10.000000000 -0700 ++++ qenv-0.1.mod/configure.in 2005-12-12 11:11:44.000000000 -0800 +@@ -27,22 +27,22 @@ + + + dnl +-dnl qemu-mkcow ++dnl qemu-img + dnl +-QEMU_MKCOW="" +-AC_ARG_WITH(qemu-mkcow, +- AC_HELP_STRING([--with-qemu-mkcow], +- [location of 'qemu-mkcow' (default is somewhere in your $PATH)]), +-[QEMU_MKCOW=$withval] ++QEMU_IMG="" ++AC_ARG_WITH(qemu-img, ++ AC_HELP_STRING([--with-qemu-img], ++ [location of 'qemu-img' (default is somewhere in your $PATH)]), ++[QEMU_IMG=$withval] + ) +-if test "x$QEMU_MKCOW" = "x"; then +- AC_PATH_PROG(QEMU_MKCOW, qemu-mkcow) ++if test "x$QEMU_IMG" = "x"; then ++ AC_PATH_PROG(QEMU_IMG, qemu-img) + fi +-if test "x$QEMU_MKCOW" = "x"; then +- AC_MSG_ERROR([Cannot find 'qemu-mkcow' executable]) ++if test "x$QEMU_IMG" = "x"; then ++ AC_MSG_ERROR([Cannot find 'qemu-img' executable]) + fi +-test -f "$QEMU_MKCOW" || AC_MSG_ERROR(['qemu-mkcow' executable '$QEMU_MKCOW' is not a file]) +-test -x "$QEMU_MKCOW" || AC_MSG_ERROR([Cannot execute 'qemu-mkcow' executable '$QEMU_MKCOW']) ++test -f "$QEMU_IMG" || AC_MSG_ERROR(['qemu-img' executable '$QEMU_IMG' is not a file]) ++test -x "$QEMU_IMG" || AC_MSG_ERROR([Cannot execute 'qemu-img' executable '$QEMU_IMG']) + + dnl + dnl sudo +diff -Naur --exclude configure --exclude dnsmasq --exclude libtool --exclude Makefile --exclude autom4te.cache --exclude Makefile.in --exclude config.status --exclude aclocal.m4 --exclude ltmain.sh --exclude config.sub --exclude config.guess qenv-0.1/src/qenv-mkguest.in qenv-0.1.mod/src/qenv-mkguest.in +--- qenv-0.1/src/qenv-mkguest.in 2004-08-10 11:03:00.000000000 -0700 ++++ qenv-0.1.mod/src/qenv-mkguest.in 2005-12-12 11:10:49.000000000 -0800 +@@ -82,7 +82,7 @@ + # Create COW image + # + mkdir @VAR@/$NODE_NAME +-@QEMU_MKCOW@ @VAR@/$NODE_NAME/hda.img $HDA_SIZE || exit 1 ++@QEMU_IMG@ create -f qcow @VAR@/$NODE_NAME/hda.img $HDA_SIZE || exit 1 + + echo "Node '$NODE_NAME' created. Start it with:" + echo +--- qenv-0.1/src/Makefile.am.orig 2005-12-12 11:44:03.000000000 -0800 ++++ qenv-0.1/src/Makefile.am 2005-12-12 11:43:50.000000000 -0800 +@@ -3,5 +3,5 @@ + libexec_SCRIPTS = tunconfig tunconfig-root + + install-data-hook: +- mkdir -p $(ETC) +- mkdir -p $(VAR)/lib ++ mkdir -p $(DESTDIR)$(ETC) ++ mkdir -p $(DESTDIR)$(VAR)/lib diff --git a/app-emulation/qenv/metadata.xml b/app-emulation/qenv/metadata.xml new file mode 100644 index 000000000000..5d9f5be9d49d --- /dev/null +++ b/app-emulation/qenv/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>robbat2@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/app-emulation/qenv/qenv-0.1.ebuild b/app-emulation/qenv/qenv-0.1.ebuild new file mode 100644 index 000000000000..a589ac19e622 --- /dev/null +++ b/app-emulation/qenv/qenv-0.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qenv/qenv-0.1.ebuild,v 1.1 2005/12/12 20:00:22 robbat2 Exp $ + +inherit libtool eutils + +DESCRIPTION="Pool of machines handler for QEMU" +HOMEPAGE="http://virutass.net/software/qemu/" +SRC_URI="http://virutass.net/software/qemu/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +# these should in RDEPEND only, but configure fails without them +RDEPEND=">=app-emulation/qemu-0.7.2 + net-firewall/iptables + net-misc/bridge-utils + app-admin/sudo + net-dns/dnsmasq" +DEPEND="${DEPEND} + sys-devel/autoconf + sys-devel/automake" + +src_unpack() { + unpack ${A} + EPATCH_OPTS="-p1 -d ${S}" \ + epatch ${FILESDIR}/${PN}-0.1-qemu-0.7.2.patch \ + || die "failed to update for qemu-0.7.2" + cd ${S} + for i in 'autoconf' 'automake' 'libtoolize --copy --force' ; do + einfo "Doing $i" + ${i} || die "Failed: $i" + done; +} + +src_install() { + emake install DESTDIR="${D}" + dodoc README AUTHORS +} |