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

Contents of /sys-boot/silo/silo-1.4.13a_pre20070930_p2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Mar 21 19:21:21 2010 UTC (9 years, 11 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, remove old
(Portage version: 2.1.7.17/cvs/Linux ia64)

1 # Copyright 1999-2008 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.13a_pre20070930_p2.ebuild,v 1.2 2008/06/12 20:33:51 bluebird Exp $
4
5 inherit mount-boot flag-o-matic toolchain-funcs
6
7 DEB_PL="${P##*_p}"
8 MY_PV="${PV##*_pre}"
9 MY_GIT="git${MY_PV%%_*}"
10 MY_PV="${PV%%_*}"
11 MY_P="${PN}_${MY_PV}+${MY_GIT}"
12
13 DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc"
14 SRC_URI="mirror://debian/pool/main/s/${PN}/${MY_P}.orig.tar.gz
15 mirror://debian/pool/main/s/${PN}/${MY_P}-${DEB_PL}.diff.gz"
16 HOMEPAGE="http://www.sparc-boot.org"
17
18 SLOT="0"
19 LICENSE="GPL-2"
20 KEYWORDS="-* ~sparc"
21 IUSE="hardened"
22
23 PROVIDE="virtual/bootloader"
24
25 DEPEND="sys-fs/e2fsprogs
26 sys-apps/sparc-utils"
27
28 ABI_ALLOW="sparc32"
29
30 S="${WORKDIR}/${PN}"
31
32 src_unpack() {
33 unpack ${A}
34
35 epatch ${MY_P}-${DEB_PL}.diff
36
37 cd "${S}"
38 epatch "${WORKDIR}"/${MY_P/_/-}/debian/patches/*.patch
39 epatch "${FILESDIR}"/sanitized-linuxheaders.patch
40
41 # make it compile with gcc 4.3
42 epatch "${FILESDIR}"/gcc-4.3-compile.patch
43
44 #Set the correct version
45 sed -i -e "s/1.4.13/1.4.13_git20070830_p2/g" Rules.make
46 }
47
48 src_compile() {
49 filter-flags "-fstack-protector"
50
51 if use hardened
52 then
53 make ${MAKEOPTS} CC="$(tc-getCC) -fno-stack-protector -fno-pic"
54 else
55 make ${MAKEOPTS} CC="$(tc-getCC)" || die
56 fi
57 }
58
59 src_install() {
60 make DESTDIR="${D}" install || die
61 dodoc first-isofs/README.SILO_ISOFS docs/README*
62
63 # Fix maketilo manpage
64 rm "${D}"/usr/share/man/man1/maketilo.1
65 dosym /usr/share/man/man1/tilo.1 /usr/share/man/man1/maketilo.1
66 }
67
68 pkg_postinst() {
69 ewarn "NOTE: If this is an upgrade to an existing SILO install,"
70 ewarn " you will need to re-run silo as the /boot/second.b"
71 ewarn " file has changed, else the system will fail to load"
72 ewarn " SILO at the next boot."
73 }

  ViewVC Help
Powered by ViewVC 1.1.20