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

Contents of /sys-boot/silo/silo-1.4.14_p20100228.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu May 24 05:12:20 2012 UTC (7 years, 10 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
Inherit eutils for epatch.

(Portage version: 2.2.0_alpha107_p3/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.14_p20100228.ebuild,v 1.5 2011/04/02 12:02:49 armin76 Exp $
4
5 inherit mount-boot flag-o-matic toolchain-funcs eutils
6
7 DEB_PL="1"
8 MY_PV="${PV##*_p}"
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://git.kernel.org/?p=linux/kernel/git/davem/silo.git;a=summary"
17
18 SLOT="0"
19 LICENSE="GPL-2"
20 KEYWORDS="-* sparc"
21 IUSE="hardened"
22
23 DEPEND="sys-fs/e2fsprogs
24 sys-apps/sparc-utils"
25
26 ABI_ALLOW="sparc32"
27
28 S="${WORKDIR}/${PN}"
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33
34 #Set the correct version
35 sed -i -e "s/1.4.14/1.4.14_git2010228_p1/g" Rules.make
36
37 # Fix build failure
38 sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE/g" Rules.make
39
40 # Fix bug #350677
41 epatch "${FILESDIR}"/silo-e2fsprogs-1.4.14.patch
42 }
43
44 src_compile() {
45 filter-flags "-fstack-protector"
46
47 if use hardened
48 then
49 make ${MAKEOPTS} CC="$(tc-getCC) -fno-stack-protector -fno-pic"
50 else
51 make ${MAKEOPTS} CC="$(tc-getCC)" || die
52 fi
53 }
54
55 src_install() {
56 make DESTDIR="${D}" install || die
57 dodoc first-isofs/README.SILO_ISOFS docs/README*
58
59 # Fix maketilo manpage
60 rm "${D}"/usr/share/man/man1/maketilo.1
61 dosym /usr/share/man/man1/tilo.1 /usr/share/man/man1/maketilo.1
62 }
63
64 pkg_postinst() {
65 mount-boot_pkg_postinst
66 ewarn "NOTE: If this is an upgrade to an existing SILO install,"
67 ewarn " you will need to re-run silo as the /boot/second.b"
68 ewarn " file has changed, else the system will fail to load"
69 ewarn " SILO at the next boot."
70 }

  ViewVC Help
Powered by ViewVC 1.1.20