summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2012-07-19 08:00:27 +0000
committerTiziano Müller <dev-zero@gentoo.org>2012-07-19 08:00:27 +0000
commit295de9bd4fd85bba8a34a665102323f9297ae25f (patch)
treed72ab98ae1713656421684dc478aea4fc7d6839b /app-emulation
parentInitial version of feedgenerator (for pelican, bug 379671). (diff)
downloadgentoo-2-295de9bd4fd85bba8a34a665102323f9297ae25f.tar.gz
gentoo-2-295de9bd4fd85bba8a34a665102323f9297ae25f.tar.bz2
gentoo-2-295de9bd4fd85bba8a34a665102323f9297ae25f.zip
Remove opennebula since I do not have time nor interest to maintain it and it never left package.mask
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/opennebula/ChangeLog28
-rw-r--r--app-emulation/opennebula/Manifest12
-rw-r--r--app-emulation/opennebula/files/2.0_beta1-o_creat.patch13
-rw-r--r--app-emulation/opennebula/files/2.0_beta1-recognize_floppy_type.patch17
-rw-r--r--app-emulation/opennebula/files/2.0_beta1-respect_flags.patch19
-rw-r--r--app-emulation/opennebula/files/99one2
-rw-r--r--app-emulation/opennebula/files/one_auth1
-rw-r--r--app-emulation/opennebula/files/opennebula.confd23
-rw-r--r--app-emulation/opennebula/files/opennebula.initd45
-rw-r--r--app-emulation/opennebula/metadata.xml12
-rw-r--r--app-emulation/opennebula/opennebula-2.0_beta1-r1.ebuild155
-rw-r--r--app-emulation/opennebula/opennebula-2.0_beta1.ebuild147
12 files changed, 0 insertions, 474 deletions
diff --git a/app-emulation/opennebula/ChangeLog b/app-emulation/opennebula/ChangeLog
deleted file mode 100644
index bb724dcbde39..000000000000
--- a/app-emulation/opennebula/ChangeLog
+++ /dev/null
@@ -1,28 +0,0 @@
-# ChangeLog for app-emulation/opennebula
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/opennebula/ChangeLog,v 1.4 2012/05/31 23:16:47 zmedico Exp $
-
- 31 May 2012; Zac Medico <zmedico@gentoo.org> opennebula-2.0_beta1-r1.ebuild,
- opennebula-2.0_beta1.ebuild:
- inherit user for enewgroup and enewuser
-
- 16 Aug 2010; Tiziano Müller <dev-zero@gentoo.org>
- opennebula-2.0_beta1-r1.ebuild:
- It's test, not tests (in RESTRICT, thanks to Mr_Bones).
-
-*opennebula-2.0_beta1-r1 (15 Aug 2010)
-
- 15 Aug 2010; Tiziano Müller <dev-zero@gentoo.org>
- +files/2.0_beta1-recognize_floppy_type.patch,
- +opennebula-2.0_beta1-r1.ebuild:
- Various fixes, added patch to properly recognize the floppy disk type as
- documented.
-
-*opennebula-2.0_beta1 (11 Aug 2010)
-
- 11 Aug 2010; Tiziano Müller <dev-zero@gentoo.org>
- +files/2.0_beta1-o_creat.patch, +opennebula-2.0_beta1.ebuild,
- +files/2.0_beta1-respect_flags.patch, +files/99one, +files/one_auth,
- +files/opennebula.confd, +files/opennebula.initd, +metadata.xml:
- Initial commit, ebuild written by me.
-
diff --git a/app-emulation/opennebula/Manifest b/app-emulation/opennebula/Manifest
deleted file mode 100644
index 0843e80ebff7..000000000000
--- a/app-emulation/opennebula/Manifest
+++ /dev/null
@@ -1,12 +0,0 @@
-AUX 2.0_beta1-o_creat.patch 438 SHA256 cf2aab9822c308d4477bb8de836a8ae56bba4c3ce4a01bbd0df4e082067904ff SHA512 dcfb6840e3a6ccb34099c22d381bfad2487e9cfa5edc7e82baa5eb998045ba6750803aef851ef5b8491b8cf8d727bb65c207e4eb618bf35cbcec340173f93a92 WHIRLPOOL 1fcf93c225ce09ecf02faf99d7fccbead5667ed06535ac01cd3974df62751745ce0b8b09f8821ce2aa38a7d050de3d0ad197721b190305c815f5c07a1f0ebb3d
-AUX 2.0_beta1-recognize_floppy_type.patch 697 SHA256 b77832503ffbd532265c73f2eb256d453db2be4c49c07e0672d1a11b7399db22 SHA512 cd536256209d695d4107f4015debdee5c217b6b94dc231651eb61da602a8a9f3516ddf713fb919b795d18947517ca90f91359a11d486bccb715d677c328db1be WHIRLPOOL 3a15e2baddc9bbe7a47096e57ff6f97cd3e4915e6b955aa2a425b28ea13e51105780106577c4d5e7b1ba2a9f3ded6e2ecae9b91d45103fb38bc1f8056d6da9d7
-AUX 2.0_beta1-respect_flags.patch 520 SHA256 0f8709f4f084c0bf17bff0f2f57c0ce039ddddd613725448ccaa5ca4cf9407ce SHA512 2fd8d3a4ebb7cbcdf18874eb81fc1920cbe8be3c20ef4036a205000b4ad5c03edfa0b504492e123d57a3cbaee424afa6ced96f72e71f11227a019a434c990ae4 WHIRLPOOL 154d62884ff0d705c2770e566db8314f6a301daf9cea5dbccc6128af45c5a1e447fcfed7511193f629389742ef4379cd6a2952c052cc29928af5a9f06c220987
-AUX 99one 67 SHA256 41a931710fead5ecf526b202e717c2066ab484be69c059543ae0060dc193bcfa SHA512 939881c600e27d5e6426a19af5144c0df63f6a6beb8306d44c774211260b9b99102ac073a19df2a2693e2196e53fcb8bed7214bcd5b760c69b0585189b9bb50b WHIRLPOOL 969217d325009a30fa64d775dfc9a60c3aa9c6ff7a23680d40d1b81591b8ce34afee5b5a585ff621ea4f7a886097f4da066b8512cc91ea86c293f29606b812bb
-AUX one_auth 12 SHA256 4af1f964af87ed62f2b953e8b0269b2ad8dfbcba57b5eebddcb9e8f0cc4379da SHA512 8aaab56ae8c8bf7d1c06a47f4f3339c9e62486270b9ab00751dd21fabee19824f05b20b3d979741886539570e761fd3227acd5ef55a04a9273f0b706f93c813f WHIRLPOOL 0db1c1b4493042287d4b8055e91bed45315c702452d975acaecd43c6545267692bb2f1d064f39ad3cc4fd976728fa4975245bfa65f93071a3c93f1581e5a1230
-AUX opennebula.confd 726 SHA256 cd358620bb8e76fd85e2f5b86d517569c12f0d44ec3440ef80f3a45a665f30db SHA512 77cd2fb0108a5a6665edc0c3e392511e93abf22e31b7ea451a241288572b9b79a997975bb62214dd02be49b406ef42671bacb8a98e6b1aa20dc045df7c2e82fc WHIRLPOOL 8dd9a238f7ef847f89a338d0b5b5db29dd943d30d1904ece815ac052de79c6a4701f9f44a0cbc5906ecb6e890f3151ddb312c7cead2eff7b10c507afdafa6464
-AUX opennebula.initd 1080 SHA256 da71a2175efdb72aa4862e2fa6dc701339a117028ec4974f398b6e007b5b5019 SHA512 8b5d2c5c9926568369fd848d9057509e73bf9e5f45c651ca3076b9e0428466f3699ca2609848318bdcc39ffc50c10933f5dd38665250860c39c4bd6341ac0295 WHIRLPOOL 22862a85063c25bddace1671dbf094271ca85b097e187ab9a19c064434026b4cd330dc53aa96fc13d799e19ac707f060dc9c30d9b3e5902d9e7bf79f125be950
-DIST one-2.0-beta1.tar.gz 651835 SHA256 b1e680a132b0769c5880f5b68afd03c7a4a5d54d7f5be2d709760e58106bda7a SHA512 b5da10b3a6a1217a5810113e128ccd6185c37a084b670c8f1b150ddd3d2f91d39423190c60b80cc2e5122bebe74b67d438ddd9cb450671f4544d4737794419e9 WHIRLPOOL da371caca368218d9f6c4d0d7f1f7ed3d6aefcc96c2cb580a265a76bf2bcef67e4ceb1b695e253bbc0a2a401ecd34c791467f93bc35f68742892824fd476aa97
-EBUILD opennebula-2.0_beta1-r1.ebuild 4474 SHA256 8d588808ce242b0f6de55dbd08d8f259b78d6b20779513f1485093528319c66a SHA512 a9c0ac1c1e6691f4dd989ce6616fe783e4d2a596ddd972b055c891afa08945f3588c0c693603c1c9d26468e35c4ce5d8073f1e1a83138f27bb239fe83a618ee4 WHIRLPOOL 4303ccbd7cbc881fd7e036eb511bfb76e8d4e478a702e5070f2e8e7b3fc2d21945115345275d1d00911fe7c7ca593a7c9217d947c507748effc118b636fc143f
-EBUILD opennebula-2.0_beta1.ebuild 3994 SHA256 ed6272ca26ce92a3e49458a5dcc6502753d3fd1a663454f0d566647344f531f5 SHA512 d103d7551e203caddb13da572e0d63a1a3ffb984766425b825da5d0198ace93056e0f8082e4f34ff3ea3c57f39536c23db9b9610f4837c1706ca525d517831f4 WHIRLPOOL 7180b72ab53d199bacfe98d8e4b4dde251f16dcd0ead5373418cf9393f8a512f5f602d9a768671eefd1a7c3ced21bfbd737ae9e6b11d6fa212363928c7593c26
-MISC ChangeLog 1120 SHA256 c67d900405df0a94b20410627274671c8ac63b3032355cb8f49c9403213840b5 SHA512 1cb5dd93732f89a7ddb1ed2c69550e46fe3c99c6a65ecdbe194d5bf9d7f12359de5412eee0aaa007a7509dd6fbf9ac62c686d32216599d1f9e5f42f09244585a WHIRLPOOL 8f7a0a14bfff0eec7496c09838d5bff0eb31242a266bf07d578d23a63a55b04c4ef7fe67b14eb482e870e02ddfdedbd0efd199a5324daea88d5c28a10e845f13
-MISC metadata.xml 409 SHA256 722524f3173ea11bc641bcc53de155e261767e201eef062c3c6f8a881c2cd347 SHA512 13da87924385c9c890a2fd8481094602eb37df67ab4c65733f05beeaab9ec1686f484a7313187e981cff62b653a8961f5e528b931e32420d71989aac7acd278a WHIRLPOOL 962a893a1463761d37d66d2f1867172bcaf01f1ea991abe462cafd23c6951b027d308e1cffcd13c20fffae70aa50f18d13890ac50d5445c18e92128049e0e3ed
diff --git a/app-emulation/opennebula/files/2.0_beta1-o_creat.patch b/app-emulation/opennebula/files/2.0_beta1-o_creat.patch
deleted file mode 100644
index 9ef5881188f4..000000000000
--- a/app-emulation/opennebula/files/2.0_beta1-o_creat.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/src/nebula/Nebula.cc b/src/nebula/Nebula.cc
-index d6ab6b6..a47b80a 100644
---- a/src/nebula/Nebula.cc
-+++ b/src/nebula/Nebula.cc
-@@ -259,7 +259,7 @@ void Nebula::start()
- // Close stds, we no longer need them
- // -----------------------------------------------------------
-
-- fd = open("/dev/null", O_RDWR|O_CREAT);
-+ fd = open("/dev/null", O_RDWR|O_CREAT, S_IRUSR|S_IWUSR);
-
- dup2(fd,0);
- dup2(fd,1);
diff --git a/app-emulation/opennebula/files/2.0_beta1-recognize_floppy_type.patch b/app-emulation/opennebula/files/2.0_beta1-recognize_floppy_type.patch
deleted file mode 100644
index 4d361383d251..000000000000
--- a/app-emulation/opennebula/files/2.0_beta1-recognize_floppy_type.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/src/vmm/LibVirtDriver.cc b/src/vmm/LibVirtDriver.cc
-index c55468d..ede911a 100644
---- a/src/vmm/LibVirtDriver.cc
-+++ b/src/vmm/LibVirtDriver.cc
-@@ -296,6 +296,12 @@ int LibVirtDriver::deployment_description(
- << "\t\t\t<source file='" << vm->get_remote_dir() << "/disk."
- << i << "'/>" << endl;
- }
-+ else if ( type == "FLOPPY" )
-+ {
-+ file << "\t\t<disk type='file' device='floppy'>" << endl
-+ << "\t\t\t<source file='" << vm->get_remote_dir() << "/disk."
-+ << i << "'/>" << endl;
-+ }
- else
- {
- file << "\t\t<disk type='file' device='disk'>" << endl
diff --git a/app-emulation/opennebula/files/2.0_beta1-respect_flags.patch b/app-emulation/opennebula/files/2.0_beta1-respect_flags.patch
deleted file mode 100644
index 1ead01307fe4..000000000000
--- a/app-emulation/opennebula/files/2.0_beta1-respect_flags.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff --git a/SConstruct b/SConstruct
-index d27c759..7f7cfb4 100644
---- a/SConstruct
-+++ b/SConstruct
-@@ -27,6 +27,14 @@ cwd=os.getcwd()
- main_env=Environment()
- main_env['ENV']['PATH']=os.environ['PATH']
-
-+# process env variables (thanks to robbat2 in ipager)
-+for K in ['CPPFLAGS', 'CFLAGS', 'CXXFLAGS', 'LDFLAGS', 'CC', 'CXX']:
-+ if K in os.environ.keys():
-+ dict = main_env.ParseFlags(os.environ[K])
-+ main_env.MergeFlags(dict)
-+
-+
-+
- # Add builders for flex and bison
- add_lex(main_env)
- add_bison(main_env)
diff --git a/app-emulation/opennebula/files/99one b/app-emulation/opennebula/files/99one
deleted file mode 100644
index 03ac0ad9120e..000000000000
--- a/app-emulation/opennebula/files/99one
+++ /dev/null
@@ -1,2 +0,0 @@
-ONE_AUTH="/etc/one/one_auth"
-ONE_XMLRPC=http://localhost:2633/RPC2
diff --git a/app-emulation/opennebula/files/one_auth b/app-emulation/opennebula/files/one_auth
deleted file mode 100644
index 8a5c9a66637b..000000000000
--- a/app-emulation/opennebula/files/one_auth
+++ /dev/null
@@ -1 +0,0 @@
-admin:admin
diff --git a/app-emulation/opennebula/files/opennebula.confd b/app-emulation/opennebula/files/opennebula.confd
deleted file mode 100644
index 3b15e61bf8df..000000000000
--- a/app-emulation/opennebula/files/opennebula.confd
+++ /dev/null
@@ -1,23 +0,0 @@
-
-# opennebula user
-USER="oneadmin"
-GROUP="oneadmin"
-
-# options for oned
-ONED_OPTIONS=""
-
-# scheduler pid file
-SCHED_PIDFILE="/var/run/one/sched.pid"
-
-# The following command line arguments are supported by mm_shed:
-# [-p port] to connect to oned - default: 2633
-# [-t timer] seconds between two scheduling actions - default: 30
-# [-m machines limit] max number of VMs managed in each scheduling action
-# - default: 300
-# [-d dispatch limit] max number of VMs dispatched in each scheduling action
-# - default: 30
-# [-h host dispatch] max number of VMs dispatched to a given host in each
-# scheduling action - default: 1
-SCHED_OPTIONS=""
-
-
diff --git a/app-emulation/opennebula/files/opennebula.initd b/app-emulation/opennebula/files/opennebula.initd
deleted file mode 100644
index 895d475b03cd..000000000000
--- a/app-emulation/opennebula/files/opennebula.initd
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/opennebula/files/opennebula.initd,v 1.1 2010/08/11 16:07:57 dev-zero Exp $
-
-depend() {
- after mysql
- use libvirtd
-}
-
-start() {
- ebegin "Starting OpenNebula daemon"
- start-stop-daemon \
- --start \
- --exec /usr/bin/oned \
- --user ${USER}:${GROUP} \
- -- ${ONED_OPTIONS}
- eend $?
-
- ebegin "Starting OpenNebula scheduler"
- start-stop-daemon \
- --start \
- --exec /usr/bin/mm_sched \
- --pidfile "${SCHED_PIDFILE}" \
- --make-pidfile \
- --background \
- --user ${USER}:${GROUP} \
- -- ${SCHED_OPTIONS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping OpenNebula daemon"
- start-stop-daemon \
- --stop \
- --exec /usr/bin/oned
- eend $?
-
- ebegin "Stopping OpenNebula scheduler"
- start-stop-daemon \
- --stop \
- --exec /usr/bin/mm_sched \
- --pidfile "${SCHED_PIDFILE}"
- eend $?
-}
diff --git a/app-emulation/opennebula/metadata.xml b/app-emulation/opennebula/metadata.xml
deleted file mode 100644
index 4ddd74430990..000000000000
--- a/app-emulation/opennebula/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer>
- <email>dev-zero@gentoo.org</email>
- <name>Tiziano Müller</name>
- </maintainer>
- <use>
- <flag name="xen">Pull in packages needed to create Xen nodes.</flag>
- <flag name="qemu">Pull in packages needed to create Qemu/Kvm nodes.</flag>
- </use>
-</pkgmetadata>
diff --git a/app-emulation/opennebula/opennebula-2.0_beta1-r1.ebuild b/app-emulation/opennebula/opennebula-2.0_beta1-r1.ebuild
deleted file mode 100644
index 2e9279f74ee3..000000000000
--- a/app-emulation/opennebula/opennebula-2.0_beta1-r1.ebuild
+++ /dev/null
@@ -1,155 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/opennebula/opennebula-2.0_beta1-r1.ebuild,v 1.3 2012/05/31 23:16:47 zmedico Exp $
-
-EAPI=3
-USE_RUBY="ruby18"
-
-inherit eutils multilib ruby-ng user
-
-MY_P="one-${PV/_/-}"
-DOWNLOAD_ID="177"
-
-DESCRIPTION="OpenNebula Virtual Infrastructure Engine"
-HOMEPAGE="http://www.opennebula.org/"
-SRC_URI="http://dev.opennebula.org/attachments/download/${DOWNLOAD_ID}/${MY_P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="qemu mysql sqlite xen"
-
-RDEPEND=">=dev-libs/xmlrpc-c-1.18.02[abyss,cxx,threads]
- dev-lang/ruby:1.8
- mysql? ( dev-db/mysql )
- dev-db/sqlite:3[threadsafe]
- net-misc/openssh
- qemu? ( app-emulation/libvirt[libvirtd,qemu] )
- xen? ( app-emulation/xen-tools )"
-DEPEND="${RDEPEND}
- >=dev-util/scons-1.2.0-r1"
-
-ruby_add_rdepend "dev-ruby/nokogiri
- dev-ruby/crack"
-
-# make sure no eclass is running tests
-RESTRICT="test"
-
-S="${WORKDIR}/${MY_P}"
-
-ONEUSER="oneadmin"
-ONEGROUP="oneadmin"
-
-pkg_setup () {
- enewgroup ${ONEGROUP}
- enewuser ${ONEUSER} -1 /bin/bash /var/lib/one ${ONEGROUP}
-}
-
-src_unpack() {
- default
-}
-
-src_prepare() {
- epatch \
- "${FILESDIR}/${PV}-respect_flags.patch" \
- "${FILESDIR}/${PV}-o_creat.patch" \
- "${FILESDIR}/${PV}-recognize_floppy_type.patch"
-
- sed -i -e 's|chmod|true|' install.sh || die "sed failed"
-}
-
-src_configure() {
- :
-}
-
-src_compile() {
- local myconf
- use mysql && myconf+="mysql=yes " || myconf+="mysql=no "
- scons \
- ${myconf} \
- $(sed -r 's/.*(-j\s*|--jobs=)([0-9]+).*/-j\2/' <<< ${MAKEOPTS}) \
- || die "building ${PN} failed"
-}
-
-src_install() {
- DESTDIR=${T} ./install.sh || die "install failed"
-
- cd "${T}"
-
- # fixing paths
- sed -i \
- -e 's|//share/hooks|/usr/share/one/hooks|' \
- etc/oned.conf || die "sed failed"
-
- # installing things for real
- dobin bin/*
-
- dodir /usr/$(get_libdir)/one
- # we have to preserve the executable bits
- cp -a lib/* "${D}/usr/$(get_libdir)/one/" || die "copying lib files failed"
-
- insinto /usr/share/doc/${PF}
- doins -r share/examples
-
- dodir /usr/share/one
- # we have to preserve the executable bits
- cp -a share/hooks "${D}/usr/share/one" || die "copying hooks failed"
-
- keepdir /var/lock/one
- keepdir /var/lib/one
- keepdir /var/log/one
- keepdir /var/run/one
- keepdir /var/images
-
- fowners ${ONEUSER}:${ONEGROUP} /var/{lock,lib,log,run}/one /var/images
- fperms 3770 /var/images
-
- doenvd "${FILESDIR}/99one"
-
- newinitd "${FILESDIR}/opennebula.initd" opennebula
- newconfd "${FILESDIR}/opennebula.confd" opennebula
-
- insinto /etc/one
- insopts -m 0640
- doins -r etc/*
- doins "${FILESDIR}/one_auth"
- fowners -R root:${ONEGROUP} /etc/one
- fowners ${ONEUSER}:${ONEGROUP} /etc/one/one_auth
-}
-
-pkg_postinst() {
- local onedir="${EROOT}var/lib/one"
- if [ ! -d "${onedir}/.ssh" ] ; then
- einfo "Generating ssh-key..."
- umask 0027 || die "setting umask failed"
- mkdir "${onedir}/.ssh" || die "creating ssh directory failed"
- ssh-keygen -q -t dsa -N "" -f "${onedir}/.ssh/id_dsa" || die "ssh-keygen failed"
- cat > "${onedir}/.ssh/config" <<EOF
-UserKnownHostsFile /dev/null
-Host *
- StrictHostKeyChecking no
-EOF
- cat "${onedir}/.ssh/id_dsa.pub" >> "${onedir}/.ssh/authorized_keys" || die "adding key failed"
- chown -R ${ONEUSER}:${ONEGROUP} "${onedir}/.ssh" || die "changing owner failed"
- fi
-
- if use qemu ; then
- elog "Make sure that the user ${ONEUSER} has access to the libvirt control socket"
- elog " /var/run/libvirt/libvirt-sock"
- elog "You can easily check this by executing the following command as ${ONEUSER} user"
- elog " virsh -c qemu:///system nodeinfo"
- elog "If not using using policykit in libvirt, the file you should take a look at is:"
- elog " /etc/libvirt/libvirtd.conf (look for the unix_sock_*_perms parameters)"
- elog "Failure to do so may lead to nodes hanging in PENDING state forever without further notice."
- echo ""
- elog "Should a node hang in PENDING state even with correct permissions, try the following to get more information."
- elog "In /tmp/one-im execute the following command for the biggest one_im-* file:"
- elog " ruby -wd one_im-???"
- echo ""
- elog "OpenNebula doesn't allow you to specify the disc format."
- elog "Unfortunately the default in libvirt is not to guess and"
- elog "it therefores assumes a 'raw' format when using qemu/kvm."
- elog "Set 'allow_disk_format_probing = 0' in /etc/libvirt/qemu.conf"
- elog "to work around this until OpenNebula fixes it."
- fi
-}
diff --git a/app-emulation/opennebula/opennebula-2.0_beta1.ebuild b/app-emulation/opennebula/opennebula-2.0_beta1.ebuild
deleted file mode 100644
index 2be9dfcf55dd..000000000000
--- a/app-emulation/opennebula/opennebula-2.0_beta1.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/opennebula/opennebula-2.0_beta1.ebuild,v 1.2 2012/05/31 23:16:47 zmedico Exp $
-
-EAPI=3
-USE_RUBY="ruby18"
-
-inherit eutils multilib ruby-ng user
-
-MY_P="one-${PV/_/-}"
-DOWNLOAD_ID="177"
-
-DESCRIPTION="OpenNebula Virtual Infrastructure Engine"
-HOMEPAGE="http://www.opennebula.org/"
-SRC_URI="http://dev.opennebula.org/attachments/download/${DOWNLOAD_ID}/${MY_P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="qemu mysql sqlite xen"
-
-RDEPEND=">=dev-libs/xmlrpc-c-1.18.02[abyss,cxx,threads]
- dev-lang/ruby:1.8
- mysql? ( dev-db/mysql )
- dev-db/sqlite:3[threadsafe]
- net-misc/openssh
- qemu? ( app-emulation/libvirt[libvirtd,qemu] )
- xen? ( app-emulation/xen-tools )"
-DEPEND="${RDEPEND}
- >=dev-util/scons-1.2.0-r1"
-
-ruby_add_rdepend "dev-ruby/nokogiri
- dev-ruby/crack"
-
-# make sure no eclass is running tests
-RESTRICT="test"
-
-S="${WORKDIR}/${MY_P}"
-
-ONEUSER="oneadmin"
-ONEGROUP="oneadmin"
-
-pkg_setup () {
- enewgroup ${ONEGROUP}
- enewuser ${ONEUSER} -1 /bin/bash /var/lib/one ${ONEGROUP}
-}
-
-src_unpack() {
- default
-}
-
-src_prepare() {
- epatch \
- "${FILESDIR}/${PV}-respect_flags.patch" \
- "${FILESDIR}/${PV}-o_creat.patch"
-
- sed -i -e 's|chmod|true|' install.sh || die "sed failed"
-}
-
-src_configure() {
- :
-}
-
-src_compile() {
- local myconf
- use mysql && myconf+="mysql=yes " || myconf+="mysql=no "
- scons \
- ${myconf} \
- $(sed -r 's/.*(-j\s*|--jobs=)([0-9]+).*/-j\2/' <<< ${MAKEOPTS}) \
- || die "building ${PN} failed"
-}
-
-src_install() {
- DESTDIR=${T} ./install.sh || die "install failed"
-
- cd "${T}"
-
- # fixing paths
- sed -i \
- -e 's|//share/hooks|/usr/share/one/hooks|' \
- etc/oned.conf || die "sed failed"
-
- # installing things for real
- dobin bin/*
-
- dodir /usr/$(get_libdir)/one
- # we have to preserve the executable bits
- cp -a lib/* "${D}/usr/$(get_libdir)/one/" || die "copying lib files failed"
-
- insinto /usr/share/doc/${PF}
- doins -r share/examples
-
- insinto /usr/share/one
- doins -r share/hooks
-
- keepdir /var/lock/one
- keepdir /var/lib/one
- keepdir /var/log/one
- keepdir /var/run/one
- keepdir /var/images
-
- fowners ${ONEUSER}:${ONEGROUP} /var/{lock,lib,log,run}/one /var/images
- fperms 3770 /var/images
-
- doenvd "${FILESDIR}/99one"
-
- newinitd "${FILESDIR}/opennebula.initd" opennebula
- newconfd "${FILESDIR}/opennebula.confd" opennebula
-
- insinto /etc/one
- insopts -m 0640
- doins -r etc/*
- doins "${FILESDIR}/one_auth"
- fowners -R root:${ONEGROUP} /etc/one
- fowners ${ONEUSER}:${ONEGROUP} /etc/one/one_auth
-}
-
-pkg_postinst() {
- local onedir="${EROOT}var/lib/one"
- if [ ! -d "${onedir}/.ssh" ] ; then
- einfo "Generating ssh-key..."
- umask 0027 || die "setting umask failed"
- mkdir "${onedir}/.ssh" || die "creating ssh directory failed"
- ssh-keygen -q -t dsa -N "" -f "${onedir}/.ssh/id_dsa" || die "ssh-keygen failed"
- cat > "${onedir}/.ssh/config" <<EOF
-UserKnownHostsFile /dev/null
-Host *
- StrictHostKeyChecking no
-EOF
- cat "${onedir}/.ssh/id_dsa.pub" >> "${onedir}/.ssh/authorized_keys" || die "adding key failed"
- chown -R ${ONEUSER}:${ONEGROUP} "${onedir}/.ssh" || die "changing owner failed"
- fi
-
- if use qemu ; then
- elog "Make sure that the user ${ONEUSER} has access to the libvirt control socket"
- elog " /var/run/libvirt/libvirt-sock"
- elog "You can easily check this by executing the following command as ${ONEUSER} user"
- elog " virsh -c qemu:///system nodeinfo"
- elog "If not using using policykit in libvirt, the file you should take a look at is:"
- elog " /etc/libvirt/libvirtd.conf (look for the unix_sock_*_perms parameters)"
- elog "Failure to do so may lead to nodes hanging in PENDING state forever without further notice."
- echo ""
- elog "Should a node hang in PENDING state even with correct permissions, try the following to get more information."
- elog "In /tmp/one-im execute the following command for the biggest one_im-* file:"
- elog " ruby -wd one_im-???"
- fi
-}