blob: dd7e9992263f911515acc742c2debbc16af945eb (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/silo/silo-1.4.14.ebuild,v 1.2 2008/10/15 22:10:36 bluebird Exp $
inherit mount-boot flag-o-matic toolchain-funcs
DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc"
SRC_URI="mirror://ubuntu/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz"
# the sourceforge project is dead. there is no homepage other than gitweb :(
HOMEPAGE="http://git.kernel.org/?p=linux/kernel/git/bcollins/silo.git;a=summary"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="-* sparc"
IUSE="hardened"
PROVIDE="virtual/bootloader"
DEPEND="sys-fs/e2fsprogs
sys-apps/sparc-utils"
ABI_ALLOW="sparc32"
src_unpack() {
unpack ${A}
cd "${S}"
# Sanitized headers bug #162537
epatch "${FILESDIR}"/sanitized-linuxheaders.patch
epatch "${FILESDIR}"/silo-1.4.x-noglibc_time.patch
# make it compile with gcc 4.3
epatch "${FILESDIR}"/gcc-4.3-compile.patch
# don't strip binaries, let portage handle it!
epatch "${FILESDIR}"/qa-no-strip.patch
}
src_compile() {
filter-flags "-fstack-protector"
if use hardened
then
make ${MAKEOPTS} CC="$(tc-getCC) -fno-stack-protector -fno-pic"
else
make ${MAKEOPTS} CC="$(tc-getCC)" || die
fi
}
src_install() {
make DESTDIR="${D}" install || die
dodoc first-isofs/README.SILO_ISOFS docs/README*
# Fix maketilo manpage
rm "${D}"/usr/share/man/man1/maketilo.1
dosym /usr/share/man/man1/tilo.1 /usr/share/man/man1/maketilo.1
}
pkg_postinst() {
ewarn "NOTE: If this is an upgrade to an existing SILO install,"
ewarn " you will need to re-run silo as the /boot/second.b"
ewarn " file has changed, else the system will fail to load"
ewarn " SILO at the next boot."
}
|