diff options
author | Lance Albertson <ramereth@gentoo.org> | 2009-10-02 22:41:28 +0000 |
---|---|---|
committer | Lance Albertson <ramereth@gentoo.org> | 2009-10-02 22:41:28 +0000 |
commit | be0c4d431939f1b4dd91f6cf8289e6395696bf4c (patch) | |
tree | abd6409e3c23e42a3c99b77186742e884029ccd4 /app-emulation | |
parent | Version bump (diff) | |
download | gentoo-2-be0c4d431939f1b4dd91f6cf8289e6395696bf4c.tar.gz gentoo-2-be0c4d431939f1b4dd91f6cf8289e6395696bf4c.tar.bz2 gentoo-2-be0c4d431939f1b4dd91f6cf8289e6395696bf4c.zip |
Initial ebuild for ganeti-instance-debootstrap
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation')
4 files changed, 136 insertions, 0 deletions
diff --git a/app-emulation/ganeti-instance-debootstrap/ChangeLog b/app-emulation/ganeti-instance-debootstrap/ChangeLog new file mode 100644 index 000000000000..cc0acb3e31c2 --- /dev/null +++ b/app-emulation/ganeti-instance-debootstrap/ChangeLog @@ -0,0 +1,16 @@ +# ChangeLog for app-emulation/ganeti-instance-debootstrap +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti-instance-debootstrap/ChangeLog,v 1.1 2009/10/02 22:41:27 ramereth Exp $ + +*ganeti-instance-debootstrap-0.7 (02 Oct 2009) + + 02 Oct 2009; Lance Albertson <ramereth@gentoo.org> + +ganeti-instance-debootstrap-0.7.ebuild, + +files/ganeti-instance-debootstrap-0.7-no-etc-default.patch, + +metadata.xml: + Initial ebuild + + Special thanks to Russell Haering <russell_h@osuosl.org> for submitting + the + ebuild. + diff --git a/app-emulation/ganeti-instance-debootstrap/files/ganeti-instance-debootstrap-0.7-no-etc-default.patch b/app-emulation/ganeti-instance-debootstrap/files/ganeti-instance-debootstrap-0.7-no-etc-default.patch new file mode 100644 index 000000000000..4137684883da --- /dev/null +++ b/app-emulation/ganeti-instance-debootstrap/files/ganeti-instance-debootstrap-0.7-no-etc-default.patch @@ -0,0 +1,67 @@ +diff -ruN ganeti-instance-debootstrap-0.7.orig/README ganeti-instance-debootstrap-0.7/README +--- ganeti-instance-debootstrap-0.7.orig/README 2009-09-22 21:43:35.000000000 -0700 ++++ ganeti-instance-debootstrap-0.7/README 2009-09-22 21:48:10.000000000 -0700 +@@ -41,9 +41,9 @@ + The kind of instance created can be customized via a settings file. This + file is not installed by default, as the instance creation will work + without it. The creation scripts will look for it in +-``$sysconfdir/default/ganeti-instance-debootstrap``, so if you have run ++``$sysconfdir/ganeti/ganeti-instance-debootstrap``, so if you have run + configure with the parameter ``--sysconfdir=/etc``, the final filename +-will be ``/etc/default/ganeti-instance-debootstrap``. ++will be ``/etc/ganeti/ganeti-instance-debootstrap``. + + The following settings will be examined in this file (see also the file + named 'defaults' in the source distribution for more details): +@@ -59,7 +59,7 @@ + them work nicely under Xen; the example file containts a few + suggestions + - CUSTOMIZE_DIR: a directory containing customization script for the instance. +- (by default $sysconfdir/ganeti/instance-debootstrap.d) See "Customization of ++ (by default $sysconfdir/ganeti/ganeti-instance-debootstrap.d) See "Customization of + the instance" below. + - GENERATE_CACHE: if 'yes' (the default), the installation process will + save and reuse a cache file to speed reinstalls (located under +@@ -83,13 +83,14 @@ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + If run-parts is in the os create script, and the CUSTOMIZE_DIR (by default +-$sysconfdir/ganeti/instance-debootstrap.d, /etc/ganeti/instance-debootstrap.d +-if you configured the os with --sysconfdir=/etc) directory exists any +-executable whose name matches the run-parts execution rules (quoting +-run-parts(8): the names must consist entirely of upper and lower case +-letters, digits, underscores, and hyphens) is executed to allow further +-personalization of the installation. The following environment variables are +-passed, in addition to the ones ganeti passes to the OS scripts: ++$sysconfdir/ganeti/ganeti-instance-debootstrap.d, ++/etc/ganeti/ganeti-instance-debootstrap.d if you configured the os with ++--sysconfdir=/etc) directory exists any executable whose name matches the ++run-parts execution rules (quoting run-parts(8): the names must consist ++entirely of upper and lower case letters, digits, underscores, and hyphens) is ++executed to allow further personalization of the installation. The following ++environment variables are passed, in addition to the ones ganeti passes to the ++OS scripts: + + TARGET: directory in which the filesystem is mounted + SUITE: suite installed by debootstrap (eg: lenny) +diff -ruN ganeti-instance-debootstrap-0.7.orig/common.sh.in ganeti-instance-debootstrap-0.7/common.sh.in +--- ganeti-instance-debootstrap-0.7.orig/common.sh.in 2009-09-22 21:43:35.000000000 -0700 ++++ ganeti-instance-debootstrap-0.7/common.sh.in 2009-09-22 21:46:05.000000000 -0700 +@@ -127,7 +127,7 @@ + fi + } + +-DEFAULT_FILE="@sysconfdir@/default/ganeti-instance-debootstrap" ++DEFAULT_FILE="@sysconfdir@/ganeti/ganeti-instance-debootstrap" + if [ -f "$DEFAULT_FILE" ]; then + . "$DEFAULT_FILE" + fi +@@ -142,7 +142,7 @@ + : ${SUITE:="lenny"} + : ${ARCH:=""} + : ${EXTRA_PKGS:=""} +-: ${CUSTOMIZE_DIR:="@sysconfdir@/ganeti/instance-debootstrap.d"} ++: ${CUSTOMIZE_DIR:="@sysconfdir@/ganeti/ganeti-instance-debootstrap.d"} + : ${GENERATE_CACHE:="yes"} + : ${CLEAN_CACHE:="14"} # number of days to keep a cache file + if [ -z "$OS_API_VERSION" -o "$OS_API_VERSION" = "5" ]; then diff --git a/app-emulation/ganeti-instance-debootstrap/ganeti-instance-debootstrap-0.7.ebuild b/app-emulation/ganeti-instance-debootstrap/ganeti-instance-debootstrap-0.7.ebuild new file mode 100644 index 000000000000..1cb1bf1a422d --- /dev/null +++ b/app-emulation/ganeti-instance-debootstrap/ganeti-instance-debootstrap-0.7.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti-instance-debootstrap/ganeti-instance-debootstrap-0.7.ebuild,v 1.1 2009/10/02 22:41:27 ramereth Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="Scripts to build Ganeti VMs with debootstrap" +HOMEPAGE="http://code.google.com/p/ganeti/" +SRC_URI="http://ganeti.googlecode.com/files/ganeti-instance-debootstrap-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="app-arch/dpkg + app-arch/dump + app-emulation/ganeti + dev-util/debootstrap + || ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp ) + sys-apps/util-linux + sys-fs/e2fsprogs" + +src_prepare() { + epatch "${FILESDIR}/${P}-no-etc-default.patch" +} + +src_configure() { + econf --docdir=/usr/share/doc/${P} || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" +} diff --git a/app-emulation/ganeti-instance-debootstrap/metadata.xml b/app-emulation/ganeti-instance-debootstrap/metadata.xml new file mode 100644 index 000000000000..02ebb011944e --- /dev/null +++ b/app-emulation/ganeti-instance-debootstrap/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>virtualization</herd> + <maintainer> + <email>ramereth@gentoo.org</email> + <name>Lance Albertson</name> + </maintainer> + <longdescription lang="en"> + This is a guest OS definition for Ganeti (http://code.google.com/p/ganeti). + It will install a minimal version of Debian or Ubuntu via debootstrap (thus + it requires network access). This only works if you have a Debian-based node + or you have debootstrap installed by hand on another distribution. + </longdescription> +</pkgmetadata> + |