summaryrefslogtreecommitdiff
blob: 67eecf83d6ca504ff451aafe2dd006f897bb1949 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/silo/silo-1.3.0-r1.ebuild,v 1.1 2003/12/09 08:13:26 seemant Exp $

S=${WORKDIR}/${P}
DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc"
SRC_URI="http://www.sparc-boot.org/pub/silo/${P}.tar.gz"
HOMEPAGE="http://www.sparc-boot.org"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="-* sparc"

PROVIDE="virtual/bootloader"

DEPEND="sys-fs/e2fsprogs
	sys-apps/sparc-utils"

src_compile() {
	# http://www.gentoo.org/proj/en/hardened/etdyn-ssp.xml
	if has_version "sys-devel/hardened-gcc"
	then
		einfo "adding hardened-gcc exclusion flags for building boot loader"
		export CC="${CC} -yet_exec -yno_propolice"
		find ${WORKDIR} -name "Makefile" -o -name "Rules.make" \
			 -exec sed -i "s:CC=gcc:CC=gcc -yet_exec -yno_propolice:g" {} \;
	fi

	make ${MAKEOPTS} || die
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc COPYING ChangeLog first-isofs/README.SILO_ISOFS docs/README*
}