diff --git a/app-emulation/libvirt/files/libvirt-guests.confd b/app-emulation/libvirt/files/libvirt-guests.confd index 6e98dc23da694..514c8eeb4d6f6 100644 --- a/app-emulation/libvirt/files/libvirt-guests.confd +++ b/app-emulation/libvirt/files/libvirt-guests.confd @@ -39,6 +39,16 @@ #LIBVIRT_MAXWAIT="500" +# LIBVIRT_IGNORE_AUTOSTART +# If the VM is marked for autostart in its XML configuration then we won't +# save its start when the init script is stopped. The result is that when +# the init script starts back up, no attempt will be made to start the VM or +# confirm it is started. +# Valid values are yes or no + +#LIBVIRT_IGNORE_AUTOSTART="no" + + # LIBVIRT_NET_SHUTDOWN # If libvirtd created networks for you (e.g. NATed networks) then this init # script will shut them down for you if this is set to 'yes'. Otherwise, diff --git a/app-emulation/libvirt/files/libvirt-guests.init b/app-emulation/libvirt/files/libvirt-guests.init index 045f04dde147c..2b63dea6dce91 100644 --- a/app-emulation/libvirt/files/libvirt-guests.init +++ b/app-emulation/libvirt/files/libvirt-guests.init @@ -38,20 +38,32 @@ do_virsh() { libvirtd_dom_list() { # Only work with domains by their UUIDs - do_virsh "$1" list --uuid $2 + local hvuri=$1 + shift + + do_virsh "${hvuri}" list --uuid $@ } libvirtd_dom_count() { - libvirtd_dom_list "$1" $2 | wc -l + local hvuri=$1 + shift + + libvirtd_dom_list "${hvuri}" $@ | wc -l } libvirtd_net_list() { # Only work with networks by their UUIDs - do_virsh "$1" net-list --uuid $2 + local hvuri=$1 + shift + + do_virsh "${hvuri}" net-list --uuid $@ } libvirtd_net_count() { - libvirtd_net_list "$1" $2 | wc -l + local hvuri=$1 + shift + + libvirtd_net_list "${hvuri}" $@ | wc -l } libvirtd_dom_stop() { @@ -64,6 +76,7 @@ libvirtd_dom_stop() { local shutdown_type=${LIBVIRT_SHUTDOWN} local counter=${LIBVIRT_MAXWAIT} local dom_name= + local dom_as= local dom_ids= local uuid= local dom_count= @@ -80,10 +93,18 @@ libvirtd_dom_stop() { # Get the name dom_name=$(do_virsh ${uri} domname ${uuid}) einfo " ${dom_name}" + # Get autostart state + dom_as=$(do_virsh ${uri} dominfo ${uuid} | \ + awk '$1 == "Autostart:" { print $2 }') if [ "${persist}" = "--persistent" ]; then - # Save our running state - echo "${uri} ${uuid}" >> ${gueststatefile} + # Save our running state only if LIBVIRT_IGNORE_AUTOSTART != yes + if [ "x${LIBVIRT_IGNORE_AUTOSTART}" = "xyes" ] && \ + [ ${dom_as} = "enabled" ]; then + : + else + echo "${uri} ${uuid}" >> ${gueststatefile} + fi fi diff --git a/dev-java/blowfishj/blowfishj-2.14-r1.ebuild b/dev-java/blowfishj/blowfishj-2.14-r1.ebuild deleted file mode 100644 index 82e4c81b75c11..0000000000000 --- a/dev-java/blowfishj/blowfishj-2.14-r1.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -JAVA_PKG_IUSE="doc source test" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="Blowfish implementation in Java" -SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" -HOMEPAGE="http://blowfishj.sourceforge.net/index.html" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ppc x86" -IUSE="doc test source" - -DEPEND=">=virtual/jdk-1.4 - test? ( =dev-java/junit-3* dev-java/ant-junit ) " -RDEPEND=">=virtual/jre-1.4" - -src_unpack() { - unpack ${A} - cd "${S}" - java-ant_ignore-system-classes - mkdir -p target/lib - cd target/lib - use test && java-pkg_jar-from --build-only junit -} - -src_test() { - ANT_TASKS="ant-junit" eant test -DJunit.present=true -} - -src_install() { - java-pkg_newjar target/${P}.jar - - use doc && java-pkg_dojavadoc dist/docs/api - use source && java-pkg_dosrc src/java/net -} diff --git a/dev-java/groovy/Manifest b/dev-java/groovy/Manifest index cfd4ef898d5fa..df6264077a631 100644 --- a/dev-java/groovy/Manifest +++ b/dev-java/groovy/Manifest @@ -1,4 +1,2 @@ -DIST groovy-src-1.6.8.zip 11998683 SHA256 caa83f91e154211b1fcf688fb16d97d63b552fbb9e2bb240ea82fb13f90b1c80 SHA512 9e914227f6e09041ccb8b918136ed2a0c264f96f1df3f033ab57cfbf3a9e6c62cfd365032040c5599d56e2f7b4c19ac9912effa3c4768c832d57ebaca6f05920 WHIRLPOOL 7cd6e33a768c833142d0387f4c47189aa7edb4f4a63dbd3b551815c7ea33174ecc428418293259902c8f8fdb55f473a05067827c7fb2e49cd3b5d6a65dc7312f -DIST groovy-src-1.7.10.zip 12912772 SHA256 268c4504d50347e61fd83a4d04ebddbd4bf8139a4ba599de640d5537f3e4ad0c SHA512 d58cb0d135274e5e43730b517318d50d935a1b1883648318aa1c120d01181be7d3ac2796e3b68031b8d24e0fb6e9fa6fb8b1cbbfdee651a036e6000ec9be5ef1 WHIRLPOOL 992ac01f74f1fca05c4feb526d1f1a87425cd55fbc5cc39f18b999c53a54d6caf99a9353ff32dd080245ae4e7817810f9a8790a099d35566a1aa5938cfca99f3 DIST groovy-src-1.7.5.zip 12875363 SHA256 9864b36d681ecc4e4a8f86c8b958203f8e2c01c150a3f992f5f63df552979067 SHA512 fa0f617d1894e6fd7b30216b69dc3060154a31d28a3831e7135b18377c5bc368d193d914d2b77a7daf28498562fb96c04794c874101b23dafb4421e3a1d59404 WHIRLPOOL 478346b89661f6b57cc5740df038e8bf3ced62a84a4de1dea3da94a9519cae6eba43cf583c4a81b2f459f6409a7387c2079098b12495b9f1b669260af4efaccb DIST groovy-src-1.8.5.zip 13131836 SHA256 82f1e45e5886278a4c86ed15dfd90a84b7e43848c72537a235835c7557e8f8cd SHA512 23cddae38b6d0b1b83dae7cf7ebc3fe68f7e8ddb33cd6fa421c0c3c76ca8bf5a8b3fe72cabe915901305f513a2b3269baf205a7a0dd6b1c6f751496d51e0557a WHIRLPOOL 9db6d1da9304e8000de9954faf91d26d76c15e628a25a09c1291afc2ca8b33bbe24d44d891599548df6931db632ae6cd801e83cb05fb6abf33f3282f463a4482 diff --git a/dev-java/groovy/groovy-1.6.8.ebuild b/dev-java/groovy/groovy-1.6.8.ebuild deleted file mode 100644 index 8c8445f9770ba..0000000000000 --- a/dev-java/groovy/groovy-1.6.8.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# Groovy's build system is Ant based, but they use Maven for fetching the dependencies. -# We just have to remove the fetch dependencies target, and then we can use Ant for this ebuild. - -# We currently do not build the embeddable jar (which is created using JarJar). -# We could provide that via a USE flag. -# We also don't use automatic build rewriting as there seems to be already some level of support -# in the upstream build system - -# TODO: Install all 3 documentation packages. Currently only the Groovy GDK documentation is installed -# as our java-pkg_dojavadoc function does not support multiple Javadoc installations. -# There is also a bug (visible when loading groovyConsole for instance) where asm-1.5 is put on the cp, -# this conflicts with the 2.2 version needed by Groovy. - -EAPI="2" -WANT_ANT_TASKS="ant-antlr" -JAVA_PKG_IUSE="doc source" - -inherit versionator java-pkg-2 java-ant-2 - -MY_PV=${PV/_rc/-RC-} -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="Groovy is a high-level dynamic language for the JVM" -HOMEPAGE="http://groovy.codehaus.org/" - -SRC_URI="http://dist.groovy.codehaus.org/distributions/${PN}-src-${PV}.zip" -LICENSE="codehaus-groovy" -SLOT="0" -KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" -IUSE="test" -RESTRICT="test" - -CDEPEND=" - dev-java/asm:2.2 - dev-java/antlr:0 - >=dev-java/xstream-1.3 - >=dev-java/junit-3.8.2:0 - >=dev-java/jline-0.9.91 - >=dev-java/ant-core-1.7.0 - >=dev-java/commons-cli-1.2 - dev-java/servletapi:2.4 - >=dev-java/bsf-2.4 - java-virtuals/jmx" - -RDEPEND=">=virtual/jre-1.5 - ! + + karl.j.linden@gmail.com + Karl Lindén + proaudio Use experimental force-directed graph layout