summaryrefslogtreecommitdiff
blob: 087bf2f7f9b18f391a6d583140b7a6a7116e4af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/efibootmgr/efibootmgr-0.4.2.ebuild,v 1.5 2004/07/01 21:45:43 eradicator Exp $

inherit eutils

DESCRIPTION="Interact with the EFI Boot Manager on IA-64 Systems"
HOMEPAGE="http://developer.intel.com/technology/efi"

# This is efibootmgr, a Linux user-space application to modify the
# Intel Extensible Firmware Interface (EFI) Boot Manager. This
# application can create and destroy boot entries, change the boot
# order, change the next running boot option, and more.
#
# Note: efibootmgr requires that the kernel module efivars be loaded
# prior to use.  `modprobe efivars` should do the trick.

SRC_URI="http://domsch.com/linux/ia64/${PN}/${P}.tar.gz"
KEYWORDS="ia64"
SLOT="0"
LICENSE="GPL-2"
IUSE=""

DEPEND="virtual/libc"	# don't think there's anything else
RDEPEND="virtual/libc"

src_unpack() {
	unpack ${A} && cd ${S} || die "failed to unpack"
	epatch ${FILESDIR}/efibootmgr-0.4.1-makefile.patch || die "epatch failed"
}

src_compile() {
	emake -j1 || die "emake failed"
}

src_install() {
	mkdir -p ${D}/usr/sbin
	install -m755 src/efibootmgr/efibootmgr ${D}/usr/sbin
	doman src/man/man8/efibootmgr.8
	dodoc AUTHORS COPYING README doc/ChangeLog doc/TODO
}