add refit

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2723 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2010-11-12 16:17:21 +00:00
parent d0f822a05b
commit e916ce11e7
2 changed files with 79 additions and 0 deletions

3
sys-boot/refit/Manifest Normal file
View File

@ -0,0 +1,3 @@
DIST refit_0.14-2.debian.tar.gz 42302 RMD160 615b9f961c69bbfca72d8a8d4a05315600de7727 SHA1 c994c168b3e8614419a0375de116530f9f84a8b1 SHA256 5418b9d6645453ac53e831c59a255ecfe85a09038e0d5d08fc1a55cf6fb087a3
DIST refit_0.14.orig.tar.gz 625164 RMD160 cb0122e58d2f7ecfacebe4147aab98288475716a SHA1 79b0f2473d6628404cb51bdaf49a4205c409c31b SHA256 0101ac403c3a8c90813df20726c9e76a58515ca7d1a35a7b2ab42eaf28e25e1e
EBUILD refit-0.14.2.ebuild 2080 RMD160 f55685086d8210854c9573bc1eda02744bd1aa40 SHA1 0f2bd66825862e548e4ececfbea7c8c05e518dfc SHA256 e185521deb09ff4c7cc41bb5723a20b5eb0fc806fb288a63e36b7e54d83ee4b8

View File

@ -0,0 +1,76 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/gnu-efi/gnu-efi-3.0i.ebuild,v 1.3 2010/08/28 22:43:29 vapier Exp $
EAPI=2
inherit eutils versionator
MY_P="${PN}_${PV}"
DESCRIPTION="graphical boot menu for ia32 and x64 EFI systems"
HOMEPAGE="http://refit.sourceforge.net/"
# tarballs use debian versioning format
MY_PN="refit"
MY_PVR=$(replace_version_separator 2 '-' )
MY_PV=${MY_PVR/-*/}
S="${WORKDIR}/${MY_PN}-${MY_PV}"
SRC_URI_BASE="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}/"
SRC_URI="${SRC_URI_BASE}${MY_PN}_${MY_PV}.orig.tar.gz
${SRC_URI_BASE}${MY_PN}_${MY_PVR}.debian.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ia64 ~x86"
IUSE=""
DEPEND=">=sys-boot/gnu-efi-0.3a
sys-boot/syslinux"
src_prepare() {
for f in $(<"${WORKDIR}"/debian/patches/series) ; do
EPATCH_OPTS="-p1" epatch "${WORKDIR}"/debian/patches/$f
done
sed -e "s!\$(LIBEG)!!" -i refit/Makefile
}
src_compile() {
local iarch
case $ARCH in
ia64) iarch=ia64 ;;
x86) iarch=ia32 ;;
amd64) iarch=x86_64 ;;
*) die "unknown architecture: $ARCH" ;;
esac
# Generate include/syslinux_mbr.h
chmod +x "${WORKDIR}"/debian/mbr/mkmbrhdr.py
"${WORKDIR}"/debian/mbr/mkmbrhdr.py /usr/share/syslinux/mbr.bin > include/syslinux_mbr.h
# Move the AA font in place
cp -f "${WORKDIR}"/debian/font/egemb_font.h libeg/
# Build EFI applications
emake -C libeg SRCDIR=${S}/libeg ARCH=${iarch} || die
emake -C refit SRCDIR=${S}/refit ARCH=${iarch} DEBVER="${iarch} (Gentoo ${PVR})" || die
emake -C gptsync -f Makefile.gnuefi SRCDIR=${S}/gptsync ARCH=${iarch} || die
# Build the gptsync command-line utility
mkdir gptsync/buildux
emake -C gptsync/buildux -f ../Makefile.unix SRCDIR=${S}/gptsync || die
}
src_install() {
dosbin gptsync/buildux/gptsync
dosbin gptsync/buildux/showpart
insinto /usr/$(get_libdir)/${PN}
doins refit/refit.efi
insinto /usr/$(get_libdir)/${PN}/${PN}
doins -r icons
doins images/vollabel/refit.vollabel
doins refit.conf
}