/[gentoo-x86]/sys-boot/silo/silo-1.4.9.ebuild
Gentoo

Contents of /sys-boot/silo/silo-1.4.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Jun 16 20:33:06 2006 UTC (13 years, 8 months ago) by gustavoz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Major cleanup & revbump
(Portage version: 2.1)
 (Signed Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-boot/silo/silo-1.4.9.ebuild,v 1.5 2006/01/02 17:54:07 gustavoz Exp $
4
5 inherit mount-boot flag-o-matic toolchain-funcs
6
7 DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc"
8 SRC_URI="http://www.sparc-boot.org/pub/silo/${P}.tar.gz"
9 HOMEPAGE="http://www.sparc-boot.org"
10
11 SLOT="0"
12 LICENSE="GPL-2"
13 KEYWORDS="-* sparc"
14 IUSE="hardened"
15
16 PROVIDE="virtual/bootloader"
17
18 DEPEND="sys-fs/e2fsprogs
19 sys-apps/sparc-utils"
20
21 ABI_ALLOW="sparc32"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26
27 if has_version '>=sys-kernel/linux-headers-2.6' ; then
28 epatch ${FILESDIR}/${P}-sparc_cpu.patch
29 fi
30
31 epatch ${FILESDIR}/silo-1.4.x-noglibc_time.patch
32 }
33
34 src_compile() {
35 filter-flags "-fstack-protector"
36
37 if use hardened
38 then
39 make ${MAKEOPTS} CC="$(tc-getCC) -fno-stack-protector -fno-pic"
40 else
41 make ${MAKEOPTS} CC="$(tc-getCC)" || die
42 fi
43 }
44
45 src_install() {
46 make DESTDIR=${D} install || die
47 dodoc COPYING ChangeLog first-isofs/README.SILO_ISOFS docs/README*
48
49 # Fix maketilo manpage
50 rm ${D}/usr/share/man/man1/maketilo.1
51 dosym /usr/share/man/man1/tilo.1 /usr/share/man/man1/maketilo.1
52 }
53
54 pkg_postinst() {
55 ewarn "NOTE: If this is an upgrade to an existing SILO install,"
56 ewarn " you will need to re-run silo as the /boot/second.b"
57 ewarn " file has changed, else the system will fail to load"
58 ewarn " SILO at the next boot."
59 }

  ViewVC Help
Powered by ViewVC 1.1.20