diff options
author | 2012-07-10 21:59:27 +0000 | |
---|---|---|
committer | 2012-07-10 21:59:27 +0000 | |
commit | 85c42e8dc9ea352a4928dc5a225cdeddce9724e3 (patch) | |
tree | ea449fc5f6ca3e9595b573211db5667a62251a09 /app-emulation | |
parent | Stop inheriting base.eclass (diff) | |
download | historical-85c42e8dc9ea352a4928dc5a225cdeddce9724e3.tar.gz historical-85c42e8dc9ea352a4928dc5a225cdeddce9724e3.tar.bz2 historical-85c42e8dc9ea352a4928dc5a225cdeddce9724e3.zip |
added selinux dep
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/xen-tools/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/xen-tools/Manifest | 23 | ||||
-rw-r--r-- | app-emulation/xen-tools/xen-tools-4.1.2-r3.ebuild | 328 |
3 files changed, 357 insertions, 2 deletions
diff --git a/app-emulation/xen-tools/ChangeLog b/app-emulation/xen-tools/ChangeLog index 06da8c1f4c20..a23a73eef4aa 100644 --- a/app-emulation/xen-tools/ChangeLog +++ b/app-emulation/xen-tools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/xen-tools # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/ChangeLog,v 1.112 2012/05/29 12:45:28 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/ChangeLog,v 1.113 2012/07/10 21:59:27 prometheanfire Exp $ + +*xen-tools-4.1.2-r3 (10 Jul 2012) + + 10 Jul 2012; Matthew Thode <prometheanfire@gentoo.org> + +xen-tools-4.1.2-r3.ebuild: + Updated ebuild for selinux dependancy xen-tools-4.1.2-r3.ebuild 29 May 2012; Kacper Kowalik <xarthisius@gentoo.org> metadata.xml: Use <description> field in order to provide more compact <name> diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest index 9d9f481ef3f3..fa5d22a92d66 100644 --- a/app-emulation/xen-tools/Manifest +++ b/app-emulation/xen-tools/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX ipxe-nopie.patch 952 SHA256 22d1e84568e4bdf204404c45cd4d323a78a1b5a5a29cc4a0707894e22f40bd48 SHA512 9a8429292384fe26840d82e35ab9adb27d4878555f9b9d766de566052021a0179ac04d18083e11c447c91fbe493ac0e9efcef3b0e9dcf79c7fe98d5c074caa04 WHIRLPOOL 07ce488d8b2f16819f0c83750d1b499391a364cb071f50c501a330e1b6c3e0331e453a35edad9367138fe45051822d0da2ef51bfae434e361cf5d481170db55a AUX xen-consoles.logrotate 63 SHA256 0da87a4b9094f934e3de937e8ef8d3afc752e76793aa3d730182d0241e118b19 SHA512 ab2105c75cfe01768aecd5bcbb56269d63666e8a44e42b6a83aee87df6c84ee2f9ab249171c21b2e09f8fec2cae8318f6e87d160989398a3e7dd68db8d52c426 WHIRLPOOL be108bf298202851de434af513ac8c03a533e7621623c2a7e8f26d498074b3eec81b85b2ae29ad2ec67f4fe9937c88bd78c5f5e260793e7e69ec964d4adb989e AUX xen-tools-3.3.0-nostrip.patch 1021 SHA256 2debac718c01a7eac4daf3182a7ae04aa562137d791cd510ecf1848d7eaccebd SHA512 034a93c416af954a8976594ec91901d4bb4401e0798da3bb26f2b59c00ee2597282a50fbbce77490dc485317f7b701bbd7c3efa4bf0f0752d0c23d731f0e4b1b WHIRLPOOL 223a3579308d11f2792394d5b42a3df9c200b6e83dc91db6c75f58c28d58892dc56c48414980b1bb4751db6e74c2f89a63623f63cec14bf948e6eb75f1d1925c @@ -33,5 +36,23 @@ EBUILD xen-tools-3.4.2-r5.ebuild 7484 SHA256 4a9bc0354a307e0385e0d2144b04492187e EBUILD xen-tools-4.1.1-r5.ebuild 10417 SHA256 39265db51b8e9144da628818ce719eb8b8406c23c254455b6862a5f4686ceb8f SHA512 0e12072406df18ef1cc306a6ce1cd18e01c6abaef60e4657c96b1cc9a06d219706d9fcd0e5bd47f7a5ddf03a587e8c3ac6330c7e1e5ffe7c00aba8ac9b011aed WHIRLPOOL 2f71cc8f379fc80bcec755d6015320283c8e4f1b7322d09306ccee5ca533c9959a638d5063c8b1f42392e4eaf8333213fb241675e9a7da5a1b66eb93d30fef5f EBUILD xen-tools-4.1.1-r6.ebuild 10750 SHA256 c0d4e552e261067c71eed24a706e57a2234ae5a42de8192f6afb5781c8b89142 SHA512 5ca31bc0f974103fb72cdfeea7d1277f71a51f47ef95e26857e71c320ee2a200f257831272dec2925e67e44213e13f5ff25c71cbe4b903bc959207476d783f90 WHIRLPOOL abb96c51dd71c17797b3d37306bc2c4fef72a80447f344731ff60328551b590136b272636292ae046a5d4521d99f6d058de07af75e5c7d86506046f1815f7c63 EBUILD xen-tools-4.1.2-r2.ebuild 9850 SHA256 1f5cdd6572a4f6a1bec56365e1e060306b9285394011f39bcd988df9249707dc SHA512 3e9f016198185a031af9988d60664d4238b922d7e5d75a4ab80a6f2289cab243586285299ad61af8b5a5bcf944a630ea3e770bf7a32ed4305c1b0dcfcb8ccc57 WHIRLPOOL 7a7b5b25148245432ff489cb1bf91d6416e50a0ade4d71454afd50bafaf80048b184d12def907ec3918bf0ffdb3a656f7b1890b9f157f23789c5bc87b4481983 -MISC ChangeLog 27362 SHA256 0e54a78a7457b92687134cf9089a7889e589940670dc044992f3004d85ee702e SHA512 51ab1653d483290e79ae3c3ef5ad32891887ca9807d809edf1dcada0e29c8c2f763119b0c1ceb0cd2591505599ab30874ee5172e9de9a483c5f48238db6cbee1 WHIRLPOOL 7c40629493a7a27d53f6377405152109569f57458bda060ea2fc2169bcf9b663601cbaf988dd35d6c76da9bf3f153cada5f4df6ee8e01c6b11154f579a8eeb9c +EBUILD xen-tools-4.1.2-r3.ebuild 9899 SHA256 8b6ce5a0c2eb182e704634defbd42aec8a574ef0bc5ce86a23250a997f3ce89d SHA512 d92caceabf30f3ef27ad8ea3d452e8fe2c5fd312a1fecdd26c9f8ab757ef021f61b9ca894c783066b22ef5e00c921048d2807d9d7a556be68fcebc0ed29229bb WHIRLPOOL db38c8c2538277a3e838c0bb049611ac69665dc6863a236d3df689cade2dded943ce071dff15e8250c064e86530eb0412af313b9ef03ceab5146395fc4421bc1 +MISC ChangeLog 27555 SHA256 9d7721afb66e040711f3e3e5a44c58cab8166be6fff9792c5cf5932af1f8225e SHA512 a8b7df985c3d80cd4d30f91c13ddb50029e327788d36c596187877435a88615a616791c86153fea30a82a88f4862df9b304a1c0f366dc9bdcdf9a8509d61d189 WHIRLPOOL b67f074c9b122237cfa8988d3c9c6c5befc61f1e819104a1b824a5dade5b0f44c08805f37682183fb8c1e29aac763352cc204b54f9d6de3fb85fbe858844c430 MISC metadata.xml 974 SHA256 53ce39bfd6939fe3cc365208a7b2a015f3d20a02ac27c3223b9c0a5bdda8301b SHA512 ea5a4c36589dff8daf887a015374b0fb479b88955f25809d52cf7e38ec72321ff4438604802ba8b2a2dfd0edae06272e172fa98402f0a2963683fe124a682bc2 WHIRLPOOL bb0b86d7d5146f95fd74127412e16970e76c50f5318c749a2be8805be40ccf954a2379b4bd280e6b55896341ff00db49ca8bc83b9db61c08014b4538a32b99f8 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQIcBAEBAgAGBQJP/KXPAAoJECRx6z5ArFrD/TQP/RA3Zk2UwaqsAH7U8LqERN2T +KxpdlxlcRxnFt/nE/KALjF9Kh/WtFX/UqycBZoo/sTi/ECcVskL35thUWzQ7Tcix +EWv8JGGmUu9O7J+BwFtKBJQ1/8TIobAG/O48Uzy52V3UOs8moJ2Fry6VFuocGNEd +fHSOCa34j6lBPVND32HLg/qHf5SRH4o9xEKu/DY/IIHyfAA8LC8oZ3CZtyS484un +mE5Uvzl4BThEyj+3KJGiTV6p8R31D+QBGLFMp+c++tbh/ZLRoi508X/oAcwih2Ny +4A/Om/joc+Fm8hWpoL90mJWbbUuLQzyAF0uRFRQZRp72tb2oDYSXMbKJ1WZ3hZnF +F6w/2mIkzUj3Vq4DzuWV8MvzvZcn9JHPY11mRkpX8wc76h1ZfNx2CuG7SvcmTiZP +2+FKD14P0GsId+tUhnLVNRLykHiQ7vI3duPTrbnhQwvh9U4EDowZnMONPp+0fT4G +K5+13V61r8xhU3AVgiuQu/56vdiBzO5kOZj6vdpYzaeYxXGO+panmwhfWzzE5RbK +35o4bnkIqfpxM6LNFoIpLu8VBqEeZ7HRLSeUjJaqeYper+pZ21CVLC7rTuxWSR5C +8Uh9QmXJWYtZmiT7ZULuzDoAifKCpRESX9nxKXUEbRANpJCSWs11jEsvk++auSsT +2itcD1j+5tUqhxdCUJj9 +=VAIP +-----END PGP SIGNATURE----- diff --git a/app-emulation/xen-tools/xen-tools-4.1.2-r3.ebuild b/app-emulation/xen-tools/xen-tools-4.1.2-r3.ebuild new file mode 100644 index 000000000000..ed47b0c890bf --- /dev/null +++ b/app-emulation/xen-tools/xen-tools-4.1.2-r3.ebuild @@ -0,0 +1,328 @@ +# Copyright 1999-2012 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.1.2-r3.ebuild,v 1.1 2012/07/10 21:59:27 prometheanfire Exp $ + +EAPI="4" +PYTHON_DEPEND="2" +PYTHON_USE_WITH="xml threads" + +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" + XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles" + SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \ + $XEN_EXTFILES_URL/ipxe-git-v1.0.0.tar.gz" + S="${WORKDIR}/xen-${PV}" +fi + +inherit flag-o-matic eutils multilib python toolchain-funcs ${live_eclass} + +DESCRIPTION="Xend daemon and tools" +HOMEPAGE="http://xen.org/" +DOCS=( README docs/README.xen-bugtool docs/ChangeLog ) + +LICENSE="GPL-2" +SLOT="0" +IUSE="api custom-cflags debug doc flask hvm qemu pygrub screen selinux xend" + +REQUIRED_USE="hvm? ( qemu )" + +QA_PRESTRIPPED="/usr/share/xen/qemu/openbios-ppc \ + /usr/share/xen/qemu/openbios-sparc64 \ + /usr/share/xen/qemu/openbios-sparc32" +QA_WX_LOAD=${QA_PRESTRIPPED} + +CDEPEND="<dev-libs/yajl-2 + dev-python/lxml + dev-python/pypam + dev-python/pyxml + sys-libs/zlib + hvm? ( media-libs/libsdl + sys-power/iasl ) + api? ( dev-libs/libxml2 net-misc/curl )" + +DEPEND="${CDEPEND} + sys-devel/gcc + dev-lang/perl + app-misc/pax-utils + dev-ml/findlib + doc? ( + app-doc/doxygen + dev-tex/latex2html[png,gif] + media-gfx/transfig + media-gfx/graphviz + dev-tex/xcolor + 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 + sys-devel/dev86 + ) pygrub? ( dev-lang/python[ncurses] ) + " + +RDEPEND="${CDEPEND} + sys-apps/iproute2 + net-misc/bridge-utils + >=dev-lang/ocaml-3.12.0 + screen? ( + app-misc/screen + app-admin/logrotate + ) + || ( sys-fs/udev sys-apps/hotplug ) + selinux? ( sec-policy/selinux-xen )" + +# hvmloader is used to bootstrap a fully virtualized kernel +# Approved by QA team in bug #144032 +QA_WX_LOAD="usr/lib/xen/boot/hvmloader" +QA_EXECSTACK="usr/share/xen/qemu/openbios-sparc32 + usr/share/xen/qemu/openbios-sparc64" +RESTRICT="test" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup + export "CONFIG_LOMOUNT=y" + + 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 + + use api && export "LIBXENAPI_BINDINGS=y" + use flask && export "FLASK_ENABLE=y" +} + +src_prepare() { + cp "$DISTDIR/ipxe-git-v1.0.0.tar.gz" tools/firmware/etherboot/ipxe.tar.gz + sed -e 's/-Wall//' -i Config.mk || die "Couldn't sanitize CFLAGS" + + # Drop .config + sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" + # 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" || die + sed -e 's:^XEND_INITD:#XEND_INITD:' \ + -i tools/examples/Makefile || "Disabling xend failed" || die + 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 custom-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-$(PYTHON_TOOLS) += pygrub$/d' -i tools/Makefile || die + fi + + # Disable hvm support on systems that don't support x86_32 binaries. + if ! use hvm; then + chmod 644 tools/check/check_x11_devel + 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 build for gcc-4.6 + sed -e "s:-Werror::g" -i tools/xenstat/xentop/Makefile || die + + # Fix network broadcast on bridged networks + epatch "${FILESDIR}/${PN}-3.4.0-network-bridge-broadcast.patch" + + # Do not strip binaries + epatch "${FILESDIR}/${PN}-3.3.0-nostrip.patch" + + # Prevent the downloading of ipxe + sed -e 's:^\tif ! wget -O _$T:#\tif ! wget -O _$T:' \ + -e 's:^\tfi:#\tfi:' -i \ + -e 's:^\tmv _$T $T:#\tmv _$T $T:' \ + -i tools/firmware/etherboot/Makefile || die + + # Fix bridge by idella4, bug #362575 + epatch "${FILESDIR}/${PN}-4.1.1-bridge.patch" + + # Remove check_curl, new fix to Bug #386487 + epatch "${FILESDIR}/${PN}-4.1.1-curl.patch" + sed -i -e 's|has_or_fail curl-config|has_or_fail curl-config\nset -ux|' \ + tools/check/check_curl || die + + # Don't build ipxe with pie on hardened, Bug #360805 + if gcc-specs-pie; then + epatch "${FILESDIR}/ipxe-nopie.patch" + fi + + # Fix create.py for pyxml Bug 367735 + epatch "${FILESDIR}/xen-tools-4.1.2-pyxml.patch" + + sed -e '/texi2html/ s/-number/&-sections/' \ + -i tools/ioemu-qemu-xen/Makefile || die #409333 +} + +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 + emake CC=$(tc-getCC) LD=$(tc-getLD) -C tools ${myopt} + + if use doc; then + sh ./docs/check_pkgs || die "package check failed" + emake docs + emake dev-docs + fi + + emake -C docs man-pages +} + +src_install() { + # Override auto-detection in the build system, bug #382573 + export INITD_DIR=/etc/init.d + export CONFIG_LEAF_DIR=default + + emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" XEN_PYTHON_NATIVE_INSTALL=y install-tools + python_convert_shebangs -r 2 "${ED}" + + # Remove RedHat-specific stuff + rm -rf "${ED}"/etc/init.d/xen* "${ED}"/etc/default || 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 + +# dodoc README docs/README.xen-bugtool docs/ChangeLog + if use doc; then + emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" install-docs + + dohtml -r docs/api/ + docinto pdf + dodoc ${DOCS[@]} + #docs/api/tools/python/latex/refman.pdf + [ -d "${ED}"/usr/share/doc/xen ] && mv "${ED}"/usr/share/doc/xen/* "${ED}"/usr/share/doc/${PF}/html + fi + rm -rf "${ED}"/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 + + if use screen; then + cat "${FILESDIR}"/xendomains-screen.confd >> "${ED}"/etc/conf.d/xendomains || die + cp "${FILESDIR}"/xen-consoles.logrotate "${ED}"/etc/xen/ || die + keepdir /var/log/xen-consoles + fi + + python_convert_shebangs -r 2 "${ED}" + # 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 +} + +pkg_postinst() { + elog "Official Xen Guide and the unoffical wiki page:" + elog " http://www.gentoo.org/doc/en/xen-guide.xml" + elog " http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo" + + if [[ "$(scanelf -s __guard -q $(type -P 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 probablem may be resolved as of Xen 3.0.4, if not post in the bug." + fi + + 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." + echo + elog "The qemu use flag has been removed and replaced with hvm." + fi + + if use xend; then + echo + elog "xend capability has been enabled and installed" + 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 + python_mod_optimize $(use pygrub && echo grub) xen +} + +pkg_postrm() { + python_mod_cleanup $(use pygrub && echo grub) xen +} |