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 | 7dbb4c74bd0b7f6b3823db3ebf0f02f21961ba1e (patch) | |
tree | d980aa93c48669490bd4f5d6b3763bdeadb52145 /app-emulation | |
parent | Version bump (diff) | |
download | historical-7dbb4c74bd0b7f6b3823db3ebf0f02f21961ba1e.tar.gz historical-7dbb4c74bd0b7f6b3823db3ebf0f02f21961ba1e.tar.bz2 historical-7dbb4c74bd0b7f6b3823db3ebf0f02f21961ba1e.zip |
Initial ebuild for ganeti-instance-debootstrap
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'app-emulation')
5 files changed, 151 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/Manifest b/app-emulation/ganeti-instance-debootstrap/Manifest new file mode 100644 index 000000000000..989ba820a131 --- /dev/null +++ b/app-emulation/ganeti-instance-debootstrap/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX ganeti-instance-debootstrap-0.7-no-etc-default.patch 3583 RMD160 7a997c308adff0b30c830ef1f6604669b78f7881 SHA1 e25d05b6341db187e831a2798fa4b29053ee59a6 SHA256 5c264d78116ab1b9bac7a5d42b82bed82e62646312b8ad6f084b84c2d6e210ab +DIST ganeti-instance-debootstrap-0.7.tar.gz 60829 RMD160 85365680a88fa041ff5de48cd20c43736d74c4a4 SHA1 d86b9e8ecb79145cc870260247c4443de2912090 SHA256 4459d1b306004cde893fa6be08cbd7212155263a6259b1e1df1b7c66f5472e1d +EBUILD ganeti-instance-debootstrap-0.7.ebuild 940 RMD160 51705b7950db69193a7a140eaec225965616f3ab SHA1 d57ebbce594071fd249d690dd7bb1c2b6b555d62 SHA256 ec727dce6c7d7e66eb77f92210a3efe0e0fb299c56682eb02bea5e9e60d8d6ae +MISC ChangeLog 590 RMD160 9f0c28d956373e508503a6a9447de6ac76fe5d38 SHA1 ae51bbf6ed096f460298caf1ec67629ad52aa15a SHA256 c6f58461150d9b4ee1f9193a200000f97594cee737660780840d05a8ce4c7147 +MISC metadata.xml 615 RMD160 55c852925266540828988e2d465ab36a9fa46b8b SHA1 0cf15b6ff20d7e0e3d9289ae6a5a302526ed0ae8 SHA256 e8dbc0873d60d8971ce9e02a2e6ca397f56c2a7f4006635ff10997c74024a402 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iD8DBQFKxoHCQW+hXSf0t0IRAtAtAJ0f6TxSx3BLp1lj7tvbqxoHGtFNPgCgyjT6 +1vdomQfLNlugRSOqORiJwDI= +=/Di3 +-----END PGP SIGNATURE----- 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> + |