blob: 9ae3c90e7402e48ae889c57aa818204c27b783aa (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-6.2_rc1.ebuild,v 1.2 2006/11/19 13:35:02 drizzt Exp $
inherit bsdmk freebsd
DESCRIPTION="FreeBSD's bootloader"
SLOT="0"
KEYWORDS="~sparc-fbsd ~x86-fbsd"
IUSE=""
SRC_URI="mirror://gentoo/${SYS}.tar.bz2"
RDEPEND=""
DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
=sys-freebsd/freebsd-lib-${RV}*"
S="${WORKDIR}/sys/boot"
PATCHES="${FILESDIR}/boot0-6.0-gentoo.patch
${FILESDIR}/freebsd-sources-6.2-sparc64.patch"
src_unpack() {
freebsd_src_unpack
grep -lr --null -- -ffreestanding "${S}" | xargs -0 sed -i -e \
"s:-ffreestanding:-ffreestanding $(test-flags -fno-stack-protector -fno-stack-protector-all):g" || die
sed -i -e '/-fomit-frame-pointer/d' "${S}"/i386/boot2/Makefile || die
}
src_install() {
dodir /boot/defaults
mkinstall FILESDIR=/boot || die "mkinstall failed"
}
|