1 |
jer 10/11/05 05:48:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lilo-23.1.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.1.9.24/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.60 sys-boot/lilo/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/lilo/ChangeLog?rev=1.60&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/lilo/ChangeLog?rev=1.60&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/lilo/ChangeLog?r1=1.59&r2=1.60 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-boot/lilo/ChangeLog,v |
20 |
retrieving revision 1.59 |
21 |
retrieving revision 1.60 |
22 |
diff -u -r1.59 -r1.60 |
23 |
--- ChangeLog 20 Jul 2010 00:09:24 -0000 1.59 |
24 |
+++ ChangeLog 5 Nov 2010 05:48:55 -0000 1.60 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-boot/lilo |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/lilo/ChangeLog,v 1.59 2010/07/20 00:09:24 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/lilo/ChangeLog,v 1.60 2010/11/05 05:48:55 jer Exp $ |
30 |
+ |
31 |
+*lilo-23.1 (05 Nov 2010) |
32 |
+ |
33 |
+ 05 Nov 2010; Jeroen Roovers <jer@g.o> +lilo-23.1.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
20 Jul 2010; Jeroen Roovers <jer@g.o> lilo-23.0-r1.ebuild: |
37 |
Remove useless doman call. |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-boot/lilo/lilo-23.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/lilo/lilo-23.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/lilo/lilo-23.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: lilo-23.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sys-boot/lilo/lilo-23.1.ebuild,v 1.1 2010/11/05 05:48:55 jer Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit eutils flag-o-matic toolchain-funcs |
55 |
|
56 |
DOLILO_V="0.5" |
57 |
IUSE="static minimal pxeserial device-mapper" |
58 |
|
59 |
DESCRIPTION="Standard Linux boot loader" |
60 |
HOMEPAGE="https://alioth.debian.org/projects/lilo/" |
61 |
|
62 |
DOLILO_TAR="dolilo-${DOLILO_V}.tar.bz2" |
63 |
SRC_URI=" |
64 |
https://alioth.debian.org/frs/download.php/3315/${P}.tar.gz |
65 |
mirror://gentoo/${DOLILO_TAR} |
66 |
" |
67 |
|
68 |
SLOT="0" |
69 |
LICENSE="BSD GPL-2" |
70 |
KEYWORDS="-* ~amd64 ~x86" |
71 |
|
72 |
DEPEND=">=sys-devel/bin86-0.15.5" |
73 |
RDEPEND="device-mapper? ( || ( |
74 |
>=sys-fs/lvm2-2.02.45 |
75 |
>=sys-fs/device-mapper-1.02.12 ) )" |
76 |
|
77 |
PROVIDE="virtual/bootloader" |
78 |
|
79 |
S="${WORKDIR}/${PN}-23.0" |
80 |
|
81 |
src_prepare() { |
82 |
# this patch is needed when booting PXE and the device you're using |
83 |
# emulates vga console via serial console. |
84 |
# IE.. B.B.o.o.o.o.t.t.i.i.n.n.g.g....l.l.i.i.n.n.u.u.x.x and stair stepping. |
85 |
use pxeserial && epatch "${FILESDIR}/${PN}-22.8-novga.patch" |
86 |
|
87 |
# Do not strip and have parallel make |
88 |
sed -i Makefile src/Makefile \ |
89 |
-e '/strip/d;s|^ make| $(MAKE)|g' \ |
90 |
|| die "sed strip failed" |
91 |
} |
92 |
|
93 |
src_compile() { |
94 |
# lilo needs this. bug #140209 |
95 |
export LC_ALL=C |
96 |
|
97 |
# hardened automatic PIC plus PIE building should be suppressed |
98 |
# because of assembler instructions that cannot be compiled PIC |
99 |
HARDENED_CFLAGS="`test-flags-CC -fno-pic -nopie`" |
100 |
|
101 |
# we explicitly prevent the custom CFLAGS for stability reasons |
102 |
if use static; then |
103 |
emake CC="$(tc-getCC) ${LDFLAGS} ${HARDENED_CFLAGS}" alles || die |
104 |
else |
105 |
emake CC="$(tc-getCC) ${LDFLAGS} ${HARDENED_CFLAGS}" all || die |
106 |
fi |
107 |
} |
108 |
|
109 |
src_install() { |
110 |
keepdir /boot |
111 |
emake DESTDIR="${D}" install || die |
112 |
|
113 |
if use !minimal; then |
114 |
into / |
115 |
dosbin "${WORKDIR}"/dolilo/dolilo || die |
116 |
|
117 |
into /usr |
118 |
dosbin keytab-lilo.pl || die |
119 |
|
120 |
insinto /etc |
121 |
newins "${FILESDIR}"/lilo.conf lilo.conf.example || die |
122 |
|
123 |
newconfd "${WORKDIR}"/dolilo/dolilo.conf.d dolilo.example || die |
124 |
|
125 |
dodoc CHANGELOG* readme/README.* readme/INCOMPAT README |
126 |
docinto samples ; dodoc sample/* |
127 |
fi |
128 |
} |
129 |
|
130 |
# Check whether LILO is installed |
131 |
# This function is from /usr/sbin/mkboot from debianutils, with copyright: |
132 |
# |
133 |
# Debian GNU/Linux |
134 |
# Copyright 1996-1997 Guy Maor <maor@××××××.org> |
135 |
# |
136 |
# Modified for Gentoo for use with the lilo ebuild by: |
137 |
# Martin Schlemmer <azarah@g.o> (16 Mar 2003) |
138 |
# |
139 |
lilocheck() { |
140 |
local bootpart= |
141 |
local rootpart="$(mount | grep -v "tmpfs" | grep -v "rootfs" | grep "on / " | cut -f1 -d " ")" |
142 |
|
143 |
echo |
144 |
einfon "Checking for LILO ..." |
145 |
|
146 |
if [ "$(whoami)" != "root" ] |
147 |
then |
148 |
echo; echo |
149 |
eerror "Only root can check for LILO!" |
150 |
return 1 |
151 |
fi |
152 |
|
153 |
if [ -z "${rootpart}" ] |
154 |
then |
155 |
echo; echo |
156 |
eerror "Could not determine root partition!" |
157 |
return 1 |
158 |
fi |
159 |
|
160 |
if [ ! -f /etc/lilo.conf -o ! -x /sbin/lilo ] |
161 |
then |
162 |
echo " No" |
163 |
return 1 |
164 |
fi |
165 |
|
166 |
bootpart="$(sed -n "s:^boot[ ]*=[ ]*\(.*\)[ ]*:\1:p" /etc/lilo.conf)" |
167 |
|
168 |
if [ -z "${bootpart}" ] |
169 |
then |
170 |
# lilo defaults to current root when 'boot=' is not present |
171 |
bootpart="${rootpart}" |
172 |
fi |
173 |
|
174 |
if ! dd if=${bootpart} ibs=16 count=1 2>&- | grep -q 'LILO' |
175 |
then |
176 |
echo; echo |
177 |
ewarn "Yes, but I couldn't find a LILO signature on ${bootpart}" |
178 |
ewarn "Check your /etc/lilo.conf, or run /sbin/lilo by hand." |
179 |
return 1 |
180 |
fi |
181 |
|
182 |
echo " Yes, on ${bootpart}" |
183 |
|
184 |
return 0 |
185 |
} |
186 |
|
187 |
pkg_postinst() { |
188 |
if [ ! -e "${ROOT}/boot/boot.b" -a ! -L "${ROOT}/boot/boot.b" ] |
189 |
then |
190 |
[ -f "${ROOT}/boot/boot-menu.b" ] && \ |
191 |
ln -snf boot-menu.b "${ROOT}/boot/boot.b" |
192 |
fi |
193 |
|
194 |
if [ "${ROOT}" = "/" ] && use !minimal; |
195 |
then |
196 |
if lilocheck |
197 |
then |
198 |
einfo "Running DOLILO to complete the install ..." |
199 |
# do not redirect to /dev/null because it may display some input |
200 |
# prompt |
201 |
/sbin/dolilo |
202 |
if [ "$?" -ne 0 ] |
203 |
then |
204 |
echo |
205 |
ewarn "Running /sbin/dolilo failed! Please check what the problem is" |
206 |
ewarn "before your next reboot." |
207 |
|
208 |
ebeep 5 |
209 |
epause 5 |
210 |
fi |
211 |
fi |
212 |
echo |
213 |
fi |
214 |
if use !minimal; then |
215 |
echo |
216 |
einfo "Issue 'dolilo' instead of 'lilo' to have a friendly wrapper that" |
217 |
einfo "handles mounting and unmounting /boot for you. It can do more then" |
218 |
einfo "that when asked, edit /etc/conf.d/dolilo to harness it's full potential." |
219 |
ebeep 5 |
220 |
epause 3 |
221 |
echo |
222 |
fi |
223 |
} |