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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 20 18:55:43 2012 UTC (7 years, 7 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Fix version

(Portage version: 2.1.11.5/cvs/Linux ia64)

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_p20120819.ebuild,v 1.1 2012/08/20 18:54:40 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=""
22
23 DEPEND="sys-fs/e2fsprogs
24 sys-apps/sparc-utils"
25 RDEPEND=""
26
27 ABI_ALLOW="sparc32"
28
29 S="${WORKDIR}/${PN}"
30
31 src_unpack() {
32 unpack ${A}
33 cd "${S}"
34
35 #Set the correct version
36 sed -i -e "s/1.4.14/1.4.14_git20120819_p1/g" Rules.make
37
38 # Fix build failure
39 sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9/g" Rules.make
40 }
41
42 src_compile() {
43 filter-flags "-fstack-protector"
44
45 make ${MAKEOPTS} CC="$(tc-getCC)" || die
46 }
47
48 src_install() {
49 make DESTDIR="${D}" install || die
50 dodoc first-isofs/README.SILO_ISOFS docs/README*
51
52 # Fix maketilo manpage
53 rm "${D}"/usr/share/man/man1/maketilo.1
54 dosym /usr/share/man/man1/tilo.1 /usr/share/man/man1/maketilo.1
55 }
56
57 pkg_postinst() {
58 mount-boot_pkg_postinst
59 ewarn "NOTE: If this is an upgrade to an existing SILO install,"
60 ewarn " you will need to re-run silo as the /boot/second.b"
61 ewarn " file has changed, else the system will fail to load"
62 ewarn " SILO at the next boot."
63 ewarn
64 }

  ViewVC Help
Powered by ViewVC 1.1.20