diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2011-04-07 11:14:51 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2011-04-07 11:14:51 +0000 |
commit | 3f63715f747b2ab8919b2d4a550373a60ebec18c (patch) | |
tree | d3492abf9f9469482ba0dbc9eadf73455aed89e2 /app-emulation/xen-pvgrub | |
parent | Version bump, restrict tests (it is the gcc test suite), force -j1 on install (diff) | |
download | historical-3f63715f747b2ab8919b2d4a550373a60ebec18c.tar.gz historical-3f63715f747b2ab8919b2d4a550373a60ebec18c.tar.bz2 historical-3f63715f747b2ab8919b2d4a550373a60ebec18c.zip |
Initial import. Thanks to newtonian. http://forums.gentoo.org/viewtopic-p-6642981.html
Package-Manager: portage-2.2.0_alpha29/cvs/Linux x86_64
Diffstat (limited to 'app-emulation/xen-pvgrub')
-rw-r--r-- | app-emulation/xen-pvgrub/ChangeLog | 12 | ||||
-rw-r--r-- | app-emulation/xen-pvgrub/Manifest | 30 | ||||
-rw-r--r-- | app-emulation/xen-pvgrub/metadata.xml | 5 | ||||
-rw-r--r-- | app-emulation/xen-pvgrub/xen-pvgrub-4.1.0.ebuild | 97 | ||||
-rw-r--r-- | app-emulation/xen-pvgrub/xen-pvgrub-9999.ebuild | 121 |
5 files changed, 265 insertions, 0 deletions
diff --git a/app-emulation/xen-pvgrub/ChangeLog b/app-emulation/xen-pvgrub/ChangeLog new file mode 100644 index 000000000000..e69b4622035e --- /dev/null +++ b/app-emulation/xen-pvgrub/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-emulation/xen-pvgrub +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.1 2011/04/07 11:14:51 alexxy Exp $ + +*xen-pvgrub-9999 (07 Apr 2011) +*xen-pvgrub-4.1.0 (07 Apr 2011) + + 07 Apr 2011; Alexey Shvetsov <alexxy@gentoo.org> +xen-pvgrub-4.1.0.ebuild, + +xen-pvgrub-9999.ebuild: + Initial import. Thanks to newtonian. + http://forums.gentoo.org/viewtopic-p-6642981.html + diff --git a/app-emulation/xen-pvgrub/Manifest b/app-emulation/xen-pvgrub/Manifest new file mode 100644 index 000000000000..5d8c93602858 --- /dev/null +++ b/app-emulation/xen-pvgrub/Manifest @@ -0,0 +1,30 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST grub-0.97.tar.gz 971783 RMD160 7fb5674edf0c950bd38e94f85ff1e2909aa741f0 SHA1 2580626c4579bd99336d3af4482c346c95dac4fb SHA256 4e1d15d12dbd3e9208111d6b806ad5a9857ca8850c47877d36575b904559260b +DIST lwip-1.3.0.tar.gz 398933 RMD160 72c63bf5e3b29e185c46a5fc116146ea902def83 SHA1 241f917ba9dffc614346472e3c5871217ad0a91c SHA256 772e4d550e07826665ed0528c071dd5404ef7dbe1825a38c8adbc2a00bca948f +DIST newlib-1.16.0.tar.gz 12024353 RMD160 fa40ff43e858da3093c9f3b5b203724b9b327696 SHA1 841edec33d19a9e549984982fb92445ee967e265 SHA256 db426394965c48c1d29023e1cc6d965ea6b9a9035d8a849be2750ca4659a3d07 +DIST pciutils-2.2.9.tar.bz2 212265 RMD160 781a3d30c5c429a0d92110a46711144f74acde06 SHA1 2871be0890f0406c7f86fa01646e23935fda789e SHA256 f60ae61cfbd5da1d849d0beaa21f593c38dac9359f0b3ddc612f447408265b24 +DIST xen-4.1.0.tar.gz 10348539 RMD160 e9ef987b24503d6c993bccfd203be5af9f104f48 SHA1 4295e67524746ce155ff991db5fd2a611be27f67 SHA256 5df61e1b687acdd3d8f54a85be54990518f6679982499f19b28546f03b2909fa +DIST zlib-1.2.3.tar.gz 496597 RMD160 89a57e336c24f7f6eebda3a1724e14b71187e117 SHA1 60faeaaf250642db5c0ea36cd6dcc9f99c8f3902 SHA256 1795c7d067a43174113fdf03447532f373e1c6c57c08d61d9e4e9be5e244b05e +EBUILD xen-pvgrub-4.1.0.ebuild 3198 RMD160 56060557faffc68991a05d19f89dbe015a5a71a7 SHA1 4836cb29bd2ff8b8ef03368e27a332ca19053eb3 SHA256 6f871a72c1b26992022716b12aa697a54cf84d26fb05d1a743c3860d8ab96d8f +EBUILD xen-pvgrub-9999.ebuild 3589 RMD160 277dfb260107f34a04b79eb846b54025b6fc41cd SHA1 8562187292605be354671285d8e20afdaa7d8968 SHA256 e656a624e970a6df99fb7ec468ddc3c4577c63c4c152504d66f3e8abea7e59b5 +MISC ChangeLog 481 RMD160 20c0393f798ed6ae1db43bffbb5306ab6fa0ff83 SHA1 c3ab920a535c2431d31f55483a7cf439f8dd6321 SHA256 a845d15062fac3f42d5b3f6571764e42204935d7a897425eee53db872e0bc9da +MISC metadata.xml 156 RMD160 bb062b1ba5554779dcfd0e73baf533ce9fbcdf68 SHA1 e6da014f2004758c7a806592ef9450489eebf593 SHA256 4a030777459245372bda9f7925f3a5ed3ef2b29b77e1a2971f3400ac2059b1e2 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iQIcBAEBCAAGBQJNnZzrAAoJEOf+E+/4L5Lmx1MP/jfSZBquk2moyzuPbur1yiiQ +e89yKCbfd2v0wjUtszDmkkPQzpeN0UaKDyqaEBUC49pETlTrjc5GlIm6A5HFTlya +vig4by+bAjrqReEBLL7/MSE2gXbOGlyRD1H3+Of2A2CIg6l7C9X27M4ISIQd3yhk +owYhz1jmAi0PzBMV3IqSlU3GcofETXZMkxsFfU39046450PXPpOy31vSC1/gfPLq +sE2EPYKc7OmFTP57SjIHVc0cbeHiFYOGxGRU83a5NdQquNJro+LGXLrwRL/rvxig +U/KW4qIPjX0ys/ZlZanqEDtu0AfTvjGrOkJVzfOs3qDD3Jq6dUis/VlfgIIIKNrZ +Fq1CyjZPU+OyYQGBQujAdiUa014nW2RgccAx5VKH/5wevajTQvO4L9jyAswebYOA +Im+1OrE4iFZ+FG0vCiEG7mbM99N2o2GeoXqWrzSJbipuSVLoXwrbEY6R/NMO3Zkl +e48JU73hCUg/SxPM4Dz55BAqFCqw1sKAzYQTUUEw2yxT6YzUEPBWynrUeJU3jYm+ +4MxBiVInNBa6Z0cSetQGwTmp6sH9hMm3wtWKChr7UkCeA0lrvHS9q1NIbpUIKxRf +800/GasHHQzFmU51GkwD8LOCBPRPALPKXO6mmjVzcDGB8uVwJNvvxzU7+MXaCGpt +oxkhU1/wDaPik+i/LvAj +=n6nR +-----END PGP SIGNATURE----- diff --git a/app-emulation/xen-pvgrub/metadata.xml b/app-emulation/xen-pvgrub/metadata.xml new file mode 100644 index 000000000000..cc9d568a3360 --- /dev/null +++ b/app-emulation/xen-pvgrub/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>xen</herd> +</pkgmetadata> diff --git a/app-emulation/xen-pvgrub/xen-pvgrub-4.1.0.ebuild b/app-emulation/xen-pvgrub/xen-pvgrub-4.1.0.ebuild new file mode 100644 index 000000000000..db54ffd168f9 --- /dev/null +++ b/app-emulation/xen-pvgrub/xen-pvgrub-4.1.0.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.1.0.ebuild,v 1.1 2011/04/07 11:14:51 alexxy Exp $ + +EAPI="2" + +inherit flag-o-matic eutils multilib + +DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem" +HOMEPAGE="http://xen.org/" +SRC_URI=" + http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz + http://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz + http://downloads.sourceforge.net/project/libpng/zlib/1.2.3/zlib-1.2.3.tar.gz + ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-2.2.9.tar.bz2 + http://download.savannah.gnu.org/releases/lwip/lwip-1.3.0.tar.gz + ftp://sources.redhat.com/pub/newlib/newlib-1.16.0.tar.gz + " + +S="${WORKDIR}/xen-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="custom-cflags" + +DEPEND="sys-devel/gettext + sys-devel/gcc" + +RDEPEND=">=app-emulation/xen-${PV}" + +src_prepare() { + # Drop .config + sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" + # 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 {} \; + fi + + sed -i \ + -e 's/WGET=.*/WGET=cp -t . /' \ + -e "s;\$(XEN_EXTFILES_URL);${DISTDIR};" \ + -e 's/$(LD)/$(LD) LDFLAGS=/' \ + -e 's;install-grub: pv-grub;install-grub:;' \ + "${S}"/stubdom/Makefile || die + # Fix gcc-4.6 + sed -i \ + -e "s:-Werror::g" \ + -i tools/libxc/Makefile \ + -i extras/mini-os/minios.mk || die +} + +src_compile() { + use custom-cflags || unset CFLAGS + if test-flag-CC -fno-strict-overflow; then + append-flags -fno-strict-overflow + fi + + emake -C tools/include || die "prepare libelf headers failed" + + if use x86; then + emake XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub || die "compile pv-grub_x86_32 failed" + fi + if use amd64; then + emake XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub || die "compile pv-grub_x86_64 failed" + if use multilib; then + multilib_toolchain_setup x86 + emake XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub || die "compile pv-grub_x86_32 failed" + fi + fi +} + +src_install() { + if use x86; then + emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub || die "install pv-grub_x86_32 failed" + fi + if use amd64; then + emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub || die "install pv-grub_x86_64 failed" + if use multilib; then + emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub || die "install pv-grub_x86_32 failed" + fi + fi +} + +pkg_postinst() { + elog "Official Xen Guide and the unoffical wiki page:" + elog " http://www.gentoo.org/doc/en/xen-guide.xml" + elog " http://en.gentoo-wiki.com/wiki/Xen/" +} diff --git a/app-emulation/xen-pvgrub/xen-pvgrub-9999.ebuild b/app-emulation/xen-pvgrub/xen-pvgrub-9999.ebuild new file mode 100644 index 000000000000..7ff7759c0431 --- /dev/null +++ b/app-emulation/xen-pvgrub/xen-pvgrub-9999.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-9999.ebuild,v 1.1 2011/04/07 11:14:51 alexxy Exp $ + +EAPI="2" + +inherit flag-o-matic eutils multilib mercurial git + +DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem" +HOMEPAGE="http://xen.org/" +SRC_URI=" + http://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz + http://downloads.sourceforge.net/project/libpng/zlib/1.2.3/zlib-1.2.3.tar.gz + ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-2.2.9.tar.bz2 + http://download.savannah.gnu.org/releases/lwip/lwip-1.3.0.tar.gz + ftp://sources.redhat.com/pub/newlib/newlib-1.16.0.tar.gz + " + +MERC_REPO="xen-unstable.hg" +GIT_REPO="qemu-xen-unstable.git" + +EHG_REPO_URI="http://xenbits.xensource.com/${MERC_REPO}" +EGIT_REPO_URI="git://xenbits.xensource.com/${GIT_REPO}" +EGIT_PROJECT="${GIT_REPO}" + +S="${WORKDIR}/${MERC_REPO}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="custom-cflags multilib" + +DEPEND="sys-devel/gettext + sys-devel/gcc" + +RDEPEND=">=app-emulation/xen-${PV}" + +pkg_setup() { + # use emerge to fetch qemu/ioemu + export "CONFIG_QEMU=${WORKDIR}/${GIT_REPO}" +} + +src_unpack() { + default_src_unpack + + # unpack xen + mercurial_src_unpack + + EGIT_COMMIT=$(sed -n -e "s/QEMU_TAG := \(.*\)/\1/p" "${S}"/Config.mk) + + # unpack ioemu repos + S=${WORKDIR}/${GIT_REPO} + git_src_unpack + + S=${WORKDIR}/${MERC_REPO} +} + +src_prepare() { + # 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 {} \; + fi + + sed -i \ + -e 's/WGET=.*/WGET=cp -t . /' \ + -e "s;\$(XEN_EXTFILES_URL);${DISTDIR};" \ + -e 's/$(LD)/$(LD) LDFLAGS=/' \ + -e 's;install-grub: pv-grub;install-grub:;' \ + "${S}"/stubdom/Makefile || die + # Fix gcc-4.6 + sed -i \ + -e "s:-Werror::g" \ + -i tools/libxc/Makefile \ + -i extras/mini-os/minios.mk || die +} + +src_compile() { + use custom-cflags || unset CFLAGS + if test-flag-CC -fno-strict-overflow; then + append-flags -fno-strict-overflow + fi + + emake -C tools/include || die "prepare libelf headers failed" + + if use x86; then + emake XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub || die "compile pv-grub_x86_32 failed" + fi + if use amd64; then + emake XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub || die "compile pv-grub_x86_64 failed" + if use multilib; then + multilib_toolchain_setup x86 + emake XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub || die "compile pv-grub_x86_32 failed" + fi + fi +} + +src_install() { + if use x86; then + emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub || die "install pv-grub_x86_32 failed" + fi + if use amd64; then + emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub || die "install pv-grub_x86_64 failed" + if use multilib; then + emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub || die "install pv-grub_x86_32 failed" + fi + fi +} + +pkg_postinst() { + elog "Official Xen Guide and the unoffical wiki page:" + elog " http://www.gentoo.org/doc/en/xen-guide.xml" + elog " http://en.gentoo-wiki.com/wiki/Xen/" +} |