/[gentoo-x86]/sys-freebsd/boot0/boot0-7.2.ebuild
Gentoo

Contents of /sys-freebsd/boot0/boot0-7.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri May 22 11:08:14 2009 UTC (5 years, 2 months ago) by aballier
Branch: MAIN
bump to 7.2
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-7.1.ebuild,v 1.1 2009/01/22 20:59:52 the_paya Exp $
4
5 inherit bsdmk freebsd
6
7 DESCRIPTION="FreeBSD's bootloader"
8 SLOT="0"
9 KEYWORDS="~sparc-fbsd ~x86-fbsd"
10
11 IUSE=""
12
13 SRC_URI="mirror://gentoo/${SYS}.tar.bz2"
14
15 RDEPEND=""
16 DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
17 =sys-freebsd/freebsd-lib-${RV}*"
18
19 S="${WORKDIR}/sys/boot"
20
21 PATCHES=( "${FILESDIR}/boot0-7.0-gentoo.patch" )
22
23 src_unpack() {
24 freebsd_src_unpack
25
26 grep -lr --null -- -ffreestanding "${S}" | xargs -0 sed -i -e \
27 "s:-ffreestanding:-ffreestanding $(test-flags -fno-stack-protector -fno-stack-protector-all):g" || die
28 sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \
29 -i "${S}"/i386/boot2/Makefile \
30 -i "${S}"/i386/gptboot/Makefile || die
31 }
32
33 src_install() {
34 dodir /boot/defaults
35
36 mkinstall FILESDIR=/boot || die "mkinstall failed"
37 }

  ViewVC Help
Powered by ViewVC 1.1.20