diff options
author | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2016-11-14 23:35:03 +0000 |
---|---|---|
committer | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2016-11-14 23:35:03 +0000 |
commit | d43942a1aa7a0641352851054ef5a2c785460ad2 (patch) | |
tree | edb3a6cbff4976c61b090462b08a30e069ec6083 /app-emulation | |
parent | add clustershell (diff) | |
download | ssnb-d43942a1aa7a0641352851054ef5a2c785460ad2.tar.gz ssnb-d43942a1aa7a0641352851054ef5a2c785460ad2.tar.bz2 ssnb-d43942a1aa7a0641352851054ef5a2c785460ad2.zip |
opennebula 5.2.0 and gitlab dependencies
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/opennebula/Manifest | 2 | ||||
-rw-r--r-- | app-emulation/opennebula/opennebula-5.2.0.ebuild | 175 |
2 files changed, 177 insertions, 0 deletions
diff --git a/app-emulation/opennebula/Manifest b/app-emulation/opennebula/Manifest index ab72bc7..f1e0a00 100644 --- a/app-emulation/opennebula/Manifest +++ b/app-emulation/opennebula/Manifest @@ -17,6 +17,8 @@ AUX websocket.py.diff 274 SHA256 820cbe4f6cf23fc5edd30ce96b3786c07b5d8b55a3a9856 AUX websocketproxy.py.diff 291 SHA256 a48ccd67ba84e624dfb9730f38ba39509379afe3e52ace8135579c576623dd8b SHA512 3c176c8709d28a2b506cb915bc00947b031e621267650b7282e26ffaf810f3a5aa128576c9cebd7cec0f320f6a173a4f8aa723898d7d5fdcf7710d484da1416a WHIRLPOOL cd79508aada3d20334e1fa6a333f792d65d49e03475334f8e58d5d9c56448468413d230f274ee175b811ed61fd6e18e67a4b10c13f18c1062bcf2172f7f603b4 DIST opennebula-4.14.2.tar.gz 9283555 SHA256 b9a3b2389d83ff1a5fa5d4e4fad34628c1b0ce0e2ff0e52fbc21d5ebb2420c67 SHA512 ed572bf1a6e0a4eecb85c1f2beb1f686e6729f74a354f41dbb5113fd089af06013f63d022ee8c068234e5be64df818771a0ba0c452ffbf4fd096dd16cf878926 WHIRLPOOL 56ab92ec379e47f795373d4755956764b37bf96aec8bedc5503e38aa6acb00a94c928dcc66169aa769434270eb1caefd77a2094771612a8ee1a3d08d8e0e953c DIST opennebula-5.0.2.tar.gz 12041225 SHA256 4867fe44739136ffbb9f91ea9a56501bd1cc2d1f19d813818ab5bf21c0cc9878 SHA512 95d61476538e32b75c3ac870c4ba19e4f352a90e1d6e76355efab4f4679291ba2fcd223ec39f9b3cbd29bc5c5c7a5388c1c402c5c84b22f81729ff240b6d34b6 WHIRLPOOL 77e04bfb9054872d91570b196256e247b7e9d2df1dcf01f946bc6776ea237f8dd236a82b0bc58c172672f8667537df61a3cce4052fb5777b130795291c4e6b59 +DIST opennebula-5.2.0.tar.gz 12220329 SHA256 b1360a050645a3d135dabb4e834b5c656a98018308fc7a2fabc214c0730eefa3 SHA512 e0095bb452198bbd72e946651a004005c0315137b9a7093226298138226f59630147e07ec66766ac8def74a580dc4f1f5d90739033d445b61d8f98fc2239ab58 WHIRLPOOL 1cce691266947583a1716a8d41ae449e69b30da750e253b898a6564f386e4378c4c0ad85077fa5fe864200bc17c9c4d626d899ba02e91b2d418e675503f67f7e EBUILD opennebula-4.14.2.ebuild 5992 SHA256 83518d6e6199aacd9c9f7c35bf5c0d88d905f34736773217819924850ae85a51 SHA512 cc18db5d7480f2067d95deb6a61df6c0a40a11ab9e4f6e2491fccdac34f349d527b6ffeedb2d2d2f04c3dba210c2a1316c635b4f69064a69bfd378ea0c4f9ebe WHIRLPOOL ec9208b6607382b3f3985d1c6255ec9c66455f9c1bf2ae8979b328216d35e9536ad7ce55b85e52f06c44af1dc7cb6174e1fb2faa1b45eff11c686a9dbabd7f16 EBUILD opennebula-5.0.2.ebuild 5141 SHA256 d900142aae83b24902e288dac45e77c69c6a4cf525b2b264d89155754ae1f1b6 SHA512 bb795f1c68dfa232cdca9a67a50b892d2eaf3c5c43db2344864cfc81af25f1486f7762d721c1a29d39aae135c91d57cc1b5a37691e2500783bf546ba615d08a9 WHIRLPOOL 154ceb6990ba596f6d5abcabad3a686007eca1546deeee0e36594827ead744cf8851dfb08b89c32a9a833af15e808310cf283a130164a5abb3c5088d8a224e87 +EBUILD opennebula-5.2.0.ebuild 5178 SHA256 c4ed7aa44b496ff05820f993cfb51c420014afba40ff95c516ee71ea093f5e93 SHA512 d758667dd121fa812e420de93c7b18edd2d15582088c8f995f69028d8afd48d10a5d683d35a18f2b41d5ce4b568f93ae0e8df98b0f211b2168c77547365d212e WHIRLPOOL f3310dbb4c39f79a3dc142f0d032252a08d785c1937797876d8f5b1fc927a70e80e8256ca97f5ef535bb5922689af13fa01291665f39e4f6a8f6e8f56a66fa3a MISC metadata.xml 471 SHA256 7e7ba4805811857e33a2374831129a50002448d7dcceb640585a4166103e4e63 SHA512 0be6058785693cef097e2b3ffcffbc7b0011719afcaaf4d10116f490dc23291bdbb9e91f42977c82ef002967a4cbd56f1bebe1f1e61a053a659250a54d7d67d1 WHIRLPOOL b7039f60c5f28c905a0332ff5cffc0c9ffa1ae8897faa927fb21bfbc909d11fcca95af2bf822c014f4d9c5ca325d3c1cd2446331bcb7f8b639a0a523dd14ad95 diff --git a/app-emulation/opennebula/opennebula-5.2.0.ebuild b/app-emulation/opennebula/opennebula-5.2.0.ebuild new file mode 100644 index 0000000..0e16ad5 --- /dev/null +++ b/app-emulation/opennebula/opennebula-5.2.0.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +USE_RUBY="ruby20 ruby21" + +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-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" +} + +src_configure() { + : +} + +src_compile() { + + local myconf + use extras && myconf+="new_xmlrpc=yes " + 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 -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" + + +} |