From: | "Alexis Ballier (aballier)" <aballier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-freebsd/boot0: ChangeLog boot0-9.2_rc3.ebuild |
Date: | Mon, 26 Aug 2013 20:41:19 |
Message-Id: | 20130826204111.398422004C@flycatcher.gentoo.org |
1 | aballier 13/08/26 20:41:11 |
2 | |
3 | Modified: ChangeLog |
4 | Added: boot0-9.2_rc3.ebuild |
5 | Log: |
6 | bump to rc3 |
7 | |
8 | (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
9 | |
10 | Revision Changes Path |
11 | 1.47 sys-freebsd/boot0/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/ChangeLog?rev=1.47&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/ChangeLog?rev=1.47&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/ChangeLog?r1=1.46&r2=1.47 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v |
20 | retrieving revision 1.46 |
21 | retrieving revision 1.47 |
22 | diff -u -r1.46 -r1.47 |
23 | --- ChangeLog 22 Aug 2013 15:42:53 -0000 1.46 |
24 | +++ ChangeLog 26 Aug 2013 20:41:11 -0000 1.47 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for sys-freebsd/boot0 |
27 | # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v 1.46 2013/08/22 15:42:53 aballier Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v 1.47 2013/08/26 20:41:11 aballier Exp $ |
30 | + |
31 | +*boot0-9.2_rc3 (26 Aug 2013) |
32 | + |
33 | + 26 Aug 2013; Alexis Ballier <aballier@g.o> +boot0-9.2_rc3.ebuild: |
34 | + bump to rc3 |
35 | |
36 | *boot0-9.2_rc2 (22 Aug 2013) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 sys-freebsd/boot0/boot0-9.2_rc3.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/boot0-9.2_rc3.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/boot0-9.2_rc3.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: boot0-9.2_rc3.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2013 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-9.2_rc3.ebuild,v 1.1 2013/08/26 20:41:11 aballier Exp $ |
51 | |
52 | EAPI=2 |
53 | |
54 | inherit bsdmk freebsd flag-o-matic toolchain-funcs |
55 | |
56 | DESCRIPTION="FreeBSD's bootloader" |
57 | SLOT="0" |
58 | |
59 | IUSE="bzip2 ieee1394 tftp zfs" |
60 | |
61 | if [[ ${PV} != *9999* ]]; then |
62 | KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
63 | SRC_URI="mirror://gentoo/${SYS}.tar.bz2 |
64 | mirror://gentoo/${LIB}.tar.bz2 |
65 | mirror://gentoo/${CONTRIB}.tar.bz2" |
66 | fi |
67 | |
68 | RDEPEND="" |
69 | DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}* |
70 | =sys-freebsd/freebsd-lib-${RV}*" |
71 | |
72 | S="${WORKDIR}/sys/boot" |
73 | |
74 | PATCHES=( "${FILESDIR}/${PN}-9.2-gcc46.patch" ) |
75 | |
76 | boot0_use_enable() { |
77 | use ${1} && mymakeopts="${mymakeopts} LOADER_${2}_SUPPORT=\"yes\"" |
78 | } |
79 | |
80 | pkg_setup() { |
81 | boot0_use_enable ieee1394 FIREWIRE |
82 | boot0_use_enable zfs ZFS |
83 | boot0_use_enable tftp TFTP |
84 | boot0_use_enable bzip2 BZIP2 |
85 | } |
86 | |
87 | src_prepare() { |
88 | sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \ |
89 | -i "${S}"/i386/boot2/Makefile \ |
90 | -i "${S}"/i386/gptboot/Makefile \ |
91 | -i "${S}"/i386/gptzfsboot/Makefile \ |
92 | -i "${S}"/i386/zfsboot/Makefile || die |
93 | } |
94 | |
95 | src_compile() { |
96 | strip-flags |
97 | append-flags "-fno-strict-aliasing" |
98 | |
99 | cd "${WORKDIR}/lib/libstand" || die |
100 | freebsd_src_compile |
101 | |
102 | cd "${S}" |
103 | CFLAGS="${CFLAGS} -I${WORKDIR}/lib/libstand" |
104 | LDFLAGS="${LDFLAGS} -L${WORKDIR}/lib/libstand" |
105 | export LIBSTAND="${WORKDIR}/lib/libstand/libstand.a" |
106 | NOFLAGSTRIP="yes" freebsd_src_compile |
107 | } |
108 | |
109 | src_install() { |
110 | dodir /boot/defaults |
111 | mkinstall FILESDIR=/boot || die "mkinstall failed" |
112 | |
113 | cd "${WORKDIR}/sys/$(tc-arch-kernel)/conf" || die |
114 | insinto /boot |
115 | newins GENERIC.hints device.hints |
116 | |
117 | echo 'CONFIG_PROTECT="/boot/device.hints"' > "${T}"/50boot0 |
118 | doenvd "${T}"/50boot0 |
119 | } |