diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2012-09-10 21:32:58 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2012-09-10 21:32:58 +0000 |
commit | 14364b828d7769eb311f1865951904607496b2c9 (patch) | |
tree | 931811a660a809fab83927f090d84ef730da68a2 /sys-firmware | |
parent | remove old version (diff) | |
download | gentoo-2-14364b828d7769eb311f1865951904607496b2c9.tar.gz gentoo-2-14364b828d7769eb311f1865951904607496b2c9.tar.bz2 gentoo-2-14364b828d7769eb311f1865951904607496b2c9.zip |
Add initial version of iPXE 1.0.0+
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'sys-firmware')
-rw-r--r-- | sys-firmware/ipxe/ChangeLog | 10 | ||||
-rw-r--r-- | sys-firmware/ipxe/ipxe-1.0.0_p20120905.ebuild | 68 | ||||
-rw-r--r-- | sys-firmware/ipxe/metadata.xml | 16 |
3 files changed, 94 insertions, 0 deletions
diff --git a/sys-firmware/ipxe/ChangeLog b/sys-firmware/ipxe/ChangeLog new file mode 100644 index 000000000000..cfcb52dda8d6 --- /dev/null +++ b/sys-firmware/ipxe/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-firmware/ipxe +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/ipxe/ChangeLog,v 1.1 2012/09/10 21:32:58 cardoe Exp $ + +*ipxe-1.0.0_p20120905 (10 Sep 2012) + + 10 Sep 2012; Doug Goldstein <cardoe@gentoo.org> +ipxe-1.0.0_p20120905.ebuild, + +metadata.xml: + Add initial version of iPXE 1.0.0+ + diff --git a/sys-firmware/ipxe/ipxe-1.0.0_p20120905.ebuild b/sys-firmware/ipxe/ipxe-1.0.0_p20120905.ebuild new file mode 100644 index 000000000000..1dbb096aea9c --- /dev/null +++ b/sys-firmware/ipxe/ipxe-1.0.0_p20120905.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/ipxe/ipxe-1.0.0_p20120905.ebuild,v 1.1 2012/09/10 21:32:58 cardoe Exp $ + +EAPI=4 + +GIT_REV="e6427b7ee117ea4af0812bb13b57999bccd8e058" +GIT_SHORT="e6427b7" + +DESCRIPTION="Open source network boot (PXE) firmware" +HOMEPAGE="http://ipxe.org" +SRC_URI="https://git.ipxe.org/ipxe.git/snapshot/${GIT_REV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="iso +qemu undi usb vmware" + +DEPEND="sys-devel/make + dev-lang/perl + sys-libs/zlib + iso? ( sys-boot/syslinux )" +RDEPEND="" + +S="${WORKDIR}/ipxe-${GIT_SHORT}/src" + +src_configure() { + if use vmware; then + sed -i config/sideband.h \ + -e 's|//#define[[:space:]]VMWARE_SETTINGS|#define VMWARE_SETTINGS|' + sed -i config/console.h \ + -e 's|//#define[[:space:]]CONSOLE_VMWARE|#define CONSOLE_VMWARE|' + fi +} + +src_compile() { + if use qemu; then + emake bin/808610de.rom # pxe-e1000.rom + emake bin/80861209.rom # pxe-eepro100.rom + emake bin/10500940.rom # pxe-ne2k_pci.rom + emake bin/10222000.rom # pxe-pcnet.rom + emake bin/10ec8139.rom # pxe-rtl8139.rom + emake bin/1af41000.rom # pxe-virtio.rom + fi + + if use vmware; then + emake bin/8086100f.mrom # e1000 + emake bin/808610d3.mrom # e1000e + emake bin/10222000.mrom # vlance + emake bin/15ad07b0.rom # vmxnet3 + fi + + use iso && emake bin/ipxe.iso + use undi && emake bin/undionly.kpxe + use usb && emake bin/ipxe.usb +} + +src_install() { + insinto /usr/share/ipxe/ + + if use qemu || use vmware; then + doins bin/*.rom + fi + use vmware && doins bin/*.mrom + use iso && doins bin/*.iso + use undi && doins bin/*.kpxe + use usb && doins bin/*.usb +} diff --git a/sys-firmware/ipxe/metadata.xml b/sys-firmware/ipxe/metadata.xml new file mode 100644 index 000000000000..6f1c5abbc3f6 --- /dev/null +++ b/sys-firmware/ipxe/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>cardoe@gentoo.org</email> +<name>Doug Goldstein</name> +</maintainer> +<use> + <flag name='iso'>Build a bootable ISO for using PXE</flag> + <flag name='usb'>Build a bootable USB image for using PXE</flag> + <flag name='undi'>Build a Universal Network Device Interface driver + chainloading your existing PXE NIC into iPXE</flag> + <flag name='qemu'>Build the required PXE ROM images for <pkg>app-emulation/qemu</pkg> and <pkg>app-emulation/qemu-kvm</pkg></flag> + <flag name='vmware'>Build the PXE ROM images that VMWare uses</flag> +</use> +</pkgmetadata> |