diff options
author | 2012-08-13 03:20:22 +0000 | |
---|---|---|
committer | 2012-08-13 03:20:22 +0000 | |
commit | 4d57782883272240b488374db16d20411c950bbe (patch) | |
tree | 98225f17cea3f786c5999ea652192fb2948b4f3f /app-emulation/libvirt | |
parent | Fix CVE-2012-3445. bug #429322. Start of fixes that have been upstreamed for ... (diff) | |
download | historical-4d57782883272240b488374db16d20411c950bbe.tar.gz historical-4d57782883272240b488374db16d20411c950bbe.tar.bz2 historical-4d57782883272240b488374db16d20411c950bbe.zip |
Remove older versions and older files
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'app-emulation/libvirt')
-rw-r--r-- | app-emulation/libvirt/ChangeLog | 9 | ||||
-rw-r--r-- | app-emulation/libvirt/Manifest | 11 | ||||
-rw-r--r-- | app-emulation/libvirt/files/libvirt-0.9.13-libnl3.patch | 18 | ||||
-rw-r--r-- | app-emulation/libvirt/files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch | 51 | ||||
-rw-r--r-- | app-emulation/libvirt/libvirt-0.9.10-r4.ebuild | 292 | ||||
-rw-r--r-- | app-emulation/libvirt/libvirt-0.9.11.3.ebuild | 295 | ||||
-rw-r--r-- | app-emulation/libvirt/libvirt-0.9.8.ebuild | 273 |
7 files changed, 9 insertions, 940 deletions
diff --git a/app-emulation/libvirt/ChangeLog b/app-emulation/libvirt/ChangeLog index 26fb24d54a96..d1754d52c96b 100644 --- a/app-emulation/libvirt/ChangeLog +++ b/app-emulation/libvirt/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-emulation/libvirt # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.203 2012/08/13 03:17:30 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.204 2012/08/13 03:20:22 cardoe Exp $ + + 13 Aug 2012; Doug Goldstein <cardoe@gentoo.org> -libvirt-0.9.8.ebuild, + -libvirt-0.9.10-r4.ebuild, -libvirt-0.9.11.3.ebuild, + -files/libvirt-0.9.13-libnl3.patch, + -files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.pat + ch: + Remove older versions and older files *libvirt-0.9.13-r1 (13 Aug 2012) diff --git a/app-emulation/libvirt/Manifest b/app-emulation/libvirt/Manifest index 3c045791d2c0..d0c722fa1cc7 100644 --- a/app-emulation/libvirt/Manifest +++ b/app-emulation/libvirt/Manifest @@ -1,24 +1,15 @@ -AUX libvirt-0.9.13-libnl3.patch 524 SHA256 8a24a85bb693f8c3d1587d9f4ff7c9d2ab5afb14d2363b9e4ae3a1fbb03d48f6 SHA512 8aea7ff0191404efc7f7d29200dddd9ca1d3ddcf348d503d2879be96f69362efa27fe973b6b0b18ac92365c1064024838fe79f6ab0efcb83e76db1921e48e8b5 WHIRLPOOL 8d8654757250bf7994d77bca36fb1198bb8b8efb434898960af4c984ae4542a6224bd242b014b862f84c937d42d2a3c3eeeb9d111fef205bd94aae741dba6a9d -AUX libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch 1910 SHA256 0f5e1b8cbf843f4aae305ece7b9a73de12b52bce608488e48c839ad9ec8c850a SHA512 353f32d25442430d0aab9c611cd60ca3a75ffc2c5ca3898e5a21546fda572224e73f5d01a98b1b7f669319ecc01fa811e1cc11fe06bd18530c497836f0da968e WHIRLPOOL a1302e326fba7f0bc12f4ab3629a7f16be1961d5dc715c8c7976563a1d34bdc77939f8c0bc98c7e38c5527d78452bb59fa95fa8d3e986947ad3eaf00ba43377b AUX libvirtd.confd-r2 1749 SHA256 93040599a7cb878b54b8b963ef4963e9450bc25e982e390cef3e5b7e8039757c SHA512 c4c3150d35d3542b323991b32e2a09237a357d93753e641ae088b9697649fe58e878ed572c79c98e77e3d23f07e0e710ca812e8d4294e653bf6d5f183b666633 WHIRLPOOL a49eb7141052c18a5b1b35c48f9016d46946f8dcb9ed8a42e35a25c61ca6b919cfb4021374e685777fc01815bf45f6f90c6206d12ccdb4ca773a3e9e0e29d400 AUX libvirtd.confd-r3 1757 SHA256 60f341dcf33ca8d55b6394ba6cf8e22f5133393e47f827b88cef1243c255f15c SHA512 f65484ab52a5c4d0f7f1e6e7be9c379617d773b18e81ac875d628a0d9a2b5ae68d256dc1e29ca756d5216d52728bdc80da1afdd89977e6670da3a6dbd3aecc78 WHIRLPOOL 34e98b2cd72466a1152e41ea7b34533337e4aec3cf347cd75e766143b576462110bdb2ee691268ceaea0cfe6aba2a5b6bcdedc662ae6a66cc14e0099523c8e20 AUX libvirtd.init-r5 3572 SHA256 6c04449123ebb5d5736e53a81325f66a0db52cc19c7a6c80ba5f599a3687569f SHA512 bd11dfbd4ccf884b3b6f501bb3b2799f0d001b60eb9ec16167ac757066cf34ef5f22409fc97354596fb7d2a6701e023faf4a43f767df34a1070365731780b2b2 WHIRLPOOL 670e0918536745a6dd6de00bd9bef7b4d540be386d855fdd064ceb471a4f1e17d3dbac963f63f3c8f51985df7e60562775d01a14c86ebd3a8f96cc943cea7fd0 AUX libvirtd.init-r8 3630 SHA256 2156b91662bfc9a6c668130c5f562ff79101f0ba579a86b7048d1851e8ef7968 SHA512 1f4e500bed8fad3c5fa0999f8710e1d788910d44548c0a494ffb27047e1d0b328017bd895fa5474c27364a8dcf98181159f962568d896a5bb296da93f4240dc5 WHIRLPOOL 2580754a2edd461c38aeacbc5e60c34df3d84611fe5c04b08fbfe6d9cfd4956697c4edc2df3ce86016716ab74ce574ec24498a55ff3e851d637893e2d512e17b -DIST libvirt-0.9.10-bp-1.tar.bz2 4359 SHA256 038791b47489a831718f98ba9cdf77cff88a6e26003f81a0c2f11581f0bde4a3 SHA512 1e7e606f74f899794aafc5c22effb380d0e477d1f688f48697bcbc661aa4cdee852688321e070d05cef0f11f555fb9123a12d2a04d5b95a268cf9990b967c71a WHIRLPOOL d32345adc457ea6ff5fbc8480f00b8a7639b9e7d168cbfe1e1e117a7e14d6e1c8608aa5a26f3c0772f6ab41bb03d3762d36c214605abb32c89989e09d8e1c13c -DIST libvirt-0.9.10.tar.gz 19085438 SHA256 5b81d9f054ee4b395b0ab4f59845d082baaa6d6c2a038c966309156dde16e11d SHA512 1de81877e6832e36148f8e7419d9cac08a6c5c3766f3b9b81bbca8afa5d8d1d95cdb45acc59a22814a10248a44651a7015d6b196285a3c103cc139893eada5e8 WHIRLPOOL 3ba70980e55a214e9396945496173eb1380f46d28296c27db76c164d5eb3df4af86a8cb9837a839394d2fce0f9f390451cf7c234880365b8d2775731412a8e64 -DIST libvirt-0.9.11.3.tar.gz 19615688 SHA256 aa73b329d2f6eb200991b9dc378d4636c15cd2f95ca224995d01b45257584fa2 SHA512 48c8660a075c89aab83372403201ff8afc0724ad5d91897323cfc9c8e5d317ba59e6cb20689c98967f35f788dee6dba3451889f1cfe970e551941bb1a188581c WHIRLPOOL cc5e1d6f81aae140faa20a6a705e7c5ecda1d0cb974092fbd1b77e9a58fca24d353f6a739aa12fde1529eb7180603171fe7c4f315c3ad7ac4e864265232cb693 DIST libvirt-0.9.11.4.tar.gz 19684316 SHA256 f3e16a62dff9720e1541da5561f448853e9821baa4622a0064dc28589eebed45 SHA512 c26d0cc376b18a887fdc76b93b767c3171ca9e5e1ad3d682f73a44c1c51c59cc17772d1fac01b7d6c950c6362202b54dd457ccf04e2c3467e4b1caa44e793f5e WHIRLPOOL 1315f4d04100ae0bc4a52b79b43c90809fee23a574c3b8f7e35b40d0cb3ae160026057e174ab97c28c5fedb06bd4f509f5a1a6269ac037b9fcb48cb1bb91927d DIST libvirt-0.9.12.tar.gz 20054618 SHA256 298ffc7f2a6d6e78aae46f11a0980f4bc17fa2928f5de6cd9e8abaf5990336e7 SHA512 6a3eac6c5373c81530ef01d4991a2795776934ef434667c6ddeb991587c9f0bb4a712f14e2f1ea2bd373dc2b4994ec0c46b8807fd209b607960a22dcce2d32ae WHIRLPOOL 2899f0668f3b6f456cbfc74c182848c0c32c7614db2d04e9099f6510556b0816372c0dde531bc7a300065bbaebf2d4dfb06041b2078b06fb4bbf0a17b8662444 DIST libvirt-0.9.13-bp-1.tar.xz 6160 SHA256 dfb91f17d999f1aaf17e9cb59b64227631851ccfabaa24f0ba217dd5f4ae8f51 SHA512 9d7b7d9106fa217d1d6a218196b4692c6f560ffa2824de2b0e04ca35e8eb9ee6abeb02fece3720aa649128596c0990613d7914ab7dadfc7c8e830208882a2e1b WHIRLPOOL 54d96823526d569f081805569fa94947a0843c45cbefa83492e0da19741474fe6d07e212c5dadf93fa2d9123e05c21ab30cec9d8fff3f1ccff6dba8b41f23c8d DIST libvirt-0.9.13.tar.gz 20276757 SHA256 d124e9915c88c195da9c008a6d855e53e555dca5816052e163dda61388359d5b SHA512 d275cf6dd6c5700eeee701ff4d28a1483137f8c7525496069438b9e81727761066f1d4b1504bf170f6a3f457ecc203f6b5e7b367fe931803cb7592cccceb7f71 WHIRLPOOL 26a5c660c07516c3736f7bd818b6b4b06c98d78181ba991139818f321ace43a33dcc7d095ce6f02b94f7b3aea7c556bb5388cea34ef801576e4d86f9c08712f7 -DIST libvirt-0.9.8.tar.gz 18403525 SHA256 31b20864e44bb18a2d01b7ac6569f114cbe1007689219bf24a07ddb7528abe0e SHA512 407ece26c10d0f42f64a14776ab30f0316833be952b6c69cdb0fe6fdb6149641b56d83f7e7ab76e41d5f6a18b076bc73dbaf3cfb1282262fc3bd0da4a3093767 WHIRLPOOL 035be45b4a3284acb9be6184c2b35f100245d374583f403b67d9856cc1f2fff86d65c2335a2bfa24e61e95f0b7b0072bfe0630d1af599cbdcfffa15552415a4a -EBUILD libvirt-0.9.10-r4.ebuild 8658 SHA256 bd7bb56f8da698a427c18eac46f58d1588766870164aa384516b182b6a38fded SHA512 2039556396e6ebef501dd25b45f6d59077edc220db0e5dec590a76df3a5ed4080d74039c2e40a3c190266f58bdda7f497c699fc627a8da535e9da781d52ef391 WHIRLPOOL 3ed96f849bf56d3ad8c2964e6e100858aa86f1dcd9321e2329bbc5c99704b0aa4b3ffecac84da5d4f9445dce3dcc65bee80701ab0043fc321522a971dc305f37 -EBUILD libvirt-0.9.11.3.ebuild 8690 SHA256 27f8be21525191a791e783d80a7f59ee212f992f95e2dab4088594de0980ed16 SHA512 67a66a3dfdbd03e6ec85167f20abac06cdd189216678c51adffff31ed901c4a3554b383ee470092839ca712ed20bb15ad276afe986695d250f81bfda55c2f76b WHIRLPOOL 0563dc855ac974b9304f0ad129608ee6920822ac0c61c6e6ea7a2180689fb26f5ae251d8874de3f5b9820f01a1e141b6ed524c943b8d4b9f55d534da8dcecddd EBUILD libvirt-0.9.11.4.ebuild 8717 SHA256 1aa05ff800faac006cc7ac8a1da3978364d302c465452bf2c302b22ffebc9108 SHA512 fdcac516d0ed64aea658fb24c124179bb9c1f597a03ced889c803211baf7c22914eec4e5e9f5940c027d6e36ac8eeecb47eb730daef1372d51df3330e1f965e0 WHIRLPOOL 26a9b6bc50f0547d4bad7bc62008ab7e9284c2c50402e63f24c19bbc6aac8b5a1dce82d03cba595106c48c3de0768f3e3c6ed071bb4b2f2a9dcecdf3786cde53 EBUILD libvirt-0.9.12-r1.ebuild 10353 SHA256 2083781e89483e8dca012ddc71f526380f704cac3acf19dafa2f17d22d35c544 SHA512 45c6de7858d5ec022515f35efd6532fa79db6da1085557457a6c649cec71ed499bf1b692b1af6fd65cb04d12b80ba5e3255331544b49152e82bec8761d80b736 WHIRLPOOL 8f6ceed8eb27dcb905d298caf44a0f78398c36e21576ef6db69a6c499f90330928d4b21e1d065b2a11b9ef782dc694c4995d403f5624fa4e85984481721a9372 EBUILD libvirt-0.9.12.ebuild 10223 SHA256 3559384bb4892a0fdda39a3704a4c8c5ed8e3ad03427924132c89c3350759a9a SHA512 8c6d366cf27a0e65340d1249e6c5b6f7faadbd5402370305a1b8a3097c9e97f1d6df0766fff1a2d96ff5c38db4eaf3ca5de77d4f7325c25dabe94c8417aca160 WHIRLPOOL dbf14226a71296813f91e63d7bb34e223a488e5a3e7d55abc100d2479d2ed444a25e46f646ab56e5c16aabc1f25d5503fc54d299133455cba3b88d4f09e416d6 EBUILD libvirt-0.9.13-r1.ebuild 10753 SHA256 8815e326d15a96931cd2856e9fd213bc734e3f595a3df230d46d7b8d9bd5f728 SHA512 c84b6321cae653bb37ca67c02a2d93f3a84168e710de66d6998a777adbaad764995a1dcecdf0582254cae2a48862baa7f72848215ff2f00b12eed34862a6697d WHIRLPOOL 51657f47844319b1ccaf3d2dbbad7243b4b565c653d77c87976c636d2879ea601af83aa603fd5456c636db41556b37ae7ec60d2d756451de4733d63d6f2a7d39 -EBUILD libvirt-0.9.8.ebuild 8137 SHA256 2892e8b77eab033b317847974b67212bede163a77449b2be5097abd9ae9dfd44 SHA512 de4716161495c5b142598daf6994b4ffc8faf169976f222aa809c3b953f97f4a8e8bb66fcf510a9c11c45b4037e4df48efc48e8dd60089aab2fec276abd66251 WHIRLPOOL 557497a58cb87c3b2a5031a428197c2cdfafc7161369a5716c58c88cac24320b781540334fbe938288626486bfac68c11607e6143c9cfe530bed7487337364e0 EBUILD libvirt-9999.ebuild 10349 SHA256 62ae9e1daff84437904c87954dd7c5d2dc34a8119e9dffd770fa1515bc757f99 SHA512 06c1e295c455c800e89c6a58a097925cb0912a8e83b0dbdf81351289d3585e23921eb5466ee10511fa13478e7cb1eeb0286521b6d1b7288c48509fa1e0b35228 WHIRLPOOL d94e0f4b7ddd7b1bbbd39f17852e8a9af45cce3b53639e4732bdb3fc193655025cd842d3b613327f26a6da76af5046648744ebaf7ac8f610a4d424c342639e43 -MISC ChangeLog 40091 SHA256 03204dbe03f2cc4716a979cd7d0b3d4c7a54f0ed6f460987b3e86211758bea03 SHA512 e80988dc25b2aaaf5787d2bea415eda2381c3adda47d03c49c97f901a9c877cf1b9e6ffd4809fba04abc9120b8f078482f7d3ddb4416984ba52b285b09186fdc WHIRLPOOL d9533231173aee6092ffc3fbd063205ad09b3dc05d9e2e5e6eeb755e363a92935e6a3c7750cab0ce2b90aa1d2fed1774ff9dcef1b91d0a9aee4d69a70fd5626a +MISC ChangeLog 40384 SHA256 250355b96203aa6f16eaa1b8a51b5134adaf396178459e0e6deb757d452ff167 SHA512 703b0e4f16f96b86523aa9492da1a9b985d1e6180bbb94c4debb2d4c9a7f56cf3f26edfb15f6215a49b079177a68c3a333efa1e37f3423120027544362d1cacf WHIRLPOOL 7596bcab01a7e124066faba080e52998e8a18f7f5665910aad4d8cc32deac063c650a52340af67fe4932ae5b0c001f7ad7a780ef3f3a08a9cd00e2be370eb5d8 MISC metadata.xml 3420 SHA256 0916b94209d91c7a809069e61f788a9f6115ce9081758a90330f29a3249c9be5 SHA512 8acd907b424ef3500112d5834fba026146636948675381a3a07c1837968f2ebb146b0afa2a9d56225d9af008ade51d46022ba1c03d5e02de0e6e7f3678be4091 WHIRLPOOL c0e4dea1775586184c261a406556eed83f3f26782bfb770e055df8531b0643c62e0f8a6ac3f1243c8cdd1e931f17020d72704178a33e8b5eb4f23f24cf4f7354 diff --git a/app-emulation/libvirt/files/libvirt-0.9.13-libnl3.patch b/app-emulation/libvirt/files/libvirt-0.9.13-libnl3.patch deleted file mode 100644 index dede10228d7f..000000000000 --- a/app-emulation/libvirt/files/libvirt-0.9.13-libnl3.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- libvirt-0.9.13/daemon/Makefile.am.orig 2012-07-14 02:08:15.159996143 +0200 -+++ libvirt-0.9.13/daemon/Makefile.am 2012-07-14 02:10:11.869995632 +0200 -@@ -99,6 +99,7 @@ - $(XDR_CFLAGS) $(POLKIT_CFLAGS) $(DBUS_CFLAGS) \ - $(WARN_CFLAGS) \ - $(COVERAGE_CFLAGS) \ -+ $(LIBNL_CFLAGS) \ - -DQEMUD_PID_FILE="\"$(QEMUD_PID_FILE)\"" \ - -DREMOTE_PID_FILE="\"$(REMOTE_PID_FILE)\"" - -@@ -111,6 +112,7 @@ - $(GNUTLS_LIBS) \ - $(SASL_LIBS) \ - $(DBUS_LIBS) \ -+ $(LIBNL_LIBS) \ - $(POLKIT_LIBS) - - if WITH_DTRACE_PROBES diff --git a/app-emulation/libvirt/files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch b/app-emulation/libvirt/files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch deleted file mode 100644 index f848fd795f0f..000000000000 --- a/app-emulation/libvirt/files/libvirt-0.9.13-qemu-add-rbd-to-whitelist-of-migration-safe-formats.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 78290b1641e95304c862062ee0aca95395c5926c Mon Sep 17 00:00:00 2001 -From: Josh Durgin <josh.durgin@inktank.com> -Date: Mon, 2 Jul 2012 11:55:26 -0700 -Subject: [PATCH 01/24] qemu: add rbd to whitelist of migration-safe formats - -QEMU (and librbd) flush the cache on the source before the -destination starts, and the destination does not read any -changeable data before that, so live migration with rbd caching -is safe. - -This makes 'virsh migrate' work with rbd and caching without the ---unsafe flag. - -Reported-by: Vladimir Bashkirtsev <vladimir@bashkirtsev.com> -Signed-off-by: Josh Durgin <josh.durgin@inktank.com> ---- - .mailmap | 3 ++- - AUTHORS | 2 +- - src/qemu/qemu_migration.c | 3 +++ - 3 files changed, 6 insertions(+), 2 deletions(-) - -diff --git a/AUTHORS b/AUTHORS -index 375db24..0e179a9 100644 ---- a/AUTHORS -+++ b/AUTHORS -@@ -144,7 +144,7 @@ Patches have also been contributed by: - Hu Tao <hutao@cn.fujitsu.com> - Laurent Léonard <laurent@open-minds.org> - MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> -- Josh Durgin <josh.durgin@dreamhost.com> -+ Josh Durgin <josh.durgin@inktank.com> - Roopa Prabhu <roprabhu@cisco.com> - Paweł Krześniak <pawel.krzesniak@gmail.com> - Kay Schubert <kayegypt@web.de> -diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c -index 48369d6..f51c99a 100644 ---- a/src/qemu/qemu_migration.c -+++ b/src/qemu/qemu_migration.c -@@ -847,6 +847,9 @@ qemuMigrationIsSafe(virDomainDefPtr def) - continue; - else if (cfs < 0) - return false; -+ } else if (disk->type == VIR_DOMAIN_DISK_TYPE_NETWORK && -+ disk->protocol == VIR_DOMAIN_DISK_PROTOCOL_RBD) { -+ continue; - } - - qemuReportError(VIR_ERR_MIGRATE_UNSAFE, "%s", --- -1.7.8.6 - diff --git a/app-emulation/libvirt/libvirt-0.9.10-r4.ebuild b/app-emulation/libvirt/libvirt-0.9.10-r4.ebuild deleted file mode 100644 index f0a982b7da36..000000000000 --- a/app-emulation/libvirt/libvirt-0.9.10-r4.ebuild +++ /dev/null @@ -1,292 +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/libvirt/libvirt-0.9.10-r4.ebuild,v 1.9 2012/05/31 22:56:51 zmedico Exp $ - -EAPI=4 - -BACKPORTS=1 -#AUTOTOOLIZE=yes - -MY_P="${P/_rc/-rc}" - -if [[ ${PV} = *9999* ]]; then - EGIT_REPO_URI="git://libvirt.org/libvirt.git" - AUTOTOOLIZE=yes -fi - -PYTHON_DEPEND="python? 2:2.5" -#RESTRICT_PYTHON_ABIS="3.*" -#SUPPORT_PYTHON_ABIS="1" - -inherit eutils python - -if [[ ${PV} = *9999* ]]; then - inherit autotools git-2 - SRC_URI="" - KEYWORDS="" -else - SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz - ftp://libvirt.org/libvirt/${MY_P}.tar.gz - ${BACKPORTS:+ - http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-bp-${BACKPORTS}.tar.bz2}" - KEYWORDS="amd64 x86" -fi -S="${WORKDIR}/${P%_rc*}" - -DESCRIPTION="C toolkit to manipulate virtual machines" -HOMEPAGE="http://www.libvirt.org/" -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="avahi caps debug iscsi +libvirtd lvm +lxc macvtap nfs \ - nls numa openvz parted pcap phyp policykit python qemu sasl selinux +udev \ - uml virtualbox virt-network xen elibc_glibc" -# IUSE=one : bug #293416 & bug #299011 -REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) - lxc? ( libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) - virtualbox? ( libvirtd ) xen? ( libvirtd )" - -# gettext.sh command is used by the libvirt command wrappers, and it's -# non-optional, so put it into RDEPEND. -RDEPEND="sys-libs/readline - sys-libs/ncurses - >=net-misc/curl-7.18.0 - >=dev-libs/libxml2-2.7.6 - dev-libs/libgcrypt - >=dev-libs/libnl-1.1:1.1 - >=net-libs/gnutls-1.0.25 - sys-apps/dmidecode - >=sys-apps/util-linux-2.17 - sys-devel/gettext - >=net-analyzer/netcat6-1.0-r2 - app-misc/scrub - avahi? ( >=net-dns/avahi-0.6[dbus] ) - caps? ( sys-libs/libcap-ng ) - iscsi? ( sys-block/open-iscsi ) - libvirtd? ( net-misc/bridge-utils ) - lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) - nfs? ( net-fs/nfs-utils ) - numa? ( >sys-process/numactl-2.0.2 ) - openvz? ( sys-kernel/openvz-sources ) - parted? ( - >=sys-block/parted-1.8[device-mapper] - sys-fs/lvm2 - ) - pcap? ( >=net-libs/libpcap-1.0.0 ) - phyp? ( net-libs/libssh2 ) - policykit? ( >=sys-auth/polkit-0.9 ) - qemu? ( || ( app-emulation/qemu-kvm >=app-emulation/qemu-0.10.0 ) - dev-libs/yajl ) - sasl? ( dev-libs/cyrus-sasl ) - selinux? ( >=sys-libs/libselinux-2.0.85 ) - virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) - xen? ( app-emulation/xen-tools app-emulation/xen ) - udev? ( >=sys-fs/udev-145 >=x11-libs/libpciaccess-0.10.9 ) - virt-network? ( net-dns/dnsmasq - >=net-firewall/iptables-1.4.10 - net-firewall/ebtables - sys-apps/iproute2[-minimal] ) - elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )" -# one? ( dev-libs/xmlrpc-c ) -DEPEND="${RDEPEND} - virtual/pkgconfig - app-text/xhtml1" - -pkg_setup() { - python_set_active_version 2 - python_pkg_setup -} - -src_prepare() { - [[ -n ${BACKPORTS} ]] && \ - EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ - epatch - - if [[ ${PV} = *9999* ]]; then - # git checkouts require bootstrapping to create the configure script. - # Additionally the submodules must be cloned to the right locations - # bug #377279 - ./bootstrap || die "bootstrap failed" - ( - git submodule status | sed 's/^[ +-]//;s/ .*//' - git hash-object bootstrap.conf - ) >.git-module-status - fi - - [[ -n ${AUTOTOOLIZE} ]] && eautoreconf -} - -src_configure() { - local myconf="" - - myconf="${myconf} $(use_enable debug)" - - ## enable/disable daemon, otherwise client only utils - myconf="${myconf} $(use_with libvirtd)" - - ## enable/disable the daemon using avahi to find VMs - myconf="${myconf} $(use_with avahi)" - - ## hypervisors on the local host - myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)" - # leave it automagic as it depends on the version of xen used. - use xen || myconf+=" --without-libxl" - - myconf="${myconf} $(use_with openvz)" - myconf="${myconf} $(use_with lxc)" - if use virtualbox && has_version app-emulation/virtualbox-ose; then - myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/" - else - myconf="${myconf} $(use_with virtualbox vbox)" - fi - myconf="${myconf} $(use_with uml)" - myconf="${myconf} $(use_with qemu)" - myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP - # doesn't belong with hypervisors but links to libvirtd for some reason - #myconf="${myconf} $(use_with one)" - - ## hypervisor protocols - myconf="${myconf} $(use_with phyp)" - myconf="${myconf} --with-esx" - - ## additional host drivers - myconf="${myconf} $(use_with virt-network network)" - myconf="${myconf} --with-storage-fs" - myconf="${myconf} $(use_with lvm storage-lvm)" - myconf="${myconf} $(use_with iscsi storage-iscsi)" - myconf="${myconf} $(use_with parted storage-disk)" - myconf="${myconf} $(use_with lvm storage-mpath)" - myconf="${myconf} $(use_with numa numactl)" - myconf="${myconf} $(use_with selinux)" - - # udev for device support details - myconf="${myconf} $(use_with udev)" - - # linux capability support so we don't need privileged accounts - myconf="${myconf} $(use_with caps capng)" - - ## auth stuff - myconf="${myconf} $(use_with policykit polkit)" - myconf="${myconf} $(use_with sasl)" - - # network bits - myconf="${myconf} $(use_with macvtap)" - myconf="${myconf} $(use_with pcap libpcap)" - - ## other - myconf="${myconf} $(use_enable nls)" - myconf="${myconf} $(use_with python)" - - ## stuff we don't yet support - myconf="${myconf} --without-netcf --without-audit" - - # we use udev over hal - myconf="${myconf} --without-hal" - - # locking support - myconf="${myconf} --without-sanlock" - - # this is a nasty trick to work around the problem in bug - # #275073. The reason why we don't solve this properly is that - # it'll require us to rebuild autotools (and we don't really want - # to do that right now). The proper solution has been sent - # upstream and should hopefully land in 0.7.7, in the mean time, - # mime the same functionality with this. - case ${CHOST} in - *cygwin* | *mingw* ) - ;; - *) - ac_cv_prog_WINDRES=no - ;; - esac - - econf \ - ${myconf} \ - --disable-static \ - --docdir=/usr/share/doc/${PF} \ - --with-remote \ - --localstatedir=/var - - if [[ ${PV} = *9999* ]]; then - # Restore gnulib's config.sub and config.guess - # bug #377279 - (cd .gnulib && git reset --hard > /dev/null) - fi -} - -src_test() { - # Explicitly allow parallel build of tests - HOME="${T}" emake check || die "tests failed" -} - -src_install() { - emake install \ - DESTDIR="${D}" \ - HTML_DIR=/usr/share/doc/${PF}/html \ - DOCS_DIR=/usr/share/doc/${PF}/python \ - EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \ - || die "emake install failed" - - find "${D}" -name '*.la' -delete || die - - use libvirtd || return 0 - # From here, only libvirtd-related instructions, be warned! - - newinitd "${FILESDIR}/libvirtd.init-r8" libvirtd || die - newconfd "${FILESDIR}/libvirtd.confd-r3" libvirtd || die - - keepdir /var/lib/libvirt/images -} - -pkg_preinst() { - # we only ever want to generate this once - if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then - rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml - fi - - # We really don't want to use or support old PolicyKit cause it - # screws with the new polkit integration - if has_version sys-auth/policykit; then - rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy - fi - - # Only sysctl files ending in .conf work - mv "${D}"/etc/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf -} - -pkg_postinst() { - use python && python_mod_optimize libvirt.py - - elog - if use policykit && has_version sys-auth/policykit; then - elog "You must have run the following at least once:" - elog - elog "$ polkit-auth --grant org.libvirt.unix.manage --user \"USERNAME\"" - elog - elog "to grant USERNAME access to libvirt when using USE=policykit" - else - elog "To allow normal users to connect to libvirtd you must change the" - elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf" - fi - - use libvirtd || return 0 - # From here, only libvirtd-related instructions, be warned! - - elog - elog "For the basic networking support (bridged and routed networks)" - elog "you don't need any extra software. For more complex network modes" - elog "including but not limited to NATed network, you can enable the" - elog "'virt-network' USE flag." - elog - if has_version net-dns/dnsmasq; then - ewarn "If you have a DNS server setup on your machine, you will have" - ewarn "to configure /etc/dnsmasq.conf to enable the following settings: " - ewarn " bind-interfaces" - ewarn " interface or except-interface" - ewarn - ewarn "Otherwise you might have issues with your existing DNS server." - fi -} - -pkg_postrm() { - use python && python_mod_cleanup libvirt.py -} diff --git a/app-emulation/libvirt/libvirt-0.9.11.3.ebuild b/app-emulation/libvirt/libvirt-0.9.11.3.ebuild deleted file mode 100644 index c683cfb5552c..000000000000 --- a/app-emulation/libvirt/libvirt-0.9.11.3.ebuild +++ /dev/null @@ -1,295 +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/libvirt/libvirt-0.9.11.3.ebuild,v 1.9 2012/06/04 18:52:01 mr_bones_ Exp $ - -EAPI=4 - -#BACKPORTS=1 -#AUTOTOOLIZE=yes - -MY_P="${P/_rc/-rc}" - -if [[ ${PV} = *9999* ]]; then - EGIT_REPO_URI="git://libvirt.org/libvirt.git" - AUTOTOOLIZE=yes -fi - -PYTHON_DEPEND="python? 2:2.5" -#RESTRICT_PYTHON_ABIS="3.*" -#SUPPORT_PYTHON_ABIS="1" - -inherit eutils python - -if [[ ${PV} = *9999* ]]; then - inherit autotools git-2 - SRC_URI="" - KEYWORDS="" -else - SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz - ftp://libvirt.org/libvirt/${MY_P}.tar.gz - ${BACKPORTS:+ - http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-bp-${BACKPORTS}.tar.bz2}" - KEYWORDS="amd64 x86" -fi -S="${WORKDIR}/${P%_rc*}" - -DESCRIPTION="C toolkit to manipulate virtual machines" -HOMEPAGE="http://www.libvirt.org/" -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="avahi caps debug iscsi +libvirtd lvm +lxc macvtap nfs \ - nls numa openvz parted pcap phyp policykit python qemu sasl selinux +udev \ - uml virtualbox virt-network xen elibc_glibc" -# IUSE=one : bug #293416 & bug #299011 -REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) - lxc? ( libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) - virtualbox? ( libvirtd ) xen? ( libvirtd )" - -# gettext.sh command is used by the libvirt command wrappers, and it's -# non-optional, so put it into RDEPEND. -RDEPEND="sys-libs/readline - sys-libs/ncurses - >=net-misc/curl-7.18.0 - dev-libs/libgcrypt - >=dev-libs/libxml2-2.7.6 - >=dev-libs/libnl-1.1:1.1 - >=net-libs/gnutls-1.0.25 - sys-apps/dmidecode - >=sys-apps/util-linux-2.17 - sys-devel/gettext - >=net-analyzer/netcat6-1.0-r2 - app-misc/scrub - avahi? ( >=net-dns/avahi-0.6[dbus] ) - caps? ( sys-libs/libcap-ng ) - iscsi? ( sys-block/open-iscsi ) - lxc? ( sys-power/pm-utils ) - lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) - nfs? ( net-fs/nfs-utils ) - numa? ( >sys-process/numactl-2.0.2 ) - openvz? ( sys-kernel/openvz-sources ) - parted? ( - >=sys-block/parted-1.8[device-mapper] - sys-fs/lvm2 - ) - pcap? ( >=net-libs/libpcap-1.0.0 ) - phyp? ( net-libs/libssh2 ) - policykit? ( >=sys-auth/polkit-0.9 ) - qemu? ( - || ( app-emulation/qemu-kvm >=app-emulation/qemu-0.10.0 ) - dev-libs/yajl - sys-power/pm-utils - ) - sasl? ( dev-libs/cyrus-sasl ) - selinux? ( >=sys-libs/libselinux-2.0.85 ) - virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) - xen? ( app-emulation/xen-tools app-emulation/xen ) - udev? ( >=sys-fs/udev-145 >=x11-libs/libpciaccess-0.10.9 ) - virt-network? ( net-dns/dnsmasq - >=net-firewall/iptables-1.4.10 - net-firewall/ebtables - sys-apps/iproute2[-minimal] ) - elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )" -# one? ( dev-libs/xmlrpc-c ) -DEPEND="${RDEPEND} - virtual/pkgconfig - app-text/xhtml1" - -pkg_setup() { - use python && python_set_active_version 2 - python_pkg_setup -} - -src_prepare() { - [[ -n ${BACKPORTS} ]] && \ - EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ - epatch - - if [[ ${PV} = *9999* ]]; then - # git checkouts require bootstrapping to create the configure script. - # Additionally the submodules must be cloned to the right locations - # bug #377279 - ./bootstrap || die "bootstrap failed" - ( - git submodule status | sed 's/^[ +-]//;s/ .*//' - git hash-object bootstrap.conf - ) >.git-module-status - fi - - [[ -n ${AUTOTOOLIZE} ]] && eautoreconf -} - -src_configure() { - local myconf="" - - myconf="${myconf} $(use_enable debug)" - - ## enable/disable daemon, otherwise client only utils - myconf="${myconf} $(use_with libvirtd)" - - ## enable/disable the daemon using avahi to find VMs - myconf="${myconf} $(use_with avahi)" - - ## hypervisors on the local host - myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)" - # leave it automagic as it depends on the version of xen used. - use xen || myconf+=" --without-libxl" - - myconf="${myconf} $(use_with openvz)" - myconf="${myconf} $(use_with lxc)" - if use virtualbox && has_version app-emulation/virtualbox-ose; then - myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/" - else - myconf="${myconf} $(use_with virtualbox vbox)" - fi - myconf="${myconf} $(use_with uml)" - myconf="${myconf} $(use_with qemu)" - myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP - # doesn't belong with hypervisors but links to libvirtd for some reason - #myconf="${myconf} $(use_with one)" - - ## hypervisor protocols - myconf="${myconf} $(use_with phyp)" - myconf="${myconf} --with-esx" - - ## additional host drivers - myconf="${myconf} $(use_with virt-network network)" - myconf="${myconf} --with-storage-fs" - myconf="${myconf} $(use_with lvm storage-lvm)" - myconf="${myconf} $(use_with iscsi storage-iscsi)" - myconf="${myconf} $(use_with parted storage-disk)" - myconf="${myconf} $(use_with lvm storage-mpath)" - myconf="${myconf} $(use_with numa numactl)" - myconf="${myconf} $(use_with selinux)" - - # udev for device support details - myconf="${myconf} $(use_with udev)" - - # linux capability support so we don't need privileged accounts - myconf="${myconf} $(use_with caps capng)" - - ## auth stuff - myconf="${myconf} $(use_with policykit polkit)" - myconf="${myconf} $(use_with sasl)" - - # network bits - myconf="${myconf} $(use_with macvtap)" - myconf="${myconf} $(use_with pcap libpcap)" - - ## other - myconf="${myconf} $(use_enable nls)" - myconf="${myconf} $(use_with python)" - - ## stuff we don't yet support - myconf="${myconf} --without-netcf --without-audit" - - # we use udev over hal - myconf="${myconf} --without-hal" - - # locking support - myconf="${myconf} --without-sanlock" - - # this is a nasty trick to work around the problem in bug - # #275073. The reason why we don't solve this properly is that - # it'll require us to rebuild autotools (and we don't really want - # to do that right now). The proper solution has been sent - # upstream and should hopefully land in 0.7.7, in the mean time, - # mime the same functionality with this. - case ${CHOST} in - *cygwin* | *mingw* ) - ;; - *) - ac_cv_prog_WINDRES=no - ;; - esac - - econf \ - ${myconf} \ - --disable-static \ - --docdir=/usr/share/doc/${PF} \ - --with-remote \ - --localstatedir=/var - - if [[ ${PV} = *9999* ]]; then - # Restore gnulib's config.sub and config.guess - # bug #377279 - (cd .gnulib && git reset --hard > /dev/null) - fi -} - -src_test() { - # Explicitly allow parallel build of tests - HOME="${T}" emake check || die "tests failed" -} - -src_install() { - emake install \ - DESTDIR="${D}" \ - HTML_DIR=/usr/share/doc/${PF}/html \ - DOCS_DIR=/usr/share/doc/${PF}/python \ - EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \ - || die "emake install failed" - - find "${D}" -name '*.la' -delete || die - - use libvirtd || return 0 - # From here, only libvirtd-related instructions, be warned! - - newinitd "${FILESDIR}/libvirtd.init-r8" libvirtd || die - newconfd "${FILESDIR}/libvirtd.confd-r3" libvirtd || die - - keepdir /var/lib/libvirt/images -} - -pkg_preinst() { - # we only ever want to generate this once - if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then - rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml - fi - - # We really don't want to use or support old PolicyKit cause it - # screws with the new polkit integration - if has_version sys-auth/policykit; then - rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy - fi - - # Only sysctl files ending in .conf work - mv "${D}"/etc/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf -} - -pkg_postinst() { - use python && python_mod_optimize libvirt.py - - elog - if use policykit && has_version sys-auth/policykit; then - elog "You must have run the following at least once:" - elog - elog "$ polkit-auth --grant org.libvirt.unix.manage --user \"USERNAME\"" - elog - elog "to grant USERNAME access to libvirt when using USE=policykit" - else - elog "To allow normal users to connect to libvirtd you must change the" - elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf" - fi - - use libvirtd || return 0 - # From here, only libvirtd-related instructions, be warned! - - elog - elog "For the basic networking support (bridged and routed networks)" - elog "you don't need any extra software. For more complex network modes" - elog "including but not limited to NATed network, you can enable the" - elog "'virt-network' USE flag." - elog - if has_version net-dns/dnsmasq; then - ewarn "If you have a DNS server setup on your machine, you will have" - ewarn "to configure /etc/dnsmasq.conf to enable the following settings: " - ewarn " bind-interfaces" - ewarn " interface or except-interface" - ewarn - ewarn "Otherwise you might have issues with your existing DNS server." - fi -} - -pkg_postrm() { - use python && python_mod_cleanup libvirt.py -} diff --git a/app-emulation/libvirt/libvirt-0.9.8.ebuild b/app-emulation/libvirt/libvirt-0.9.8.ebuild deleted file mode 100644 index fc9d873c32e5..000000000000 --- a/app-emulation/libvirt/libvirt-0.9.8.ebuild +++ /dev/null @@ -1,273 +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/libvirt/libvirt-0.9.8.ebuild,v 1.13 2012/05/31 22:56:51 zmedico Exp $ - -#BACKPORTS=2 -#AUTOTOOLIZE=yes - -EAPI="4" - -MY_P="${P/_rc/-rc}" - -if [[ ${PV} = *9999* ]]; then - EGIT_REPO_URI="git://libvirt.org/libvirt.git" - AUTOTOOLIZE=yes -fi - -PYTHON_DEPEND="python? 2:2.5" -#RESTRICT_PYTHON_ABIS="3.*" -#SUPPORT_PYTHON_ABIS="1" - -inherit eutils python - -if [[ ${PV} = *9999* ]]; then - inherit autotools git-2 - SRC_URI="" - KEYWORDS="" -else - SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz - ftp://libvirt.org/libvirt/${MY_P}.tar.gz - ${BACKPORTS:+ - http://dev.gentoo.org/~flameeyes/${PN}/${MY_P}-backports-${BACKPORTS}.tar.bz2 - http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-backports-${BACKPORTS}.tar.bz2}" - KEYWORDS="amd64 x86" -fi -S="${WORKDIR}/${P%_rc*}" - -DESCRIPTION="C toolkit to manipulate virtual machines" -HOMEPAGE="http://www.libvirt.org/" -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="avahi caps debug iscsi +json +libvirtd lvm +lxc macvtap nfs \ - nls numa openvz parted pcap phyp policykit python qemu sasl selinux +udev \ - uml virtualbox virt-network xen elibc_glibc" -# IUSE=one : bug #293416 & bug #299011 -REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) - lxc? ( libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) - virtualbox? ( libvirtd ) xen? ( libvirtd )" - -# gettext.sh command is used by the libvirt command wrappers, and it's -# non-optional, so put it into RDEPEND. -RDEPEND="sys-libs/readline - sys-libs/ncurses - >=net-misc/curl-7.18.0 - dev-libs/libgcrypt - >=dev-libs/libxml2-2.7.6 - >=dev-libs/libnl-1.1:1.1 - >=net-libs/gnutls-1.0.25 - sys-apps/dmidecode - >=sys-apps/util-linux-2.17 - sys-devel/gettext - >=net-analyzer/netcat6-1.0-r2 - app-misc/scrub - avahi? ( >=net-dns/avahi-0.6[dbus] ) - caps? ( sys-libs/libcap-ng ) - iscsi? ( sys-block/open-iscsi ) - json? ( dev-libs/yajl ) - libvirtd? ( net-misc/bridge-utils ) - lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) - nfs? ( net-fs/nfs-utils ) - numa? ( >sys-process/numactl-2.0.2 ) - openvz? ( sys-kernel/openvz-sources ) - parted? ( - >=sys-block/parted-1.8[device-mapper] - sys-fs/lvm2 - ) - pcap? ( >=net-libs/libpcap-1.0.0 ) - phyp? ( net-libs/libssh2 ) - policykit? ( >=sys-auth/polkit-0.9 ) - qemu? ( || ( app-emulation/qemu-kvm >=app-emulation/qemu-0.10.0 ) ) - sasl? ( dev-libs/cyrus-sasl ) - selinux? ( >=sys-libs/libselinux-2.0.85 ) - virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) - xen? ( app-emulation/xen-tools app-emulation/xen ) - udev? ( >=sys-fs/udev-145 >=x11-libs/libpciaccess-0.10.9 ) - virt-network? ( net-dns/dnsmasq - >=net-firewall/iptables-1.4.10 - net-firewall/ebtables - sys-apps/iproute2[-minimal] ) - elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )" -# one? ( dev-libs/xmlrpc-c ) -DEPEND="${RDEPEND} - virtual/pkgconfig - app-text/xhtml1" - -pkg_setup() { - python_set_active_version 2 - python_pkg_setup -} - -src_prepare() { - [[ -n ${BACKPORTS} ]] && \ - EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ - epatch - - [[ -n ${AUTOTOOLIZE} ]] && eautoreconf -} - -src_configure() { - local myconf="" - - myconf="${myconf} $(use_enable debug)" - - ## enable/disable daemon, otherwise client only utils - myconf="${myconf} $(use_with libvirtd)" - - ## enable/disable the daemon using avahi to find VMs - myconf="${myconf} $(use_with avahi)" - - ## hypervisors on the local host - myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)" - # leave it automagic as it depends on the version of xen used. - use xen || myconf+=" --without-libxl" - - myconf="${myconf} $(use_with openvz)" - myconf="${myconf} $(use_with lxc)" - if use virtualbox && has_version app-emulation/virtualbox-ose; then - myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/" - else - myconf="${myconf} $(use_with virtualbox vbox)" - fi - myconf="${myconf} $(use_with uml)" - myconf="${myconf} $(use_with qemu)" - # doesn't belong with hypervisors but links to libvirtd for some reason - #myconf="${myconf} $(use_with one)" - - ## hypervisor protocols - myconf="${myconf} $(use_with phyp)" - myconf="${myconf} --with-esx" - - ## additional host drivers - myconf="${myconf} $(use_with virt-network network)" - myconf="${myconf} --with-storage-fs" - myconf="${myconf} $(use_with lvm storage-lvm)" - myconf="${myconf} $(use_with iscsi storage-iscsi)" - myconf="${myconf} $(use_with parted storage-disk)" - myconf="${myconf} $(use_with lvm storage-mpath)" - myconf="${myconf} $(use_with numa numactl)" - myconf="${myconf} $(use_with selinux)" - - # udev for device support details - myconf="${myconf} $(use_with udev)" - - # linux capability support so we don't need privileged accounts - myconf="${myconf} $(use_with caps capng)" - - ## auth stuff - myconf="${myconf} $(use_with policykit polkit)" - myconf="${myconf} $(use_with sasl)" - - # network bits - myconf="${myconf} $(use_with macvtap)" - myconf="${myconf} $(use_with pcap libpcap)" - - ## other - myconf="${myconf} $(use_enable nls)" - myconf="${myconf} $(use_with python)" - myconf="${myconf} $(use_with json yajl)" - - ## stuff we don't yet support - myconf="${myconf} --without-netcf --without-audit" - - # we use udev over hal - myconf="${myconf} --without-hal" - - # locking support - myconf="${myconf} --without-sanlock" - - # this is a nasty trick to work around the problem in bug - # #275073. The reason why we don't solve this properly is that - # it'll require us to rebuild autotools (and we don't really want - # to do that right now). The proper solution has been sent - # upstream and should hopefully land in 0.7.7, in the mean time, - # mime the same functionality with this. - case ${CHOST} in - *cygwin* | *mingw* ) - ;; - *) - ac_cv_prog_WINDRES=no - ;; - esac - - econf \ - ${myconf} \ - --disable-static \ - --docdir=/usr/share/doc/${PF} \ - --with-remote \ - --localstatedir=/var -} - -src_test() { - # Explicitly allow parallel build of tests - HOME="${T}" emake check || die "tests failed" -} - -src_install() { - emake install \ - DESTDIR="${D}" \ - HTML_DIR=/usr/share/doc/${PF}/html \ - DOCS_DIR=/usr/share/doc/${PF}/python \ - EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \ - || die "emake install failed" - - find "${D}" -name '*.la' -delete || die - - use libvirtd || return 0 - # From here, only libvirtd-related instructions, be warned! - - newinitd "${FILESDIR}/libvirtd.init-r5" libvirtd || die - newconfd "${FILESDIR}/libvirtd.confd-r2" libvirtd || die - - keepdir /var/lib/libvirt/images -} - -pkg_preinst() { - # we only ever want to generate this once - if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then - rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml - fi - - # We really don't want to use or support old PolicyKit cause it - # screws with the new polkit integration - if has_version sys-auth/policykit; then - rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy - fi -} - -pkg_postinst() { - use python && python_mod_optimize libvirt.py - - elog - if use policykit && has_version sys-auth/policykit; then - elog "You must have run the following at least once:" - elog - elog "$ polkit-auth --grant org.libvirt.unix.manage --user \"USERNAME\"" - elog - elog "to grant USERNAME access to libvirt when using USE=policykit" - else - elog "To allow normal users to connect to libvirtd you must change the" - elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf" - fi - - use libvirtd || return 0 - # From here, only libvirtd-related instructions, be warned! - - elog - elog "For the basic networking support (bridged and routed networks)" - elog "you don't need any extra software. For more complex network modes" - elog "including but not limited to NATed network, you can enable the" - elog "'virt-network' USE flag." - elog - if has_version net-dns/dnsmasq; then - ewarn "If you have a DNS server setup on your machine, you will have" - ewarn "to configure /etc/dnsmasq.conf to enable the following settings: " - ewarn " bind-interfaces" - ewarn " interface or except-interface" - ewarn - ewarn "Otherwise you might have issues with your existing DNS server." - fi -} - -pkg_postrm() { - use python && python_mod_cleanup libvirt.py -} |