summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-12-06 23:34:37 +0000
committerIan Delaney <idella4@gentoo.org>2013-12-06 23:34:37 +0000
commit8902bd8199719c77a77f5398525f130d18ae0e9b (patch)
tree923741da696519c58473bd6d90d3c4bfc6cc8aad /app-emulation/xen-tools
parentstable x86 - bug 491972 (diff)
downloadhistorical-8902bd8199719c77a77f5398525f130d18ae0e9b.tar.gz
historical-8902bd8199719c77a77f5398525f130d18ae0e9b.tar.bz2
historical-8902bd8199719c77a77f5398525f130d18ae0e9b.zip
revbump; the gentoo styling of xencommon script split into the new 4 files, patching prepared by up and coming dlan
Package-Manager: portage-2.2.0/cvs/Linux x86_64 Manifest-Sign-Key: 0xB8072B0D
Diffstat (limited to 'app-emulation/xen-tools')
-rw-r--r--app-emulation/xen-tools/ChangeLog11
-rw-r--r--app-emulation/xen-tools/Manifest17
-rw-r--r--app-emulation/xen-tools/files/xencommons.confd7
-rw-r--r--app-emulation/xen-tools/files/xencommons.initd80
-rw-r--r--app-emulation/xen-tools/files/xenconsoled.initd10
-rw-r--r--app-emulation/xen-tools/files/xenqemudev.confd7
-rw-r--r--app-emulation/xen-tools/files/xenqemudev.initd117
-rwxr-xr-xapp-emulation/xen-tools/files/xenstored.initd11
-rw-r--r--app-emulation/xen-tools/xen-tools-4.3.1-r2.ebuild410
9 files changed, 653 insertions, 17 deletions
diff --git a/app-emulation/xen-tools/ChangeLog b/app-emulation/xen-tools/ChangeLog
index 2b17e5a48137..75fadeb2e6c8 100644
--- a/app-emulation/xen-tools/ChangeLog
+++ b/app-emulation/xen-tools/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-emulation/xen-tools
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/ChangeLog,v 1.202 2013/12/01 04:28:40 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/ChangeLog,v 1.203 2013/12/06 23:34:11 idella4 Exp $
+
+*xen-tools-4.3.1-r2 (06 Dec 2013)
+
+ 06 Dec 2013; Ian Delaney <idella4@gentoo.org> +files/xencommons.confd,
+ +files/xencommons.initd, +files/xenqemudev.confd, +files/xenqemudev.initd,
+ +xen-tools-4.3.1-r2.ebuild, files/xenconsoled.initd, files/xenstored.initd,
+ xen-tools-4.3.1-r1.ebuild:
+ revbump; the gentoo styling of xencommon script split into the new 4 files,
+ patching prepared by up and coming dlan
*xen-tools-4.3.1-r1
diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest
index 819f47c4501d..ef4fdb3a7aad 100644
--- a/app-emulation/xen-tools/Manifest
+++ b/app-emulation/xen-tools/Manifest
@@ -48,16 +48,20 @@ AUX xen-tools-4.1.1-bridge.patch 449 SHA256 71eea5408e3600c3c6f7ce4e8363ea2c19db
AUX xen-tools-4.2-xen_disk_leak.patch 2324 SHA256 b5d07dded35d48196afe4e52e7e48ef459b527c4b34f1aad13710dae94cba6c8 SHA512 bb8a36a30e69f6d09c9293cd76f071741ce04bf0d0129d9417b3fc41841f6dcb0160506a80222e67d58c78a289072913578868d6a055eb23266d15d5fa59ebe2 WHIRLPOOL c0c69406f564b335a3215a7cea8a447ad7d2b27590f3cf92c74c74356c46ed26557fee3ff5fac5a8ae54f7d8dc1772500d75d9de1630a57ee48d8193a6fdd1e9
AUX xen-tools-4.2.2-install.patch 994 SHA256 4e86e9aa4bb884fcdeec8824c1ec9c54d5e5106f9101b6ca6eb0f5fea6b953b9 SHA512 99b179082eda1326b093f04f9321b3133beef8f7689cc3b9ef626b8d08744629b7b5867a96cb31d3030a4db3f17d230d506828bdd87631989809139459e81937 WHIRLPOOL a5de9e0897552eab01741a8147c871909f48ec11238c9503f7902c94aad6df65baf0fe54b013145fade8091ec452c03906f624cbcd417e3cd2aac6f64b12ffd2
AUX xen-tools-4.3-ar-cc.patch 4036 SHA256 1470887a8ced12d8df61ef74d6dfcb36f2822fa95da7031162ecb577f69ae49a SHA512 1171b5005a24fbbcd4ad9a68153c78ce816aa823f0452a707f3e26d5cee0a0faa05d917db3edcdc7f2924dcf9fd8aee5d7ac7a419723eebe3699be7a32765dd0 WHIRLPOOL e5c3a2adf7e55e7690c4123f442e8f43f66030015228473f9d4d69230eeeb82714c89f502942cd9a76e0637d70f6dc2ebed7eeb3202fbb6cca430c8af420b549
+AUX xencommons.confd 156 SHA256 61c5ff72464c5098d9cad50e5dc94a090dd107b4831bb60a4260cf0a3d12ce81 SHA512 d3cdeaed625e65e60fb22128baf24dceb45143ddf494d7db26464497abc42dbba0c0c9878f1e3908e2910557f4c4d600939824e944938aa251609ec5a1a86ee4 WHIRLPOOL 9633789dcc4dc4eaf7f2198385930bf5474c7a9e531746db89bcae50b8ed78313133a124d4a2b38fb5021337f43cfbd260e4ae391e26d063c68e7aff354be4c2
+AUX xencommons.initd 1572 SHA256 1798da5d488097792b6d2d42970309a4f6dad5a14b3104de66b44b7d07f0a5c3 SHA512 32407a6e075dbbead800b49c08db1786b9ff667dc7e3297a58ce620c200826d38955f19ec622fb6526c96615adb167c53cf34828bbb63aba40a7b24b41513382 WHIRLPOOL 29a18b9778e5c2c411f7a20381f5a9f8d1f5e99f6bdfb850a585ee21c88f4d5f678550f74ea4aee15cc8dc63db3d58564afa5480effc77e21fd89482ee560e0d
AUX xenconsoled.confd 44 SHA256 2a74be03eb74f6013242a4a5d721df6cb9b959b43c405de1e32813f52d749060 SHA512 30df69cc38d0bed26bc4d6e08a2b62cbdc654d5f663009a05cb3b83b3e3dc5e206362d3fd59abbb753ceb8d6d79eaa6e15d079bb8f4f35dc74667103faf4e85d WHIRLPOOL 503f7b48842724e69e7e4ae752d0570c339b7214b5a5fa1db51300e65470803bb383524f6de6c5c08849a961f628f6db7764e3eddcc19accbd209777a0f27d68
-AUX xenconsoled.initd 652 SHA256 3d05ee3ec46c8ef8c12efe7043663932628b2b8fbb2df6d874887dfb0a13a1e6 SHA512 cf2b345ba2eb861c530d154dbafe48c6423b9e4e8333df8bbcd74c542e6db795ed6af45b24dfe40a1351a69c9062e7bc8cf8f07d6bd056c235d68b0e49b148af WHIRLPOOL 5fe06a9593eec3317bb824b2986e5582a3117cddd0fa7370f7971ab9b47d116035eeef644d8f1c5003e0a46cc04f05c934a047233f90359f7ae7ceff0b1cf3be
+AUX xenconsoled.initd 640 SHA256 543e5822dd14f9798b8f05b67b774b795df468c0b30c6938b5a7fc379f951d85 SHA512 2b4ebedc675b14b4dabd646d4e649ce718347f999d8e1e7632e28f5697453f311b49588ca4fc0e695beced96b4fa07571fcc4f6c089492ca297dc3ba42c1360b WHIRLPOOL 90c6937caca6882006dcccfbe4f7c19ec1e8e9602f9e87e8b7c5ef51dbcc019403ca39818b1f375e43c7ce08aed5e75e154f16e98e12efdd0df89b63957ca98f
AUX xend.initd-r1 1687 SHA256 d00ea9f9fb9da8d5290a1aa90affc7273c62c4df2519ff0dfbca817d872ec253 SHA512 a254491c88bc91256621f8b5c24fd9340d7a612644884e69c34afe6160fb097afe4f829edc90c7b72f497153697a348096802034bbb5e59feb5fa5fce6541af5 WHIRLPOOL 415d0450a0de1f80b34458cd570397e9cd05b5acfdacc3663557668917b85e8292d2ba180fe0c7a8cdd461acb0e40b19aad81bb4e381064006b00b45a047f822
AUX xend.initd-r2 1089 SHA256 018c95b166522460d3b7815ceae5125c5f1d5ffcafd9f3a0739cebb080ee0eb2 SHA512 e4beac1893b754179e6d61f6bbfb221469208ba123cdf0d8c7cd80fef9a2f120f699601e2c016acc8eed4bca9e3c0c99dbca261e5556b7c0cfea3426cabf4132 WHIRLPOOL fe36a31fafae05eccb814deffe6bbe36e515214e358c1c357b9f79ebf00642fce07176e3f5d8e8ef1647d27ecc2e94ff8bfbd9a1a55043269409d60f3e3af11f
AUX xendomains-screen.confd 890 SHA256 10ae16108a73cc1ddecfae3bd8dc0e7e739f3f9d845249a2ec23ca03ea02fdb1 SHA512 fb7bfc1806608c6e30bb7db367afe9cf75d44e809556c3ba2794cb3ce0c9f35bcfd7f2bfc4a15a8d805f3d57ff082fe9a525cbac3306e64cbbd0ee5cef554505 WHIRLPOOL 014bef2bf120733482a54811f97ea680ce4d585df1cefde96a0ad90de1e167986f8ebdc0726717128c5835b8f8d55eddef79a36ab86e39ac2a43be70562eeb07
AUX xendomains.confd 291 SHA256 2fac318bb96b357dd185f7729d83c0a0b941799cdb89c24ed83051bb085735dc SHA512 8ad255d39fc0b390c854a64ed82333b6a3041e1247b7a3934cd8274710c168c0017ef2dddbe32c120268d7ea946f8c1b148d7d06a3a4bf415a77eeec36dce2da WHIRLPOOL cea26f5b0c88d644a8906cb2cc9ea8fe5071d6dfd7fc1020d1ce795a389c01b26209cdde04f61e4755494455a1b60c4652e45734c8f5463f2108ea4700e4f336
AUX xendomains.initd-r1 2914 SHA256 95b50886c273ab6c64281ed20856cb7fbea1efbf84060b3c3e49cc3acd1ac134 SHA512 d706b23c34d786eb192c178bbd559b2f7538cb840366c1f41ebf32ac3169265418fd11a12e4d9bc5e02be963dc8f1897b11de5ab414b9519827c584d41741de8 WHIRLPOOL 5fc331ee0e88c8b012eabaca8819421e29a4641a16d96bc5d780e6d45bebeb6b3efe6a73c2f5b4cf1a059b5116501a276517691271e5dc583e32dd350951063e
AUX xendomains.initd-r2 2932 SHA256 65bfda0fb131f944e2f24d7a32eec6b7fc749cb854c3fab3bbb99824524c65ad SHA512 ae66020140c573402d2ac1a915dd217fca6afcc801f3a0a8d1b4d415cdd5a646817eb03ec6f65b9823f253b0dc1eba143e601b9dbedf1e856f9555c2880bf26f WHIRLPOOL fe0885302409fbe4815de71b46b27f307c0add8990d030b883741094f32461a4d8202fbb8be3983232ad3d803cc565374bba78f7b25f83aa61d839b3c77751e9
+AUX xenqemudev.confd 156 SHA256 61c5ff72464c5098d9cad50e5dc94a090dd107b4831bb60a4260cf0a3d12ce81 SHA512 d3cdeaed625e65e60fb22128baf24dceb45143ddf494d7db26464497abc42dbba0c0c9878f1e3908e2910557f4c4d600939824e944938aa251609ec5a1a86ee4 WHIRLPOOL 9633789dcc4dc4eaf7f2198385930bf5474c7a9e531746db89bcae50b8ed78313133a124d4a2b38fb5021337f43cfbd260e4ae391e26d063c68e7aff354be4c2
+AUX xenqemudev.initd 2908 SHA256 6d9281f3652788729d263757d99fa32facb4c127099a07c85ca9e1cc01bfbac0 SHA512 205a49c9eef749b3718dd261e2f94047a967e0f13f852697c8b75e4d2d5074e672b150db86088ecadd898b6cc994a55b74360b1f4bccbaec1464263cfb023d7e WHIRLPOOL 83a196d241501b02cd74b926ef43f2b5a0b79b9505216a978d8d85f1387d6b3f1d24df3a110b1ca24bcd2ee9af8b66dda33dbab58c73fe4c58cfc3133a3e6ff3
AUX xenstored.confd 1226 SHA256 957628c761a415d6cc0174e89e6fa455f377f586ea587ef3a84e192decbcd6ab SHA512 cfca02a9b200e4dc9cf8af8990fb887e4d9d8ce96476d1b1bb0bde970b37914e347863bfbeacd96b9e852b9ad39e1b261b4e2f0fc50da5184e0adf3c9f031444 WHIRLPOOL 1cf99952f1284702ce6154aa554145e2337fb75fc72769471339ce0803e7b447b892433d0a4d1dbc2d3aab7422bdbb4cbaec78b265aa9c1834269dab50d5d219
-AUX xenstored.initd 906 SHA256 007b442430cc4a1d1654e8773e9a042e708caad6b10809530824f8b7d2ed7bd0 SHA512 b897cdcc189b1d08603b6ea4b69009df5cebbbabab6593fe7d88962b7975a8c7aeb0dd5f14959e7be386d746bbe7162b1afdb555a7df61aef8b0ca108f2b77b0 WHIRLPOOL a5db29ac2097d1d720b28e18d8f97a403fea9703d30a43b64fa70155b089601eb9de29ee4c946f367d774c094be5bd6dc640deaf35bdbd53e19d8338737e841b
+AUX xenstored.initd 910 SHA256 7aebe2f93096dac39f68fa23ca1bcb59c9cc64174df88612bd636db1f18d0449 SHA512 2ea188187c19c7d80147786418ee3fea651e3ed48785dbf3cfc720d283c95541d08c676b75a59ff93066ec49775f621afcb0de5a59c16820f89ebd1c42821218 WHIRLPOOL 47eefff0c498f781f33faaa373d80181db2a9a3158cb57ac7c055de350e4954a5b2236b4d2538f1424d0857e45f34e666c5fdf8406ceda56d2323bc4c73d3f91
AUX xenstoredorig.confd 42 SHA256 afcc14f014fe4ec478f85d230efefba9ffad024bf8c83b30074e8a3712cc7831 SHA512 0906cbcdc84935d07cf53bc4447a1f9a9dc4e4fb9fda9a7163f6982f1d8a3ada1f0650fcd254fb6f715a54f7971daf0a5e61c3de6db70dfd156156fd55b59fe4 WHIRLPOOL df46f3fde8b13c3427f445bcf08eb4c660f6000164a01e461cff85cf93ce1195009fc3b4457181788da8eef8dec9125b41ace233ec6f169919be64337a57ebb8
DIST XSA-55patches.tar.gz 23888 SHA256 e86749d02ca5594ebcfdaea820a6cf1fe11015c7fdcc5836260498fae317d75b SHA512 ed1f321a1351df99cfb05e1dfc62dda1268544b0c0ceb7a01438805046e027fb9d59194d179b7a8c302b091a7bf444811b0b9359c4d42f7e902510515c275b6b WHIRLPOOL 5a611e5260f0fc97471f386da3499f7714e015c5c2556bd7199466558d8e375784d32655bdbe9ed4cbf492fa3b41091677d9fe6d3714b029c9a2b1dda6102edb
DIST ipxe.tar.gz 2867999 SHA256 632ce8c193ccacc3012bd354bdb733a4be126f7c098e111930aa41dad537405c SHA512 c5cb1cdff40d2d71fd3e692a9d0efadf2aa17290daf5195391a1c81ddd9dfc913a8e44d5be2b12be85b2a5565ea31631c99c7053564f2fb2225c80ea0bb0e4a4 WHIRLPOOL 58b7459aaf7323968e2f4d1cdcb563a04a0ee40d7d0e8fc600495baf6914127fbbbcddfb66199cd9f462eb59565b3d1ae90a05b3c771b8f13c2d2dcb6070eebc
@@ -70,13 +74,14 @@ EBUILD xen-tools-4.2.2-r3.ebuild 11697 SHA256 9407f8c81db48b9c41845cbf60635675b5
EBUILD xen-tools-4.2.2-r5.ebuild 12253 SHA256 026a0da34025fbb9f46f1a13cb3def20df121b81c94ffe601ebd87a0bfadd584 SHA512 7bbfdd91ab7959e180c53a1a8a48d861a904e52c2f379142b2490052926860eeb88d8f88fd97d96b5cb73818c7817f00f7e29a4e36c96c2fa1d0feb84b872eb8 WHIRLPOOL 278aee16c7378d3879ee5bfcbae51191a2f658b5299308f9aaac8463ab0d6d01e92a3b0a8c71d59fb42d05a1748f006fd540a41cb667193a09671349539e9fc5
EBUILD xen-tools-4.3.0-r3.ebuild 12411 SHA256 3a8eae97d5933a2a39a5b1a340fd1be292e14afdd302a8dbcbf7a2ec2b8b69c5 SHA512 84f6f44ecddbe528cb2338a72233863cad0e54007bb32653fa1d70cbb02a7243ffa4bce08e60ffc431364094451bd78fccacc9e17a61c48324963d7539b27c9e WHIRLPOOL 83a09a8e215afac39cd5683bd90844d65c7381b7ffdc281adb47ace64733617e3c97d173082b2bc31325c4639e29361c3fb6de76473de9f6c63fbde83b784941
EBUILD xen-tools-4.3.1-r1.ebuild 12268 SHA256 a4cdc768a7df29be24753f7c871d05c373072e18758826022ddaec9b655a6afd SHA512 aa4315436bb8dd59722c2c6f6592f1b922f3879ad2daf0b031f24c450597fd0c5bfb011d5b64bec579dee5d9cca23bb0d70a5e2906daec26fd2cc87e61d1333e WHIRLPOOL 01b45f1c9fbf466123d3b5128b7e956bf5cec97839a04c3ed0689a591f0c0cecde7d625c2f680f5d63961811ac96d9db3e7e5300c2040455baada5bf42f4567c
+EBUILD xen-tools-4.3.1-r2.ebuild 12680 SHA256 e1505b1f8f8fb721cfa61024c09e54dfaa557e97c1a1d42248052a556ecac662 SHA512 2693e20944178b0ce2e1c3986460a4eb67cd698305ea6e739bce7745dc7e6ffcf0c79899be3ae31064586733d8488f2e1074c1039aabcdabb23498905956f2b1 WHIRLPOOL 7cd428f91888157f87f7c2ba8ea1c83e2ef85d149411f12135ae35ffed343b94a115992d06d0f8dfa369d10a820ba6ef2f416ab9ec5319e50ef7fed37643fab8
EBUILD xen-tools-4.3.1.ebuild 12145 SHA256 f3b84bbec00efc3eac9e791205734969d777b7429dd8f0a00b22ee43e90cecac SHA512 ef9c5d837ef1d92aac45ce5e6d048fcf492a3a0548a13563b3a87a528fda1b9e633d73f106fdfdc847f20521bea9402b12ebbd8ca7e1edac2ca2ef5570a83faf WHIRLPOOL 0c4e53f691e407739bac19a8cd0ec4bab3a0e27c28bf9014fc69b36d89c3c52cf70fea814a9ac29e6aee3ae6d9054d90cb39d6ad94f1427864fb4bd3d7192d7e
-MISC ChangeLog 48524 SHA256 1b07270329688aafea12ab8e13abeb64e8e13da9f8a2d6f5cb0ce56781a0ca49 SHA512 f49b2b4eee616813743791ee4e44c07ed8e3363e524e95c6a1546462fe07a934c406cc5513a73ee25a5cd4f22d808376e857ad2eda9804cd734eb5440cdfdae8 WHIRLPOOL 44728bd0b3ab2f168e566e9541437991a7aef39f8e54cfd7923e61d376287c43be93a4ffdb43201d356651c823100b0a1b802bd1dcce11652d2e3d15e9e2bd8b
+MISC ChangeLog 48937 SHA256 f4ecf4cc3addb63e652042b68407fbda5e7640219c7ccdbfe90bd73582c1151f SHA512 69c35a39ebd8c121b49021d17157fd5bc65267e8c8d1ea1729f9067cbc9ad989e8c96a698179f15b0f958d8421a40126d325c8e49ebbe4b8097688dd3c059e07 WHIRLPOOL 9a8d897ad095a0425c9dc494cb71a10fa77728ff73da49a0b26e0e6632b8bba6e7b8e116d64e4b3a9e28f00a7326ca1212d07e33e2c06551cb5254f091eeacb2
MISC metadata.xml 912 SHA256 c60760f1637a70d67aa32d4f94d31552769a7b12621c80f897c6ea9591d8620e SHA512 c1ed27bb987d0d9ff8e6d934973772489884f4c1ef6916862cfbaebd3030a360d876b6b9d713cff2b47b99f9144699c8cf7ff693abd22b5a76bd02d1de73e9cf WHIRLPOOL 2fad840e70030a454fec22c5cbfa539d8f31ad4f825f833360a169109e8ee6bd98ab446cf7be5f2ec13dd852223b225f81708d673c582233739f223ab6a37053
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlKauxoACgkQso7CE7gHKw24TgCdHReAMghpzfnnosThmHYycw11
-yBgAn0CtT/4QULNF7r46tLDbe57Hn90G
-=3S7z
+iEYEAREIAAYFAlKiXv4ACgkQso7CE7gHKw1ghQCeLOVfZo6V17KlAKVy+Bt2Pf00
+toUAoNsGnqsYdEDKKPKH8J0uXskEujFE
+=7jFi
-----END PGP SIGNATURE-----
diff --git a/app-emulation/xen-tools/files/xencommons.confd b/app-emulation/xen-tools/files/xencommons.confd
new file mode 100644
index 000000000000..5b49520aa0ee
--- /dev/null
+++ b/app-emulation/xen-tools/files/xencommons.confd
@@ -0,0 +1,7 @@
+# /etc/conf.d/xenqemudev
+
+# To enable QEMU file backend, set to 'yes'
+XENQEMUDEV_FILE_BACKEND_ENABLE=""
+
+# Common options for xenqemudev
+XENQEMUDEV_OPTS=""
diff --git a/app-emulation/xen-tools/files/xencommons.initd b/app-emulation/xen-tools/files/xencommons.initd
new file mode 100644
index 000000000000..5ece118c9bd9
--- /dev/null
+++ b/app-emulation/xen-tools/files/xencommons.initd
@@ -0,0 +1,80 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xencommons.initd,v 1.1 2013/12/06 23:34:11 idella4 Exp $
+
+depend() {
+ before xenstored
+}
+
+is_privileged_domain() {
+ grep -qsE '^control_d$' /proc/xen/capabilities
+ return $?
+}
+
+handle_kernel_modules() {
+ local XEN_DEFAULT_KERNEL_MODULES="
+ xen-evtchn
+ xen-gntdev
+ xen-gntalloc
+ xen-blkback
+ xen-netback
+ xen-pciback
+ gntdev
+ netbk
+ blkbk
+ xen-scsibk
+ usbbk
+ pciback
+ xen-acpi-processor
+ blktap2
+ blktap
+ "
+
+ [ "$1" = "remove" ] && OPTS="-r"
+
+ XEN_KERNEL_MODULES="${XEN_KERNEL_MODULES:-${XEN_DEFAULT_KERNEL_MODULES}}"
+ for i in ${XEN_KERNEL_MODULES}; do
+ modprobe ${OPTS} $i 2>/dev/null
+ done
+ return 0
+}
+
+start() {
+ ebegin "Starting xencommons daemon"
+
+ # not running in Xen dom0 or domU
+ if [ ! -d /proc/xen ]; then
+ eend 1 "Not running in Xen mode"
+ return 1
+ fi
+
+ # mount xenfs in dom0 or domU with a pv_ops kernel
+ if ! test -f /proc/xen/capabilities && \
+ ! grep '^xenfs ' /proc/mounts >/dev/null;
+ then
+ mount -t xenfs xenfs /proc/xen
+ fi
+
+ if ! is_privileged_domain; then
+ eend 1 "Not running on a privileged domain. xencommons not started"
+ return 1
+ fi
+
+ handle_kernel_modules
+
+ eend $? "Failed to start xencommons"
+}
+
+stop () {
+ ebegin "Stopping xencommons"
+ if ! is_privileged_domain; then
+ eend 1 "Not running on a privileged domain. xencommons not started"
+ return 1
+ fi
+
+ handle_kernel_modules remove
+
+ eend $? "Failed to stop xencommons"
+}
+
diff --git a/app-emulation/xen-tools/files/xenconsoled.initd b/app-emulation/xen-tools/files/xenconsoled.initd
index 633a889acd6b..37e9c0cbc90e 100644
--- a/app-emulation/xen-tools/files/xenconsoled.initd
+++ b/app-emulation/xen-tools/files/xenconsoled.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenconsoled.initd,v 1.2 2013/07/27 15:50:36 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenconsoled.initd,v 1.3 2013/12/06 23:34:11 idella4 Exp $
depend() {
need xenstored
@@ -10,15 +10,15 @@ depend() {
start() {
ebegin "Starting xenconsoled daemon"
start-stop-daemon --start --exec /usr/sbin/xenconsoled \
- --pidfile /var/run/xenconsoled.pid \
- -- --pid-file=/var/run/xenconsoled.pid \
+ --pidfile /run/xenconsoled.pid \
+ -- --pid-file=/run/xenconsoled.pid \
${XENCONSOLED_OPTS}
eend $*
}
stop() {
- ebegin "Stoping xenconsoled daemon"
+ ebegin "Stopping xenconsoled daemon"
start-stop-daemon --stop --exec /usr/sbin/xenconsoled \
- --pidfile /var/run/xenconsoled.pid
+ --pidfile run/xenconsoled.pid
eend $*
}
diff --git a/app-emulation/xen-tools/files/xenqemudev.confd b/app-emulation/xen-tools/files/xenqemudev.confd
new file mode 100644
index 000000000000..5b49520aa0ee
--- /dev/null
+++ b/app-emulation/xen-tools/files/xenqemudev.confd
@@ -0,0 +1,7 @@
+# /etc/conf.d/xenqemudev
+
+# To enable QEMU file backend, set to 'yes'
+XENQEMUDEV_FILE_BACKEND_ENABLE=""
+
+# Common options for xenqemudev
+XENQEMUDEV_OPTS=""
diff --git a/app-emulation/xen-tools/files/xenqemudev.initd b/app-emulation/xen-tools/files/xenqemudev.initd
new file mode 100644
index 000000000000..54b1ad625fc2
--- /dev/null
+++ b/app-emulation/xen-tools/files/xenqemudev.initd
@@ -0,0 +1,117 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenqemudev.initd,v 1.1 2013/12/06 23:34:11 idella4 Exp $
+
+extra_commands="status"
+
+depend() {
+ need xend
+ after dhcp
+}
+
+get_domname() {
+ local name_from_file=$(sed -rn 's/^name\W*=\W*\"?([[:alnum:]_\.-]+)\"?\W*;?/\1/p' "${1}" | tail -n 1)
+
+ if [ -z ${name_from_file} ] ; then
+ basename "${1}"
+ else
+ echo ${name_from_file}
+ fi
+}
+
+is_running() {
+ /usr/sbin/xm list "${1}" >/dev/null 2>&1
+}
+
+using_screen() {
+ [ "${SCREEN}" = "yes" -o "${SCREEN}" = "YES" ]
+}
+
+set_screen_cmd() {
+ screen_cmd="screen -c ${SCREENRC:-/dev/null} -q -r ${SCREEN_NAME:=xen} -X"
+}
+
+start() {
+ set_screen_cmd
+
+ einfo "Starting Xen domains from ${AUTODIR:=/etc/xen/auto}"
+ if using_screen ; then
+ ebegin "Creating screen session to hold domain consoles"
+ ( screen -c ${SCREENRC:-/dev/null} -d -m -S ${SCREEN_NAME} -t dom0 && sleep 3 \
+ && ${screen_cmd} zombie dr \
+ && logrotate -f /etc/xen/xen-consoles.logrotate \
+ && ${screen_cmd} logfile /var/log/xen-consoles/%t.log \
+ && ${screen_cmd} logfile flush ${SCREEN_LOG_INTERVAL:-1} \
+ && ${screen_cmd} log on \
+ && ${screen_cmd} deflog on ) >/dev/null
+ if [ $? -ne 0 ] ; then
+ eend 1
+ return 1
+ else
+ eend
+ fi
+ fi
+ # Create all domains with config files in AUTODIR.
+ for dom in $(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort); do
+ name=$(get_domname ${dom})
+ if ! is_running ${name} ; then
+ ebegin " Starting domain ${name}"
+ if using_screen ; then
+ ${screen_cmd} screen -t ${name} xm create ${dom} -c
+ else
+ xm create --quiet ${dom}
+ fi
+ eend $?
+ else
+ einfo " Not starting domain ${name} - already running"
+ fi
+ done
+}
+
+stop() {
+ set_screen_cmd
+
+ einfo "Shutting down Xen domains from ${AUTODIR:=/etc/xen/auto}"
+ # Stop all domains with config files in AUTODIR.
+ DOMAINS="$(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort -r)"
+
+ if [[ "$PARALLEL_SHUTDOWN" == "yes" ]] ; then
+ for dom in $DOMAINS ; do
+ name=$(get_domname ${dom})
+ if is_running ${name} ; then
+ ebegin " Asking domain ${name} to shutdown in the background..."
+ xm shutdown --wait ${name} >/dev/null &
+ else
+ einfo " Not stopping domain ${name} - not running"
+ fi
+ done
+ einfo " Waiting for shutdown of domains that are still running"
+ wait
+ eend $?
+ else
+ for dom in $DOMAINS ; do
+ name=$(get_domname ${dom})
+ if is_running ${name} ; then
+ ebegin " Waiting for domain ${name} to shutdown"
+ xm shutdown --wait ${name} >/dev/null
+ eend $?
+ else
+ einfo " Not stopping domain ${name} - not running"
+ fi
+ done
+ fi
+ if using_screen ; then
+ if ${screen_cmd} sleep 0 >/dev/null 2>&1 ; then
+ ebegin "Closing screen session ${SCREEN_NAME}"
+ ${screen_cmd} quit
+ eend $?
+ else
+ eend 0
+ fi
+ fi
+}
+
+status() {
+ /usr/sbin/xm list
+} \ No newline at end of file
diff --git a/app-emulation/xen-tools/files/xenstored.initd b/app-emulation/xen-tools/files/xenstored.initd
index 2b19d50b3850..4d826af288ab 100755
--- a/app-emulation/xen-tools/files/xenstored.initd
+++ b/app-emulation/xen-tools/files/xenstored.initd
@@ -1,18 +1,19 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd,v 1.10 2013/07/27 15:50:36 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd,v 1.11 2013/12/06 23:34:11 idella4 Exp $
depend() {
- before xendomains xend sshd ntp-client ntpd nfs nfsmount rsyncd portmap dhcp
+ before xendomains xend sshd ntp-client ntpd nfs nfsmount rsyncd portmap dhcp
+ need xencommons
}
start() {
! [ -x /run/xen ] && mkdir -p /run/xen
ebegin "Starting xenstored daemon"
start-stop-daemon --start --exec /usr/sbin/xenstored \
- --pidfile /var/run/xenstored.pid \
- -- --pid-file=/var/run/xenstored.pid \
+ --pidfile /run/xenstored.pid \
+ -- --pid-file=/run/xenstored.pid \
$XENSTORED_OPTS
until xenstore-exists \ || ((15 < ++i))
do
@@ -27,6 +28,6 @@ start() {
stop() {
ebegin "Stopping xenstored daemon"
start-stop-daemon --stop --exec /usr/sbin/xenstored \
- --pidfile /var/run/xenstored.pid
+ --pidfile /run/xenstored.pid
eend $?
}
diff --git a/app-emulation/xen-tools/xen-tools-4.3.1-r2.ebuild b/app-emulation/xen-tools/xen-tools-4.3.1-r2.ebuild
new file mode 100644
index 000000000000..96f1b66d409b
--- /dev/null
+++ b/app-emulation/xen-tools/xen-tools-4.3.1-r2.ebuild
@@ -0,0 +1,410 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.3.1-r2.ebuild,v 1.1 2013/12/06 23:34:11 idella4 Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7} )
+PYTHON_REQ_USE='xml,threads'
+
+IPXE_TARBALL_URL="http://dev.gentoo.org/~idella4/tarballs/ipxe.tar.gz"
+XEN_SEABIOS_URL="http://dev.gentoo.org/~idella4/tarballs/seabios-dir-remote-20130720.tar.gz"
+
+if [[ $PV == *9999 ]]; then
+ KEYWORDS=""
+ REPO="xen-unstable.hg"
+ EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
+ S="${WORKDIR}/${REPO}"
+ live_eclass="mercurial"
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
+ $IPXE_TARBALL_URL
+ $XEN_SEABIOS_URL"
+ S="${WORKDIR}/xen-${PV}"
+fi
+
+inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs udev ${live_eclass}
+
+DESCRIPTION="Xend daemon and tools"
+HOMEPAGE="http://xen.org/"
+DOCS=( README docs/README.xen-bugtool )
+
+LICENSE="GPL-2"
+SLOT="0"
+# Inclusion of IUSE ocaml on stabalizing requires aballier to (get off his hands and) make >=dev-lang/ocaml-4 stable
+# Otherwise IUSE ocaml and ocaml capable build need be purged
+IUSE="api custom-cflags debug doc flask hvm qemu ocaml +pam python pygrub screen static-libs xend"
+
+REQUIRED_USE="hvm? ( qemu )
+ ${PYTHON_REQUIRED_USE}"
+
+DEPEND="dev-libs/lzo:2
+ dev-libs/yajl
+ dev-libs/libgcrypt
+ dev-python/lxml[${PYTHON_USEDEP}]
+ pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
+ sys-libs/zlib
+ sys-power/iasl
+ hvm? ( media-libs/libsdl )
+ ${PYTHON_DEPS}
+ api? ( dev-libs/libxml2
+ net-misc/curl )
+ pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )
+ sys-devel/bin86
+ sys-devel/dev86
+ dev-lang/perl
+ app-misc/pax-utils
+ dev-python/markdown
+ doc? (
+ app-doc/doxygen
+ dev-tex/latex2html[png,gif]
+ media-gfx/graphviz
+ dev-tex/xcolor
+ media-gfx/transfig
+ dev-texlive/texlive-latexextra
+ virtual/latex-base
+ dev-tex/latexmk
+ dev-texlive/texlive-latex
+ dev-texlive/texlive-pictures
+ dev-texlive/texlive-latexrecommended
+ )
+ hvm? ( x11-proto/xproto
+ !net-libs/libiscsi )
+ qemu? ( x11-libs/pixman )
+ ocaml? ( dev-ml/findlib
+ >=dev-lang/ocaml-4 )"
+RDEPEND="sys-apps/iproute2
+ net-misc/bridge-utils
+ screen? (
+ app-misc/screen
+ app-admin/logrotate
+ )
+ virtual/udev"
+
+# hvmloader is used to bootstrap a fully virtualized kernel
+# Approved by QA team in bug #144032
+QA_WX_LOAD="usr/lib/xen/boot/hvmloader"
+
+RESTRICT="test"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ export "CONFIG_LOMOUNT=y"
+
+ if has_version dev-libs/libgcrypt; then
+ export "CONFIG_GCRYPT=y"
+ fi
+
+ if use qemu; then
+ export "CONFIG_IOEMU=y"
+ else
+ export "CONFIG_IOEMU=n"
+ fi
+
+ if ! use x86 && ! has x86 $(get_all_abis) && use hvm; then
+ eerror "HVM (VT-x and AMD-v) cannot be built on this system. An x86 or"
+ eerror "an amd64 multilib profile is required. Remove the hvm use flag"
+ eerror "to build xen-tools on your current profile."
+ die "USE=hvm is unsupported on this system."
+ fi
+
+ if [[ -z ${XEN_TARGET_ARCH} ]] ; then
+ if use x86 && use amd64; then
+ die "Confusion! Both x86 and amd64 are set in your use flags!"
+ elif use x86; then
+ export XEN_TARGET_ARCH="x86_32"
+ elif use amd64 ; then
+ export XEN_TARGET_ARCH="x86_64"
+ else
+ die "Unsupported architecture!"
+ fi
+ fi
+}
+
+src_prepare() {
+ # Drop .config, fixes to gcc-4.6
+ epatch "${FILESDIR}"/${PN/-tools/}-4.3-fix_dotconfig-gcc.patch
+
+ # Xend
+ if ! use xend; then
+ sed -e 's:xm xen-bugtool xen-python-path xend:xen-bugtool xen-python-path:' \
+ -i tools/misc/Makefile || die "Disabling xend failed"
+ sed -e 's:^XEND_INITD:#XEND_INITD:' \
+ -i tools/examples/Makefile || die "Disabling xend failed"
+ fi
+
+ # if the user *really* wants to use their own custom-cflags, let them
+ if use custom-cflags; then
+ einfo "User wants their own CFLAGS - removing defaults"
+
+ # try and remove all the default cflags
+ find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
+ -exec sed \
+ -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
+ -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
+ -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
+ -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
+ -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
+ -i {} + || die "failed to re-set custom-cflags"
+ fi
+
+ if ! use pygrub; then
+ sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
+ fi
+
+ if ! use python; then
+ sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
+ fi
+
+ # Disable hvm support on systems that don't support x86_32 binaries.
+ if ! use hvm; then
+ sed -e '/^CONFIG_IOEMU := y$/d' -i config/*.mk || die
+ sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
+ fi
+
+ # Don't bother with qemu, only needed for fully virtualised guests
+ if ! use qemu; then
+ sed -e "/^CONFIG_IOEMU := y$/d" -i config/*.mk || die
+ sed -e "s:install-tools\: tools/ioemu-dir:install-tools\: :g" -i Makefile || die
+ fi
+
+ # Fix texi2html build error with new texi2html, qemu.doc.html
+ epatch "${FILESDIR}"/${PN}-4-docfix.patch \
+ "${FILESDIR}"/${PN}-4-qemu-xen-doc.patch
+
+ # Fix network broadcast on bridged networks
+ epatch "${FILESDIR}/${PN}-3.4.0-network-bridge-broadcast.patch"
+
+ # Prevent the downloading of ipxe, seabios
+ epatch "${FILESDIR}"/${PN/-tools/}-4.3-anti-download.patch
+ cp "${DISTDIR}"/ipxe.tar.gz tools/firmware/etherboot/ || die
+ mv ../seabios-dir-remote tools/firmware/ || die
+ pushd tools/firmware/ > /dev/null
+ ln -s seabios-dir-remote seabios-dir || die
+ popd > /dev/null
+
+ # Fix bridge by idella4, bug #362575
+ epatch "${FILESDIR}/${PN}-4.1.1-bridge.patch"
+
+ # Don't build ipxe with pie on hardened, Bug #360805
+ if gcc-specs-pie; then
+ epatch "${FILESDIR}"/ipxe-nopie.patch
+ fi
+
+ # Prevent double stripping of files at install
+ epatch "${FILESDIR}"/${PN/-tools/}-4.2.0-nostrip.patch
+
+ # fix jobserver in Makefile
+ epatch "${FILESDIR}"/${PN/-tools/}-4.3-jserver.patch
+
+ # add missing header
+ epatch "${FILESDIR}"/xen-4-ulong.patch
+
+ # Set dom0-min-mem to kb; Bug #472982
+ epatch "${FILESDIR}"/${PN/-tools/}-4.2-configsxp.patch
+
+ #Security patches, currently valid
+ epatch "${FILESDIR}"/xen-4-CVE-2012-6075-XSA-41.patch
+
+ # Bug 472438
+ sed -e 's:^BASH_COMPLETION_DIR ?= $(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(SHARE_DIR)/bash-completion:' \
+ -i Config.mk || die
+
+ # Bug 477676
+ epatch "${FILESDIR}"/${PN}-4.3-ar-cc.patch
+
+ # Prevent file collision with qemu package Bug 478064
+ if use qemu; then
+ epatch "${FILESDIR}"/qemu-bridge.patch
+ mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
+ fi
+
+ use flask || sed -e "/SUBDIRS-y += flask/d" -i tools/Makefile || die
+ use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
+ sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' -i tools/firmware/Makefile || die
+
+ # Bug 379537
+ epatch "${FILESDIR}"/fix-gold-ld.patch
+
+ # xencommons, Bug #492332, sed lighter weight than patching
+ sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
+ -i tools/hotplug/Linux/init.d/xencommons || die
+
+ epatch_user
+}
+
+src_configure() {
+ local myconf="--prefix=/usr --disable-werror"
+
+ if use ocaml
+ then
+ myconf="${myconf} $(use_enable ocaml ocamltools)"
+ else
+ myconf="${myconf} --disable-ocamltools"
+ fi
+
+ if ! use pam
+ then
+ myconf="${myconf} --disable-pam"
+ fi
+
+ econf ${myconf}
+}
+
+src_compile() {
+ export VARTEXFONTS="${T}/fonts"
+ local myopt
+ use debug && myopt="${myopt} debug=y"
+
+ use custom-cflags || unset CFLAGS
+ if test-flag-CC -fno-strict-overflow; then
+ append-flags -fno-strict-overflow
+ fi
+
+ unset LDFLAGS
+ unset CFLAGS
+ emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
+
+ use doc && emake -C docs txt html
+ emake -C docs man-pages
+}
+
+src_install() {
+ # Override auto-detection in the build system, bug #382573
+ export INITD_DIR=/tmp/init.d
+ export CONFIG_LEAF_DIR=../tmp/default
+
+ # Let the build system compile installed Python modules.
+ local PYTHONDONTWRITEBYTECODE
+ export PYTHONDONTWRITEBYTECODE
+
+ emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
+ XEN_PYTHON_NATIVE_INSTALL=y install-tools
+
+ # Fix the remaining Python shebangs.
+ python_fix_shebang "${D}"
+
+ # Remove RedHat-specific stuff
+ rm -rf "${D}"tmp || die
+
+ # uncomment lines in xl.conf
+ sed -e 's:^#autoballoon=1:autoballoon=1:' \
+ -e 's:^#lockfile="/var/lock/xl":lockfile="/var/lock/xl":' \
+ -e 's:^#vifscript="vif-bridge":vifscript="vif-bridge":' \
+ -i tools/examples/xl.conf || die
+
+ # Reset bash completion dir; Bug 472438
+ mv "${D}"bash-completion "${D}"usr/share/ || die
+
+ if use doc; then
+ emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
+
+ dohtml -r docs/
+ docinto pdf
+ dodoc ${DOCS[@]}
+ [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
+ fi
+
+ rm -rf "${D}"/usr/share/doc/xen/
+ doman docs/man?/*
+
+ if use xend; then
+ newinitd "${FILESDIR}"/xend.initd-r2 xend || die "Couldn't install xen.initd"
+ fi
+ newconfd "${FILESDIR}"/xendomains.confd xendomains
+ newconfd "${FILESDIR}"/xenstored.confd xenstored
+ newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
+ newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
+ newinitd "${FILESDIR}"/xenstored.initd xenstored
+ newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
+ newinitd "${FILESDIR}"/xencommons.initd xencommons
+ newinitd "${FILESDIR}"/xencommons.confd xencommons
+ newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
+ newinitd "${FILESDIR}"/xenqemudev.confd xenqemudev
+
+ if use screen; then
+ cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
+ cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
+ keepdir /var/log/xen-consoles
+ fi
+
+ # Move files built with use qemu, Bug #477884
+ if [[ "${ARCH}" == 'amd64' ]] && use qemu; then
+ mkdir -p "${D}"usr/$(get_libdir)/xen/bin || die
+ mv "${D}"usr/lib/xen/bin/* "${D}"usr/$(get_libdir)/xen/bin/ || die
+ fi
+
+ # For -static-libs wrt Bug 384355
+ if ! use static-libs; then
+ rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
+ fi
+
+ # xend expects these to exist
+ keepdir /var/run/xenstored /var/lib/xenstored /var/xen/dump /var/lib/xen /var/log/xen
+
+ # for xendomains
+ keepdir /etc/xen/auto
+
+ # Temp QA workaround
+ dodir "$(udev_get_udevdir)"
+ mv "${D}"/etc/udev/* "${D}/$(udev_get_udevdir)"
+ rm -rf "${D}"/etc/udev
+
+ # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
+ find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
+ -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
+}
+
+pkg_postinst() {
+ elog "Official Xen Guide and the offical wiki page:"
+ elog "http://www.gentoo.org/doc/en/xen-guide.xml"
+ elog "http://wiki.xen.org/wiki/Main_Page"
+ elog ""
+ elog "Recommended to utilise the xencommons script to config sytem At boot"
+ elog "Add by use of rc-update on completion of the install"
+
+ if [[ "$(scanelf -s __guard -q "${PYTHON}")" ]] ; then
+ echo
+ ewarn "xend may not work when python is built with stack smashing protection (ssp)."
+ ewarn "If 'xm create' fails with '<ProtocolError for /RPC2: -1 >', see bug #141866"
+ ewarn "This problem may be resolved as of Xen 3.0.4, if not post in the bug."
+ fi
+
+ # TODO: we need to have the current Python slot here.
+ if ! has_version "dev-lang/python[ncurses]"; then
+ echo
+ ewarn "NB: Your dev-lang/python is built without USE=ncurses."
+ ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py."
+ fi
+
+ if has_version "sys-apps/iproute2[minimal]"; then
+ echo
+ ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking"
+ ewarn "will not work until you rebuild iproute2 without USE=minimal."
+ fi
+
+ if ! use hvm; then
+ echo
+ elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
+ elog "support enable the hvm use flag."
+ elog "An x86 or amd64 multilib system is required to build HVM support."
+ fi
+
+ if use xend; then
+ elog"";elog "xend capability has been enabled and installed"
+ fi
+
+ if use qemu; then
+ elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
+ elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
+ elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
+ elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
+ fi
+
+ if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then
+ echo
+ elog "xensv is broken upstream (Gentoo bug #142011)."
+ elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed."
+ fi
+}