commit: bbd2c392d046d8c44fef63ea527825df37886f5c
Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
AuthorDate: Thu Apr 11 00:36:34 2019 +0000
Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
CommitDate: Thu Apr 11 00:36:34 2019 +0000
URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=bbd2c392
Run python2.7 with scons, since script is done for legacy python version
Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com>
app-emulation/opennebula/Manifest | 2 +
app-emulation/opennebula/opennebula-5.8.1.ebuild | 187 +++++++++++++++++++++++
2 files changed, 189 insertions(+)
diff --git a/app-emulation/opennebula/Manifest
b/app-emulation/opennebula/Manifest
index 9c675dd..a0b766f 100644
--- a/app-emulation/opennebula/Manifest
+++ b/app-emulation/opennebula/Manifest
@@ -25,6 +25,7 @@ DIST opennebula-5.4.13.tar.gz 14579822 BLAKE2B
66c6267a6b4ef5754f1f782245ef0708a
DIST opennebula-5.4.6.tar.gz 14537181 BLAKE2B
7240dbd209e7aec7c7ccecb95420b1b07761dcf0f1fa5f348101193e42a7af03def090d9ec6a60d32632e4ea31a5dfd03f7ee534a0e96b9e17255d8215f06f49
SHA512
440db6e15499740622c4a25cb8e28f2b718b6d2dfcb7d181f0fab927c03bc8d0ceb241bf08e03f068d73fc795ebe831b4102bebffb37f6aa320713bea66ef3ba
DIST opennebula-5.6.0.tar.gz 26357668 BLAKE2B
0bf79201bdac6dc2380507bd7981520948daaa9db7f5e42164c40aecc283b858bc7dc9a8072ebbf4b8632b1746010d2483547bcd343a98718373c774c45ddbb0
SHA512
157e96f8551c5bbc89490373e167638f3a416c0abacfecfe42dc9ef4d88659512be4f03e34a285dff37ea37eab45937a9a58eda9cdf2123161ca22a88f6defe2
DIST opennebula-5.6.1.tar.gz 26297534 BLAKE2B
1216502af4c5e0385e111d79f522cded875f8435de45d16280395bdef2ee638a664793426ecb71152ebace178fccfe50496708fb9f1a85870402030036e06500
SHA512
4978b227fd2bf19a8e56e17bb01defdff6a07f426f361befc4b7e5f0381fd5e255c29915fbf5465fdb0eccdaca3d7ec86a8f57c7629832899dfd671210cfff46
+DIST opennebula-5.8.1.tar.gz 26987763 BLAKE2B
7664bb04e024015a7004a46bdf1975217ad020f9a95922f1c4dc18e3a182b5ddc6ff1071778f428fbd48bd24fd2f6aeb91299188bb70c1a8984b30cbda671109
SHA512
1429b5456711162858134f0daba20373c28b64261f2e9b773e0bc9109f07ac8303a7ee0eed3d9df8646214f966ab5fa2e501e77bd9d4959e45a79c503156d8b3
EBUILD opennebula-4.14.2.ebuild 5992 BLAKE2B
d9858fe197615ac54b61ca1637acec8bd991f7b975f95d75bb45161db6953148faa300557109213ba7f0844d9cb0c7774b5900b2c9a5afb3021edbb7412b73eb
SHA512
cc18db5d7480f2067d95deb6a61df6c0a40a11ab9e4f6e2491fccdac34f349d527b6ffeedb2d2d2f04c3dba210c2a1316c635b4f69064a69bfd378ea0c4f9ebe
EBUILD opennebula-5.4.1.ebuild 5394 BLAKE2B
be801a88a64fb6c2345845bdb389a41b7f29664a8421639977058ea6e6b419fda65db70328fbf74782859e52979e52807bd77c1e3ce71a64d456e2b8e831d12b
SHA512
a4fd17509e5363838e699abbb609c9ff33de519949aa61121ffc7551405e3204dd7e6f2e0c764fc80c4a8d3f7b68693fe92ffd54c47f36095d949758b653e1dd
EBUILD opennebula-5.4.13.ebuild 5394 BLAKE2B
9298d0c8dd1deb510b5de5e74fac171da4a706f4346c0178425340d6d5c2bbcc4eed45d461ba0f5fa4db88abab73f6cad97472ef26f5d0523689444703281bfd
SHA512
bbe4e1977788043a79270b1b3d1a9b5478df4781b7fbe75bc6df6f03d1427d5bcf6840bc34ccb18233c2aaf4234c9bd6648f020910baaa68582ca68f712becef
@@ -32,4 +33,5 @@ EBUILD opennebula-5.4.15.ebuild 7414 BLAKE2B
75dcddeebbef2092d80d087a7e6186599a2
EBUILD opennebula-5.4.6.ebuild 5394 BLAKE2B
be801a88a64fb6c2345845bdb389a41b7f29664a8421639977058ea6e6b419fda65db70328fbf74782859e52979e52807bd77c1e3ce71a64d456e2b8e831d12b
SHA512
a4fd17509e5363838e699abbb609c9ff33de519949aa61121ffc7551405e3204dd7e6f2e0c764fc80c4a8d3f7b68693fe92ffd54c47f36095d949758b653e1dd
EBUILD opennebula-5.6.0.ebuild 5394 BLAKE2B
9298d0c8dd1deb510b5de5e74fac171da4a706f4346c0178425340d6d5c2bbcc4eed45d461ba0f5fa4db88abab73f6cad97472ef26f5d0523689444703281bfd
SHA512
bbe4e1977788043a79270b1b3d1a9b5478df4781b7fbe75bc6df6f03d1427d5bcf6840bc34ccb18233c2aaf4234c9bd6648f020910baaa68582ca68f712becef
EBUILD opennebula-5.6.1.ebuild 5394 BLAKE2B
9298d0c8dd1deb510b5de5e74fac171da4a706f4346c0178425340d6d5c2bbcc4eed45d461ba0f5fa4db88abab73f6cad97472ef26f5d0523689444703281bfd
SHA512
bbe4e1977788043a79270b1b3d1a9b5478df4781b7fbe75bc6df6f03d1427d5bcf6840bc34ccb18233c2aaf4234c9bd6648f020910baaa68582ca68f712becef
+EBUILD opennebula-5.8.1.ebuild 5419 BLAKE2B
4c38582d41d7bc352966bbeb3dbe42eb83aeac3c6589ecb4f68a87ea08f9855aea062b6e14012bbd17f6b18ad67e31f3d5da86bf23d0cbb44280d34496045da0
SHA512
a3506dc7d4f6d37136ef55da86d340fe477749a10c1a07b4b2c86692b5f06646f72cfbbdb4d57a55f841c0a0ecf7eef125fc22ed16ccfaae84c4adbe9b0b6b6b
MISC metadata.xml 471 BLAKE2B
fecada7f873a86295bd66aa16126682170731bb4cd87dc2cfc7f46503d1d10880cc92f87c388dc6b2d3e8a4d4cba73c4b88a97ce8d23c2254b0d91cb3f820779
SHA512
0be6058785693cef097e2b3ffcffbc7b0011719afcaaf4d10116f490dc23291bdbb9e91f42977c82ef002967a4cbd56f1bebe1f1e61a053a659250a54d7d67d1
diff --git a/app-emulation/opennebula/opennebula-5.8.1.ebuild
b/app-emulation/opennebula/opennebula-5.8.1.ebuild
new file mode 100644
index 0000000..2fedfad
--- /dev/null
+++ b/app-emulation/opennebula/opennebula-5.8.1.ebuild
@@ -0,0 +1,187 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=6
+USE_RUBY="ruby24 ruby25 ruby26"
+
+inherit user eutils multilib ruby-ng systemd
+
+MY_P="opennebula-${PV/_/-}"
+
+DESCRIPTION="OpenNebula Virtual Infrastructure Engine"
+HOMEPAGE="http://www.opennebula.org/"
+SRC_URI="http://downloads.opennebula.org/packages/${PN}-${PV}/${PN}-${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="qemu +mysql xen sqlite +extras systemd"
+
+RDEPEND=">=dev-libs/xmlrpc-c-1.18.02[abyss,cxx,threads]
+ dev-lang/ruby
+ extras? ( dev-libs/openssl
+ dev-ruby/libxml
+ net-misc/curl
+ dev-libs/libxslt
+ dev-libs/expat
+ dev-ruby/uuidtools
+ dev-ruby/amazon-ec2
+ dev-ruby/webmock
+ dev-ruby/mysql
+ dev-ruby/mysql2
+ dev-ruby/parse-cron
+ dev-ruby/sequel
+ dev-ruby/treetop
+ dev-ruby/xml-simple
+ dev-ruby/zendesk_api
+ dev-libs/log4cpp )
+ mysql? ( virtual/mysql )
+ dev-db/sqlite
+ net-misc/openssh
+ || ( app-cdr/cdrkit app-cdr/cdrtools )
+ sqlite? ( dev-ruby/sqlite3 )
+ qemu? ( app-emulation/libvirt[libvirtd,qemu] )
+ xen? ( app-emulation/xen-tools )"
+DEPEND="${RDEPEND}
+ >=dev-util/scons-1.2.0-r1
+ dev-ruby/nokogiri"
+
+# make sure no eclass is running tests
+RESTRICT="test"
+
+S="${WORKDIR}/${PN}-${PV}"
+
+ONEUSER="oneadmin"
+ONEGROUP="oneadmin"
+
+pkg_setup () {
+ enewgroup ${ONEGROUP}
+ enewuser ${ONEUSER} -1 /bin/bash /var/lib/one ${ONEGROUP}
+}
+
+src_unpack() {
+ default
+}
+
+src_prepare() {
+ sed -i -e 's|chmod|true|' install.sh || die "sed failed"
+ eapply_user
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+
+ local myconf
+ use extras && myconf+="new_xmlrpc=yes "
+ use mysql && myconf+="mysql=yes " || myconf+="mysql=no "
+ python2.7 $(which scons) \
+ ${myconf} \
+ $(sed -r 's/.*(-j\s*|--jobs=)([0-9]+).*/-j\2/' <<< ${MAKEOPTS})
\
+ || die "building ${PN} failed"
+}
+
+src_install() {
+ DESTDIR=${T} ./install.sh -u ${ONEUSER} -g ${ONEGROUP} || die "install
failed"
+
+ cd "${T}"
+
+ # installing things for real
+ dobin bin/*
+
+ keepdir /var/{lib,run}/${PN} || die "keepdir failed"
+
+ dodir /usr/$(get_libdir)/one
+ dodir /var/lock/one
+ dodir /var/log/one
+ dodir /var/lib/one
+ dodir /var/run/one
+ dodir /var/tmp/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 /var/lib/one
+ dodir /var/lib/one/vms
+ dodir /usr/share/one
+ dodir /etc/tmpfiles.d
+ # we have to preserve the executable bits
+ cp -a var/remotes "${D}/var/lib/one/" || die "copying remotes failed"
+ cp -a share/* "${D}/usr/share/one/" || die "copying share failed"
+
+ doenvd "${FILESDIR}/99one"
+
+ newinitd "${FILESDIR}/opennebula.initd" opennebula
+ newinitd "${FILESDIR}/sunstone-server.initd" sunstone-server
+ newinitd "${FILESDIR}/oneflow-server.initd" oneflow-server
+ newconfd "${FILESDIR}/opennebula.confd" opennebula
+ newconfd "${FILESDIR}/sunstone-server.confd" sunstone-server
+ newconfd "${FILESDIR}/oneflow-server.confd" oneflow-server
+
+ use systemd && systemd_dounit
"${FILESDIR}"/opennebula{,-sunstone,-econe,-oneflow,-onegate}.service
+
+ insinto /etc/one
+ insopts -m 0640
+ doins -r etc/*
+ doins "${FILESDIR}/one_auth"
+
+ insinto /etc/tmpfiles.d
+ doins "${FILESDIR}/tmpfilesd.opennebula.conf"
+
+}
+
+pkg_postinst() {
+
+
+ chown -R oneadmin:oneadmin ${ROOT}var/{lock,lib,log,run,tmp}/one
+ chown -R oneadmin:oneadmin ${ROOT}usr/share/one
+ chown -R oneadmin:oneadmin ${ROOT}etc/one
+ chown -R oneadmin:oneadmin ${ROOT}usr/lib/one
+
+ 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
+
+ elog "If you wish to use the sunstone server, please issue the command"
+ #elog "/usr/share/one/install_gems as oneadmin user"
+ elog "gem install sequel thin json rack sinatra builder treetop
zendesk_api mysql parse-cron"
+
+
+}
+