Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/grub-static/
Date: Thu, 10 Jan 2019 08:47:59
Message-Id: 1547109935.06b44e6ede596b21ac3a83091b8b5ecb17251ce3.zlogene@gentoo
1 commit: 06b44e6ede596b21ac3a83091b8b5ecb17251ce3
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 10 08:45:18 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 10 08:45:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06b44e6e
7
8 sys-boot/grub-static: remove last rited package
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11
12 sys-boot/grub-static/Manifest | 3 -
13 sys-boot/grub-static/grub-static-0.97-r10.ebuild | 177 ----------------------
14 sys-boot/grub-static/grub-static-0.97-r12.ebuild | 181 -----------------------
15 sys-boot/grub-static/grub-static-0.97-r9.ebuild | 173 ----------------------
16 sys-boot/grub-static/metadata.xml | 8 -
17 5 files changed, 542 deletions(-)
18
19 diff --git a/sys-boot/grub-static/Manifest b/sys-boot/grub-static/Manifest
20 deleted file mode 100644
21 index 0a661f9a9fc..00000000000
22 --- a/sys-boot/grub-static/Manifest
23 +++ /dev/null
24 @@ -1,3 +0,0 @@
25 -DIST grub-static-0.97-r10.tar.bz2 888963 BLAKE2B 1891685b312c129efb47fd78ffd2a433655225b8dcb8a60592faabbc5300ce6d56efea70272cf9a1e8cfaa70224d1a3a313d1c2e2296bfd43593a4a12aec541e SHA512 2a18405c9f7b0712dac2246213f723c1a2be6734bff133b7906e7c18e4370faf924f35d3b834d74761cf50b3ab59e969fbff010e13292618187c65a72aa45a87
26 -DIST grub-static-0.97-r12.tar.bz2 1171586 BLAKE2B 066cde81f4b1849467d83ec982745dc8449e38895edc0eee979d6ea782a802c2a2c6b2a4f03eb976c03ce3f6e3213d3605e9bb6c99f8479e59fafb1716cbd0c9 SHA512 0a4c0b3b556db366df70c7c51a1a26f614f949be4002d7f9a053b7261b80c2c49410e8fd04c7e3717ea560e7cbc6a692d859d07bdfe2099a78a33bce78ac5395
27 -DIST grub-static-0.97-r9.tar.bz2 937621 BLAKE2B a61fa8b41de4208cf30222fa742bb84a5f60bb924f5cf57f12ae9a382b1bf9e7feff740029ca3a08939d070275b4bb5389981c9a26f6decd18d4c7120f8d0f52 SHA512 a8b1f7cd416f2c41c88ba5c34889e7afe9615bf985e69b2d1d3ec2a20b7ceb13e53e8b3df91a5077bfa1a217f3274362033d72f9bafe3ad22be378f26728035c
28
29 diff --git a/sys-boot/grub-static/grub-static-0.97-r10.ebuild b/sys-boot/grub-static/grub-static-0.97-r10.ebuild
30 deleted file mode 100644
31 index 0eb33ec53e2..00000000000
32 --- a/sys-boot/grub-static/grub-static-0.97-r10.ebuild
33 +++ /dev/null
34 @@ -1,177 +0,0 @@
35 -# Copyright 1999-2018 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=0
39 -
40 -# XXX: we need to review menu.lst vs grub.conf handling. We've been converting
41 -# all systems to grub.conf (and symlinking menu.lst to grub.conf), but
42 -# we never updated any of the source code (it still all wants menu.lst),
43 -# and there is no indication that upstream is making the transition.
44 -
45 -inherit eutils mount-boot toolchain-funcs linux-info
46 -
47 -PATCHVER="1.9" # Not used, just for tracking with main grub
48 -
49 -DESCRIPTION="GNU GRUB Legacy boot loader (static build)"
50 -
51 -HOMEPAGE="https://www.gnu.org/software/grub/"
52 -SRC_URI="mirror://gentoo/${PF}.tar.bz2"
53 -LICENSE="GPL-2"
54 -SLOT="0"
55 -KEYWORDS="-* amd64 ~x86"
56 -IUSE=""
57 -DEPEND="!<sys-boot/grub-2"
58 -RDEPEND="${DEPEND}"
59 -
60 -# These are already stripped since we use a binpkg.
61 -QA_PRESTRIPPED="/sbin/grub /bin/mbchk"
62 -
63 -pkg_setup() {
64 - local arch="$(tc-arch)"
65 - case ${arch} in
66 - amd64)
67 - CONFIG_CHECK='~IA32_EMULATION'
68 - WARNING_IA32_EMULATION="You will NOT be able to run grub unless you have IA32_EMULATION set!"
69 - check_extra_config
70 - ;;
71 - esac
72 -}
73 -
74 -src_install() {
75 - cp -a "${WORKDIR}"/* "${D}"/
76 - if [[ -z "${I_KNOW_WHAT_I_AM_DOING}" ]]; then
77 - run_test_grub "${D}"/sbin/grub && einfo "New grub can run on your system, good!"
78 - fi
79 -}
80 -
81 -run_test_grub() {
82 - local grub="$1"
83 - local version="$(${grub} \
84 - --read-only --no-pager --no-floppy --no-curses \
85 - --no-config-file --batch --version)"
86 - local error="grub test-run failed"
87 - use amd64 && error="${error} Is IA32_EMULATION set?"
88 - [ "${version/${PV}}" != "${version}" ] || die "${error}"
89 - return 0
90 -}
91 -
92 -#
93 -# Below this point, everything is also used in grub-static!
94 -# Please keep in sync!
95 -#
96 -
97 -setup_boot_dir() {
98 - local boot_dir=$1
99 - local dir=${boot_dir}
100 -
101 - if [[ -z "${I_KNOW_WHAT_I_AM_DOING}" ]]; then
102 - run_test_grub /sbin/grub
103 - fi
104 -
105 - mkdir -p "${dir}"
106 - [[ ! -L ${dir}/boot ]] && ln -s . "${dir}/boot"
107 - dir="${dir}/grub"
108 - if [[ ! -e ${dir} ]] ; then
109 - mkdir "${dir}" || die "${dir} does not exist!"
110 - fi
111 -
112 - # change menu.lst to grub.conf
113 - if [[ ! -e ${dir}/grub.conf ]] && [[ -e ${dir}/menu.lst ]] ; then
114 - mv -f "${dir}"/menu.lst "${dir}"/grub.conf
115 - ewarn
116 - ewarn "*** IMPORTANT NOTE: menu.lst has been renamed to grub.conf"
117 - ewarn
118 - fi
119 -
120 - if [[ ! -e ${dir}/menu.lst ]]; then
121 - einfo "Linking from new grub.conf name to menu.lst"
122 - ln -snf grub.conf "${dir}"/menu.lst
123 - fi
124 -
125 - if [[ -e ${dir}/stage2 ]] ; then
126 - mv "${dir}"/stage2{,.old}
127 - ewarn "*** IMPORTANT NOTE: you must run grub and install"
128 - ewarn "the new version's stage1 to your MBR. Until you do,"
129 - ewarn "stage1 and stage2 will still be the old version, but"
130 - ewarn "later stages will be the new version, which could"
131 - ewarn "cause problems such as an unbootable system."
132 - ewarn "This means you must use either grub-install or perform"
133 - ewarn "root/setup manually! For more help, see the handbook:"
134 - ewarn "https://www.gentoo.org/doc/en/handbook/handbook-${ARCH}.xml?part=1&chap=10#grub-install-auto"
135 - ebeep
136 - fi
137 -
138 - einfo "Copying files from /lib/grub, /usr/lib/grub and /usr/share/grub to ${dir}"
139 - for x in \
140 - "${ROOT}"/lib*/grub/*/* \
141 - "${ROOT}"/usr/lib*/grub/*/* \
142 - "${ROOT}"/usr/share/grub/* ; do
143 - [[ -f ${x} ]] && cp -p "${x}" "${dir}"/
144 - done
145 -
146 - if [[ ! -e ${dir}/grub.conf ]] ; then
147 - s="${ROOT}/usr/share/doc/${PF}/grub.conf.gentoo"
148 - [[ -e "${s}" ]] && cat "${s}" >${dir}/grub.conf
149 - [[ -e "${s}.gz" ]] && zcat "${s}.gz" >${dir}/grub.conf
150 - [[ -e "${s}.bz2" ]] && bzcat "${s}.bz2" >${dir}/grub.conf
151 - fi
152 -
153 - # Per bug 218599, we support grub.conf.install for users that want to run a
154 - # specific set of Grub setup commands rather than the default ones.
155 - grub_config=${dir}/grub.conf.install
156 - [[ -e ${grub_config} ]] || grub_config=${dir}/grub.conf
157 - if [[ -e ${grub_config} ]] ; then
158 - local tmp="${TMPDIR}/${P}-setup_boot_dir-$$"
159 - egrep \
160 - -v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' \
161 - "${grub_config}" >"${tmp}"
162 - # Do NOT fail here, only warn.
163 - /sbin/grub --batch \
164 - --device-map="${dir}"/device.map \
165 - >/dev/null <"${tmp}"
166 - rc=$?
167 - [[ $rc -ne 0 ]] && ewarn "Grub failed to run!"
168 - fi
169 -
170 - # the grub default commands silently piss themselves if
171 - # the default file does not exist ahead of time
172 - if [[ ! -e ${dir}/default ]] ; then
173 - # This may fail, don't worry about it.
174 - grub-set-default --root-directory="${boot_dir}" default
175 - :
176 - fi
177 - einfo "Grub has been installed to ${boot_dir} successfully."
178 -}
179 -
180 -pkg_postinst() {
181 - mount-boot_pkg_postinst
182 -
183 - if [[ -n ${DONT_MOUNT_BOOT} ]]; then
184 - elog "WARNING: you have DONT_MOUNT_BOOT in effect, so you must apply"
185 - elog "the following instructions for your /boot!"
186 - elog "Neglecting to do so may cause your system to fail to boot!"
187 - elog
188 - else
189 - setup_boot_dir "${ROOT}"/boot
190 - # Trailing output because if this is run from pkg_postinst, it gets mixed into
191 - # the other output.
192 - einfo ""
193 - fi
194 - elog "To interactively install grub files to another device such as a USB"
195 - elog "stick, just run the following and specify the directory as prompted:"
196 - elog " emerge --config =${PF}"
197 - elog "Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell"
198 - elog "grub where to install in a non-interactive way."
199 -
200 -}
201 -
202 -pkg_config() {
203 - local dir
204 - if [ ! -d "${GRUB_ALT_INSTALLDIR}" ]; then
205 - einfo "Enter the directory where you want to setup grub:"
206 - read dir
207 - else
208 - dir="${GRUB_ALT_INSTALLDIR}"
209 - fi
210 - setup_boot_dir "${dir}"
211 -}
212
213 diff --git a/sys-boot/grub-static/grub-static-0.97-r12.ebuild b/sys-boot/grub-static/grub-static-0.97-r12.ebuild
214 deleted file mode 100644
215 index b824c17fb82..00000000000
216 --- a/sys-boot/grub-static/grub-static-0.97-r12.ebuild
217 +++ /dev/null
218 @@ -1,181 +0,0 @@
219 -# Copyright 1999-2018 Gentoo Foundation
220 -# Distributed under the terms of the GNU General Public License v2
221 -
222 -EAPI=0
223 -
224 -# XXX: we need to review menu.lst vs grub.conf handling. We've been converting
225 -# all systems to grub.conf (and symlinking menu.lst to grub.conf), but
226 -# we never updated any of the source code (it still all wants menu.lst),
227 -# and there is no indication that upstream is making the transition.
228 -
229 -inherit eutils mount-boot toolchain-funcs linux-info
230 -
231 -PATCHVER="1.14" # Not used, just for tracking with main grub
232 -
233 -DESCRIPTION="GNU GRUB Legacy boot loader (static build)"
234 -
235 -HOMEPAGE="https://www.gnu.org/software/grub/"
236 -SRC_URI="mirror://gentoo/${PF}.tar.bz2"
237 -
238 -LICENSE="GPL-2"
239 -SLOT="0"
240 -KEYWORDS="-* amd64 ~x86"
241 -IUSE=""
242 -
243 -DEPEND="!<sys-boot/grub-2"
244 -RDEPEND="${DEPEND}"
245 -
246 -S=${WORKDIR}
247 -
248 -pkg_setup() {
249 - case $(tc-arch) in
250 - amd64)
251 - CONFIG_CHECK='~IA32_EMULATION'
252 - WARNING_IA32_EMULATION="You will NOT be able to run grub unless you have IA32_EMULATION set!"
253 - check_extra_config
254 - ;;
255 - esac
256 -}
257 -
258 -src_install() {
259 - cp -a * "${D}"/
260 - # Make sure the docs get compressed
261 - dodoc usr/share/doc/${PF}/*
262 -
263 - if [[ -z "${I_KNOW_WHAT_I_AM_DOING}" ]]; then
264 - run_test_grub "${D}"/sbin/grub && einfo "New grub can run on your system, good!"
265 - fi
266 -}
267 -
268 -run_test_grub() {
269 - local grub="$1"
270 - local version="$(${grub} \
271 - --read-only --no-pager --no-floppy --no-curses \
272 - --no-config-file --batch --version)"
273 - local error="grub test-run failed"
274 - use amd64 && error="${error} Is IA32_EMULATION set?"
275 - [ "${version/${PV}}" != "${version}" ] || die "${error}"
276 - return 0
277 -}
278 -
279 -#
280 -# Below this point, everything is also used in grub-static!
281 -# Please keep in sync!
282 -#
283 -
284 -setup_boot_dir() {
285 - local boot_dir=$1
286 - local dir=${boot_dir}
287 -
288 - if [[ -z "${I_KNOW_WHAT_I_AM_DOING}" ]]; then
289 - run_test_grub /sbin/grub
290 - fi
291 -
292 - mkdir -p "${dir}"
293 - [[ ! -L ${dir}/boot ]] && ln -s . "${dir}/boot"
294 - dir="${dir}/grub"
295 - if [[ ! -e ${dir} ]] ; then
296 - mkdir "${dir}" || die
297 - fi
298 -
299 - # change menu.lst to grub.conf
300 - if [[ ! -e ${dir}/grub.conf ]] && [[ -e ${dir}/menu.lst ]] ; then
301 - mv -f "${dir}"/menu.lst "${dir}"/grub.conf
302 - ewarn
303 - ewarn "*** IMPORTANT NOTE: menu.lst has been renamed to grub.conf"
304 - ewarn
305 - fi
306 -
307 - if [[ ! -e ${dir}/menu.lst ]]; then
308 - einfo "Linking from new grub.conf name to menu.lst"
309 - ln -snf grub.conf "${dir}"/menu.lst
310 - fi
311 -
312 - if [[ -e ${dir}/stage2 ]] ; then
313 - mv "${dir}"/stage2{,.old}
314 - ewarn "*** IMPORTANT NOTE: you must run grub and install"
315 - ewarn "the new version's stage1 to your MBR. Until you do,"
316 - ewarn "stage1 and stage2 will still be the old version, but"
317 - ewarn "later stages will be the new version, which could"
318 - ewarn "cause problems such as an unbootable system."
319 - ewarn "This means you must use either grub-install or perform"
320 - ewarn "root/setup manually! For more help, see the handbook:"
321 - ewarn "https://www.gentoo.org/doc/en/handbook/handbook-${ARCH}.xml?part=1&chap=10#grub-install-auto"
322 - ebeep
323 - fi
324 -
325 - einfo "Copying files from /lib/grub, /usr/lib/grub and /usr/share/grub to ${dir}"
326 - for x in \
327 - "${ROOT}"/lib*/grub/*/* \
328 - "${ROOT}"/usr/lib*/grub/*/* \
329 - "${ROOT}"/usr/share/grub/* ; do
330 - [[ -f ${x} ]] && cp -p "${x}" "${dir}"/
331 - done
332 -
333 - if [[ ! -e ${dir}/grub.conf ]] ; then
334 - s="${ROOT}/usr/share/doc/${PF}/grub.conf.gentoo"
335 - [[ -e "${s}" ]] && cat "${s}" >${dir}/grub.conf
336 - [[ -e "${s}.gz" ]] && zcat "${s}.gz" >${dir}/grub.conf
337 - [[ -e "${s}.bz2" ]] && bzcat "${s}.bz2" >${dir}/grub.conf
338 - fi
339 -
340 - # Per bug 218599, we support grub.conf.install for users that want to run a
341 - # specific set of Grub setup commands rather than the default ones.
342 - grub_config=${dir}/grub.conf.install
343 - [[ -e ${grub_config} ]] || grub_config=${dir}/grub.conf
344 - if [[ -e ${grub_config} ]] ; then
345 - local tmp="${TMPDIR}/${P}-setup_boot_dir-$$"
346 - egrep \
347 - -v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' \
348 - "${grub_config}" >"${tmp}"
349 - # Do NOT fail here, only warn.
350 - /sbin/grub --batch \
351 - --device-map="${dir}"/device.map \
352 - >/dev/null <"${tmp}"
353 - rc=$?
354 - [[ $rc -ne 0 ]] && ewarn "Grub failed to run!"
355 - fi
356 -
357 - # the grub default commands silently piss themselves if
358 - # the default file does not exist ahead of time
359 - if [[ ! -e ${dir}/default ]] ; then
360 - # This may fail, don't worry about it.
361 - grub-set-default --root-directory="${boot_dir}" default
362 - fi
363 - einfo "Grub has been installed to ${boot_dir} successfully."
364 -}
365 -
366 -pkg_postinst() {
367 - mount-boot_mount_boot_partition
368 -
369 - if [[ -n ${DONT_MOUNT_BOOT} ]]; then
370 - elog "WARNING: you have DONT_MOUNT_BOOT in effect, so you must apply"
371 - elog "the following instructions for your /boot!"
372 - elog "Neglecting to do so may cause your system to fail to boot!"
373 - elog
374 - else
375 - setup_boot_dir "${ROOT}"/boot
376 - # Trailing output because if this is run from pkg_postinst, it gets mixed into
377 - # the other output.
378 - einfo ""
379 - fi
380 - elog "To interactively install grub files to another device such as a USB"
381 - elog "stick, just run the following and specify the directory as prompted:"
382 - elog " emerge --config =${PF}"
383 - elog "Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell"
384 - elog "grub where to install in a non-interactive way."
385 -
386 - # needs to be after we call setup_boot_dir
387 - mount-boot_pkg_postinst
388 -}
389 -
390 -pkg_config() {
391 - local dir
392 - if [ ! -d "${GRUB_ALT_INSTALLDIR}" ]; then
393 - einfo "Enter the directory where you want to setup grub:"
394 - read dir
395 - else
396 - dir="${GRUB_ALT_INSTALLDIR}"
397 - fi
398 - setup_boot_dir "${dir}"
399 -}
400
401 diff --git a/sys-boot/grub-static/grub-static-0.97-r9.ebuild b/sys-boot/grub-static/grub-static-0.97-r9.ebuild
402 deleted file mode 100644
403 index 47441893ef6..00000000000
404 --- a/sys-boot/grub-static/grub-static-0.97-r9.ebuild
405 +++ /dev/null
406 @@ -1,173 +0,0 @@
407 -# Copyright 1999-2018 Gentoo Foundation
408 -# Distributed under the terms of the GNU General Public License v2
409 -
410 -EAPI=0
411 -
412 -# XXX: we need to review menu.lst vs grub.conf handling. We've been converting
413 -# all systems to grub.conf (and symlinking menu.lst to grub.conf), but
414 -# we never updated any of the source code (it still all wants menu.lst),
415 -# and there is no indication that upstream is making the transition.
416 -
417 -inherit eutils mount-boot toolchain-funcs linux-info
418 -
419 -PATCHVER="1.9" # Not used, just for tracking with main grub
420 -
421 -DESCRIPTION="GNU GRUB Legacy boot loader (static build)"
422 -
423 -HOMEPAGE="https://www.gnu.org/software/grub/"
424 -SRC_URI="mirror://gentoo/${PF}.tar.bz2"
425 -LICENSE="GPL-2"
426 -SLOT="0"
427 -KEYWORDS="-* amd64 x86"
428 -IUSE=""
429 -DEPEND="!<sys-boot/grub-2"
430 -RDEPEND="${DEPEND}"
431 -
432 -# These are already stripped since we use a binpkg.
433 -QA_PRESTRIPPED="/sbin/grub /bin/mbchk"
434 -
435 -pkg_setup() {
436 - local arch="$(tc-arch)"
437 - case ${arch} in
438 - amd64)
439 - CONFIG_CHECK='~IA32_EMULATION'
440 - WARNING_IA32_EMULATION="You will NOT be able to run grub unless you have IA32_EMULATION set!"
441 - check_extra_config
442 - ;;
443 - esac
444 -}
445 -
446 -src_install() {
447 - cp -a "${WORKDIR}"/* "${D}"/
448 - run_test_grub "${D}"/sbin/grub && einfo "New grub can run on your system, good!"
449 -}
450 -
451 -run_test_grub() {
452 - local grub="$1"
453 - local version="$(${grub} \
454 - --read-only --no-pager --no-floppy --no-curses \
455 - --no-config-file --batch --version)"
456 - local error="grub test-run failed"
457 - use amd64 && error="${error} Is IA32_EMULATION set?"
458 - [ "${version/${PV}}" != "${version}" ] || die "${error}"
459 - return 0
460 -}
461 -
462 -#
463 -# Below this point, everything is also used in grub-static!
464 -# Please keep in sync!
465 -#
466 -
467 -setup_boot_dir() {
468 - local boot_dir=$1
469 - local dir=${boot_dir}
470 -
471 - run_test_grub /sbin/grub
472 -
473 - mkdir -p "${dir}"
474 - [[ ! -L ${dir}/boot ]] && ln -s . "${dir}/boot"
475 - dir="${dir}/grub"
476 - if [[ ! -e ${dir} ]] ; then
477 - mkdir "${dir}" || die "${dir} does not exist!"
478 - fi
479 -
480 - # change menu.lst to grub.conf
481 - if [[ ! -e ${dir}/grub.conf ]] && [[ -e ${dir}/menu.lst ]] ; then
482 - mv -f "${dir}"/menu.lst "${dir}"/grub.conf
483 - ewarn
484 - ewarn "*** IMPORTANT NOTE: menu.lst has been renamed to grub.conf"
485 - ewarn
486 - fi
487 -
488 - if [[ ! -e ${dir}/menu.lst ]]; then
489 - einfo "Linking from new grub.conf name to menu.lst"
490 - ln -snf grub.conf "${dir}"/menu.lst
491 - fi
492 -
493 - if [[ -e ${dir}/stage2 ]] ; then
494 - mv "${dir}"/stage2{,.old}
495 - ewarn "*** IMPORTANT NOTE: you must run grub and install"
496 - ewarn "the new version's stage1 to your MBR. Until you do,"
497 - ewarn "stage1 and stage2 will still be the old version, but"
498 - ewarn "later stages will be the new version, which could"
499 - ewarn "cause problems such as an unbootable system."
500 - ewarn "This means you must use either grub-install or perform"
501 - ewarn "root/setup manually! For more help, see the handbook:"
502 - ewarn "https://www.gentoo.org/doc/en/handbook/handbook-${ARCH}.xml?part=1&chap=10#grub-install-auto"
503 - ebeep
504 - fi
505 -
506 - einfo "Copying files from /lib/grub, /usr/lib/grub and /usr/share/grub to ${dir}"
507 - for x in \
508 - "${ROOT}"/lib*/grub/*/* \
509 - "${ROOT}"/usr/lib*/grub/*/* \
510 - "${ROOT}"/usr/share/grub/* ; do
511 - [[ -f ${x} ]] && cp -p "${x}" "${dir}"/
512 - done
513 -
514 - if [[ ! -e ${dir}/grub.conf ]] ; then
515 - s="${ROOT}/usr/share/doc/${PF}/grub.conf.gentoo"
516 - [[ -e "${s}" ]] && cat "${s}" >${dir}/grub.conf
517 - [[ -e "${s}.gz" ]] && zcat "${s}.gz" >${dir}/grub.conf
518 - [[ -e "${s}.bz2" ]] && bzcat "${s}.bz2" >${dir}/grub.conf
519 - fi
520 -
521 - # Per bug 218599, we support grub.conf.install for users that want to run a
522 - # specific set of Grub setup commands rather than the default ones.
523 - grub_config=${dir}/grub.conf.install
524 - [[ -e ${grub_config} ]] || grub_config=${dir}/grub.conf
525 - if [[ -e ${grub_config} ]] ; then
526 - local tmp="${TMPDIR}/${P}-setup_boot_dir-$$"
527 - egrep \
528 - -v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' \
529 - "${grub_config}" >"${tmp}"
530 - # Do NOT fail here, only warn.
531 - /sbin/grub --batch \
532 - --device-map="${dir}"/device.map \
533 - >/dev/null <"${tmp}"
534 - rc=$?
535 - [[ $rc -ne 0 ]] && ewarn "Grub failed to run!"
536 - fi
537 -
538 - # the grub default commands silently piss themselves if
539 - # the default file does not exist ahead of time
540 - if [[ ! -e ${dir}/default ]] ; then
541 - # This may fail, don't worry about it.
542 - grub-set-default --root-directory="${boot_dir}" default
543 - :
544 - fi
545 - einfo "Grub has been installed to ${boot_dir} successfully."
546 -}
547 -
548 -pkg_postinst() {
549 - mount-boot_pkg_postinst
550 -
551 - if [[ -n ${DONT_MOUNT_BOOT} ]]; then
552 - elog "WARNING: you have DONT_MOUNT_BOOT in effect, so you must apply"
553 - elog "the following instructions for your /boot!"
554 - elog "Neglecting to do so may cause your system to fail to boot!"
555 - elog
556 - else
557 - setup_boot_dir "${ROOT}"/boot
558 - # Trailing output because if this is run from pkg_postinst, it gets mixed into
559 - # the other output.
560 - einfo ""
561 - fi
562 - elog "To interactively install grub files to another device such as a USB"
563 - elog "stick, just run the following and specify the directory as prompted:"
564 - elog " emerge --config =${PF}"
565 - elog "Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell"
566 - elog "grub where to install in a non-interactive way."
567 -
568 -}
569 -
570 -pkg_config() {
571 - local dir
572 - if [ ! -d "${GRUB_ALT_INSTALLDIR}" ]; then
573 - einfo "Enter the directory where you want to setup grub:"
574 - read dir
575 - else
576 - dir="${GRUB_ALT_INSTALLDIR}"
577 - fi
578 - setup_boot_dir "${dir}"
579 -}
580
581 diff --git a/sys-boot/grub-static/metadata.xml b/sys-boot/grub-static/metadata.xml
582 deleted file mode 100644
583 index 0c723031cff..00000000000
584 --- a/sys-boot/grub-static/metadata.xml
585 +++ /dev/null
586 @@ -1,8 +0,0 @@
587 -<?xml version="1.0" encoding="UTF-8"?>
588 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
589 -<pkgmetadata>
590 -<maintainer type="project">
591 - <email>amd64@g.o</email>
592 - <name>AMD64 Project</name>
593 -</maintainer>
594 -</pkgmetadata>