delete old packages
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
# ChangeLog for sys-boot/egrub
|
||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
14 Nov 2010; Mario Fetka <mario.fetka@gmail.com> egrub-0.97.ebuild,
|
||||
-files/grub-0.97-egrub-gentoo-1.patch,
|
||||
+files/grub-0.97-grub-set-default-1.patch, egrub-1.98.ebuild:
|
||||
correct small typos
|
||||
|
||||
*egrub-0.97 (13 Nov 2010)
|
||||
|
||||
13 Nov 2010; Mario Fetka <mario.fetka@gmail.com> +egrub-0.97.ebuild,
|
||||
+files/grub-0.97-egrub-gentoo-1.patch, egrub-1.98.ebuild,
|
||||
+files/grub.conf.gentoo:
|
||||
add legacy grub with efi patches (grub-fedora)
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> grub-efi-1.98.ebuild:
|
||||
add proper depndencies
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> +metadata.xml:
|
||||
initial commit based on sys-boot/grub ebuild
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
AUX grub-0.97-grub-set-default-1.patch 1110 RMD160 f2ae90047e1e87519ede9a1f1347cee39333d827 SHA1 2f93976a0f622541ab2bd682cde92ee14363d264 SHA256 d54660722874c6064e3c20be861591fb9baf8187ad7256f741cee05bf7b24cdf
|
||||
AUX grub-1.96-genkernel.patch 634 RMD160 bc1fdaa51e3f0e3b777a303e0f1c76987c7e69e5 SHA1 e79384a3ac32bfd74c884ead8133b1691a743316 SHA256 8ee327465d9b6d704a78b0c7b31cfdee7c6e7e9f9897e8d0a86198430f0c6ea0
|
||||
AUX grub-1.98-efi_std_dir-1.patch 1257 RMD160 46f3fff434fee54f05adbad09a2bdfcc73320b5d SHA1 f45fd2f7d2f2c25e922b35cee3d06b7d59f07dcd SHA256 c348128612cc9d39be80a3f4fa4663fa1ed8dd27672494f3c9fcaabc045500c9
|
||||
AUX grub.conf.gentoo 627 RMD160 d90fb4373bad476f98ec9c5065d6cdfd9e3b706f SHA1 004f2fc04605ec9190de0a87e7df8bbc33daff89 SHA256 914b15af252210a32776196437cd8013e10e57d5780e66877ef3fe9a2b4b9776
|
||||
DIST egrub-0.97-patches-1.0.tar.bz2 257780 RMD160 c5a13239d0c8d828a8281a41ceda348989a103a7 SHA1 778a2f303131d4dcb041b095aac66175a3e6df5f SHA256 266a633035aba8461d31b5b20b8fa1b07d7fc774119fad1102bb232e710bbcb8
|
||||
DIST grub-0.97.tar.gz 971783 RMD160 7fb5674edf0c950bd38e94f85ff1e2909aa741f0 SHA1 2580626c4579bd99336d3af4482c346c95dac4fb SHA256 4e1d15d12dbd3e9208111d6b806ad5a9857ca8850c47877d36575b904559260b
|
||||
DIST grub-1.98.tar.gz 2449386 RMD160 197fb8d7c673bd67ae81eda53a2baa2968cc1e69 SHA1 e83a2c438f4773a2e272c225983c0145e1ffd641 SHA256 bef2c1892e052967b65aab6aa62ac702c0e50ef8848506eacf3c0b2f5007c614
|
||||
DIST splash.xpm.gz 33856 RMD160 2fead61f91c368429e80936248bb02af2bdf15ff SHA1 98e679f9698be43426f971f89a088c053e8c804a SHA256 b95600f777331b0dd31d51c68f60f0e846e4c8b628857a41165f4e6b30e6acaf
|
||||
EBUILD egrub-0.97.ebuild 7438 RMD160 a42f904df92733b1ff2882fbabb643bb5d8536fd SHA1 b8b8758eb75943ad677206800d4614e7d48ebe78 SHA256 2f619fe05e1f1212c6cec323ae8b6d9d26499d3ab95da98168f2f85c31b6d3f8
|
||||
EBUILD egrub-1.98.ebuild 3078 RMD160 c014b653e89c536b66940932b6acfce189e630a7 SHA1 8f4d7c2df08ec73e2b4e5fb4d17f17744f605039 SHA256 5cd8780926e98778e8b81ca27ab72c2d6e725087c27235f9d262de67570b22c9
|
||||
MISC ChangeLog 761 RMD160 606582559d9f84157075030288d5e4687dcd5d8f SHA1 e3d3d386cdb3a7e6c95ca4242b0890e3e64bb5fe SHA256 37021fb3990187e5a3f70b8d47dd254e37c3b4431347bc582179309112f8645e
|
||||
MISC metadata.xml 262 RMD160 afabce9377772aefb54102e9ef237de6bb1561f5 SHA1 c38f9b99d8a84beb40c114283d8d7ddd4ac43d9e SHA256 35a9c56d9c8418806062854a360c27690d25159524df71f28bbd4d644e8706f3
|
||||
@@ -1,239 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r10.ebuild,v 1.6 2010/09/02 21:19:37 robbat2 Exp $
|
||||
|
||||
# XXX: we need to review menu.lst vs grub.conf handling. We've been converting
|
||||
# all systems to grub.conf (and symlinking menu.lst to grub.conf), but
|
||||
# we never updated any of the source code (it still all wants menu.lst),
|
||||
# and there is no indication that upstream is making the transition.
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit mount-efi eutils flag-o-matic toolchain-funcs autotools linux-info pax-utils
|
||||
|
||||
PATCHVER="1.0" # Should match the revision ideally
|
||||
DESCRIPTION="GNU GRUB Legacy boot loader EFI Edition"
|
||||
HOMEPAGE="http://www.gnu.org/software/grub/"
|
||||
SRC_URI="mirror://gentoo/grub-${PV}.tar.gz
|
||||
ftp://alpha.gnu.org/gnu/${PN}/grub-${PV}.tar.gz
|
||||
mirror://gentoo/splash.xpm.gz
|
||||
mirror://gentoo/${P}-patches-${PATCHVER}.tar.bz2
|
||||
http://ftp.disconnected-by-peer.at/efi/${P}-patches-${PATCHVER}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="custom-cflags"
|
||||
|
||||
DEPEND="sys-boot/gnu-efi
|
||||
!sys-boot/grub"
|
||||
RDEPEND="sys-boot/efibootmgr
|
||||
sys-fs/dosfstools"
|
||||
PROVIDE="virtual/bootloader"
|
||||
|
||||
S="${WORKDIR}"/grub-${PV}
|
||||
|
||||
#pkg_setup() {
|
||||
# local arch="$(tc-arch)"
|
||||
# case ${arch} in
|
||||
# amd64) CONFIG_CHECK='~IA32_EMULATION' check_extra_config ;;
|
||||
# esac
|
||||
#}
|
||||
|
||||
src_prepare() {
|
||||
# patch breaks booting for some people #111885
|
||||
# rm "${WORKDIR}"/patch/400_*reiser4*
|
||||
|
||||
if [[ -n ${PATCHVER} ]] ; then
|
||||
EPATCH_SUFFIX="patch"
|
||||
EPATCH_FORCE="yes" epatch "${WORKDIR}"/patch
|
||||
fi
|
||||
|
||||
sed -e "s/^gnuefi_path=.*$/gnuefi_path=\/usr\/$(get_libdir)/g" \
|
||||
-e "s/^LIBGNUEFI=.*$/LIBGNUEFI=\/usr\/$(get_libdir)\/libgnuefi.a/g" \
|
||||
-i "${S}"/configure.in || die "failed to hack gnu-efi path"
|
||||
|
||||
# rename grub tools to not interfer with grub
|
||||
epatch "${FILESDIR}"/grub-0.97-grub-set-default-1.patch
|
||||
|
||||
# Grub will not handle a kernel larger than EXTENDED_MEMSIZE Mb as
|
||||
# discovered in bug 160801. We can change this, however, using larger values
|
||||
# for this variable means that Grub needs more memory to run and boot. For a
|
||||
# kernel of size N, Grub needs (N+1)*2. Advanced users should set a custom
|
||||
# value in make.conf, it is possible to make kernels ~16Mb in size, but it
|
||||
# needs the kitchen sink built-in.
|
||||
local t="custom"
|
||||
if [[ -z ${GRUB_MAX_KERNEL_SIZE} ]] ; then
|
||||
case $(tc-arch) in
|
||||
amd64) GRUB_MAX_KERNEL_SIZE=9 ;;
|
||||
x86) GRUB_MAX_KERNEL_SIZE=5 ;;
|
||||
esac
|
||||
t="default"
|
||||
fi
|
||||
einfo "Grub will support the ${t} maximum kernel size of ${GRUB_MAX_KERNEL_SIZE} Mb (GRUB_MAX_KERNEL_SIZE)"
|
||||
|
||||
sed -i \
|
||||
-e "/^#define.*EXTENDED_MEMSIZE/s,3,${GRUB_MAX_KERNEL_SIZE},g" \
|
||||
"${S}"/grub/asmstub.c \
|
||||
|| die "Failed to hack memory size"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
filter-flags -fPIE #168834
|
||||
|
||||
unset BLOCK_SIZE #73499
|
||||
|
||||
### i686-specific code in the boot loader is a bad idea; disabling to ensure
|
||||
### at least some compatibility if the hard drive is moved to an older or
|
||||
### incompatible system.
|
||||
|
||||
# grub-0.95 added -fno-stack-protector detection, to disable ssp for stage2,
|
||||
# but the objcopy's (faulty) test fails if -fstack-protector is default.
|
||||
# create a cache telling configure that objcopy is ok, and add -C to econf
|
||||
# to make use of the cache.
|
||||
#
|
||||
# CFLAGS has to be undefined running econf, else -fno-stack-protector detection fails.
|
||||
# STAGE2_CFLAGS is not allowed to be used on emake command-line, it overwrites
|
||||
# -fno-stack-protector detected by configure, removed from netboot's emake.
|
||||
use custom-cflags || unset CFLAGS
|
||||
|
||||
export grub_cv_prog_objcopy_absolute=yes #79734
|
||||
|
||||
# Now build the regular grub
|
||||
# Note that FFS and UFS2 support are broken for now - stage1_5 files too big
|
||||
econf \
|
||||
--libdir=/lib \
|
||||
--datadir=/usr/lib/grub \
|
||||
--exec-prefix=/ \
|
||||
--disable-auto-linux-mem-opt \
|
||||
--with-platform=efi \
|
||||
--without-curses \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "making regular stuff"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# non-default block size also give false pass/fails.
|
||||
unset BLOCK_SIZE
|
||||
make check || die "make check failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
# bug 330745
|
||||
pax-mark -m "${D}"/sbin/grub
|
||||
|
||||
# dont install not needed files
|
||||
rm -rf "${D}"/usr/lib
|
||||
rm -rf "${D}"/usr/share/man/man1
|
||||
rm "${D}"/usr/share/man/man8/grub-install.8
|
||||
|
||||
dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
|
||||
newdoc docs/menu.lst grub.conf.sample
|
||||
dodoc "${FILESDIR}"/grub.conf.gentoo
|
||||
prepalldocs
|
||||
|
||||
insinto /usr/share/grub
|
||||
doins "${DISTDIR}"/splash.xpm.gz
|
||||
doins efi/grub.efi
|
||||
}
|
||||
|
||||
setup_efi_dir() {
|
||||
local boot_dir=$1
|
||||
local dir=${boot_dir}
|
||||
|
||||
mkdir -p "${dir}"
|
||||
# fatxx and links ?
|
||||
#[[ ! -L ${dir}/boot ]] && ln -s . "${dir}/boot"
|
||||
dir="${dir}/grub"
|
||||
if [[ ! -e ${dir} ]] ; then
|
||||
mkdir "${dir}" || die "${dir} does not exist!"
|
||||
fi
|
||||
|
||||
# change menu.lst to grub.conf
|
||||
if [[ ! -e ${dir}/grub.conf ]] && [[ -e ${dir}/menu.lst ]] ; then
|
||||
mv -f "${dir}"/menu.lst "${dir}"/grub.conf
|
||||
ewarn
|
||||
ewarn "*** IMPORTANT NOTE: menu.lst has been renamed to grub.conf"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
# fatxx and links ?
|
||||
#if [[ ! -e ${dir}/menu.lst ]]; then
|
||||
# einfo "Linking from new grub.conf name to menu.lst"
|
||||
# ln -snf grub.conf "${dir}"/menu.lst
|
||||
#fi
|
||||
|
||||
#einfo "Copying files from /lib/grub, /usr/lib/grub and /usr/share/grub to ${dir}"
|
||||
einfo "Copying files from /usr/share/grub to ${dir}"
|
||||
for x in \
|
||||
"${ROOT}"/usr/share/grub/* ; do
|
||||
[[ -f ${x} ]] && cp -p "${x}" "${dir}"/
|
||||
done
|
||||
# "${ROOT}"/lib*/grub/*/* \
|
||||
# "${ROOT}"/usr/lib*/grub/*/* \
|
||||
|
||||
if [[ ! -e ${dir}/grub.conf ]] ; then
|
||||
s="${ROOT}/usr/share/doc/${PF}/grub.conf.gentoo"
|
||||
[[ -e "${s}" ]] && cat "${s}" >${dir}/grub.conf
|
||||
[[ -e "${s}.gz" ]] && zcat "${s}.gz" >${dir}/grub.conf
|
||||
[[ -e "${s}.bz2" ]] && bzcat "${s}.bz2" >${dir}/grub.conf
|
||||
fi
|
||||
|
||||
# Per bug 218599, we support grub.conf.install for users that want to run a
|
||||
# specific set of Grub setup commands rather than the default ones.
|
||||
grub_config=${dir}/grub.conf.install
|
||||
[[ -e ${grub_config} ]] || grub_config=${dir}/grub.conf
|
||||
if [[ -e ${grub_config} ]] ; then
|
||||
egrep \
|
||||
-v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' \
|
||||
"${grub_config}" | \
|
||||
/sbin/grub --batch \
|
||||
--device-map="${dir}"/device.map \
|
||||
> /dev/null
|
||||
fi
|
||||
|
||||
# the grub default commands silently piss themselves if
|
||||
# the default file does not exist ahead of time
|
||||
if [[ ! -e ${dir}/default ]] ; then
|
||||
grub-set-default --root-directory="${boot_dir}" default
|
||||
fi
|
||||
einfo "Grub has been installed to ${boot_dir} successfully."
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n ${DONT_MOUNT_EFI} ]]; then
|
||||
elog "WARNING: you have DONT_MOUNT_EFI in effect, so you must apply"
|
||||
elog "the following instructions for your /boot/efi!"
|
||||
elog "Neglecting to do so may cause your system to fail to boot!"
|
||||
elog
|
||||
else
|
||||
setup_efi_dir "${ROOT}"/boot/efi/EFI
|
||||
# Trailing output because if this is run from pkg_postinst, it gets mixed into
|
||||
# the other output.
|
||||
einfo ""
|
||||
fi
|
||||
elog "To interactively install grub files to another device such as a USB"
|
||||
elog "stick, just run the following and specify the directory as prompted:"
|
||||
elog " emerge --config =${PF}"
|
||||
elog "Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell"
|
||||
elog "grub where to install in a non-interactive way."
|
||||
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local dir
|
||||
if [ ! -d "${GRUB_ALT_INSTALLDIR}" ]; then
|
||||
einfo "Enter the directory where you want to setup grub:"
|
||||
read dir
|
||||
else
|
||||
dir="${GRUB_ALT_INSTALLDIR}"/EFI
|
||||
fi
|
||||
setup_efi_dir "${dir}"
|
||||
}
|
||||
@@ -1,116 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-1.98.ebuild,v 1.5 2010/07/24 08:45:56 vapier Exp $
|
||||
|
||||
# XXX: need to implement a grub.conf migration in pkg_postinst before we ~arch
|
||||
|
||||
inherit mount-efi eutils flag-o-matic toolchain-funcs
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub"
|
||||
inherit autotools bzr
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="ftp://alpha.gnu.org/gnu/${PN}/grub-${PV}.tar.gz
|
||||
mirror://gentoo/grub-${PV}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="GNU GRUB 2 boot loader"
|
||||
HOMEPAGE="http://www.gnu.org/software/grub/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
use multislot && SLOT="2" || SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="custom-cflags debug truetype multislot"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r5
|
||||
dev-libs/lzo
|
||||
truetype? ( media-libs/freetype media-fonts/unifont )
|
||||
sys-boot/efibootmgr
|
||||
sys-fs/dosfstools"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/ruby
|
||||
!sys-boot/grub"
|
||||
PROVIDE="virtual/bootloader"
|
||||
|
||||
S="${WORKDIR}"/grub-${PV}
|
||||
|
||||
export STRIP_MASK="*/grub/*/*.mod"
|
||||
QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap bin/grub-script-check bin/grub-fstest"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
bzr_src_unpack
|
||||
else
|
||||
unpack ${A}
|
||||
fi
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/grub-1.96-genkernel.patch #256335
|
||||
epatch "${FILESDIR}"/grub-1.98-efi_std_dir-1.patch
|
||||
epatch_user
|
||||
|
||||
# autogen.sh does more than just run autotools
|
||||
# need to eautomake due to weirdness #296013
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
sed -i \
|
||||
-e '/^\(auto\|ac\)/s:^:e:' \
|
||||
-e "s:^eautomake:`which automake`:" \
|
||||
autogen.sh
|
||||
(. ./autogen.sh) || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS
|
||||
|
||||
econf \
|
||||
--disable-werror \
|
||||
--sbindir=/sbin \
|
||||
--bindir=/bin \
|
||||
--libdir=/$(get_libdir) \
|
||||
--with-platform=efi \
|
||||
$(use_enable truetype grub-mkfont) \
|
||||
$(use_enable debug mm-debug) \
|
||||
$(use_enable debug grub-emu-usb) \
|
||||
$(use_enable debug grub-fstest)
|
||||
emake -j1 || die "making regular stuff"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
|
||||
cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib
|
||||
GRUB_DISTRIBUTOR="Gentoo"
|
||||
EOF
|
||||
|
||||
if use multislot ; then
|
||||
sed -i "s:grub-install:grub2-install:" "${D}"/sbin/grub-install || die
|
||||
mv "${D}"/sbin/grub{,2}-install || die
|
||||
mv "${D}"/sbin/grub{,2}-set-default || die
|
||||
mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die
|
||||
mv "${D}"/usr/share/info/grub{,2}.info || die
|
||||
fi
|
||||
}
|
||||
|
||||
setup_efi_dir() {
|
||||
local boot_dir=$1
|
||||
local dir=${boot_dir}/grub
|
||||
|
||||
if [[ ! -e ${dir}/grub.cfg ]] ; then
|
||||
einfo "Running: grub-mkconfig -o '${dir}/grub.cfg'"
|
||||
grub-mkconfig -o "${dir}/grub.cfg"
|
||||
fi
|
||||
|
||||
#local install=grub-install
|
||||
#use multislot && install="grub2-install --grub-setup=/bin/true"
|
||||
#einfo "Running: ${install} "
|
||||
#${install}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multislot ; then
|
||||
elog "You have installed grub2 with USE=multislot, so to coexist"
|
||||
elog "with egrub1, the egrub2 install binary is named grub2-install."
|
||||
fi
|
||||
setup_efi_dir "${ROOT}"boot/efi/EFI
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
diff -uNr grub-0.97.orig//configure.in grub-0.97/configure.in
|
||||
--- grub-0.97.orig//configure.in 2010-11-13 15:40:39.000000000 +0100
|
||||
+++ grub-0.97/configure.in 2010-11-13 16:17:10.000000000 +0100
|
||||
@@ -755,5 +755,5 @@
|
||||
docs/Makefile lib/Makefile util/Makefile \
|
||||
grub/Makefile netboot/Makefile util/grub-crypt \
|
||||
util/grub-image util/grub-install util/grub-md5-crypt \
|
||||
- util/grub-terminfo])
|
||||
+ util/grub-terminfo util/grub-set-default ])
|
||||
AC_OUTPUT
|
||||
diff -uNr grub-0.97.orig//util/Makefile.am grub-0.97/util/Makefile.am
|
||||
--- grub-0.97.orig//util/Makefile.am 2010-11-13 15:40:39.000000000 +0100
|
||||
+++ grub-0.97/util/Makefile.am 2010-11-13 16:16:30.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
if !PLATFORM_EFI
|
||||
|
||||
bin_PROGRAMS = mbchk
|
||||
-sbin_SCRIPTS = grub-install grub-md5-crypt grub-terminfo grub-crypt
|
||||
+sbin_SCRIPTS = grub-install grub-md5-crypt grub-terminfo grub-crypt grub-set-default
|
||||
noinst_SCRIPTS = grub-image mkbimage
|
||||
|
||||
EXTRA_DIST = mkbimage
|
||||
@@ -14,6 +14,6 @@
|
||||
|
||||
else
|
||||
|
||||
-sbin_SCRIPTS = grub-md5-crypt grub-terminfo grub-crypt
|
||||
+sbin_SCRIPTS = grub-md5-crypt grub-terminfo grub-crypt grub-set-default
|
||||
|
||||
endif
|
||||
@@ -1,19 +0,0 @@
|
||||
--- util/grub.d/10_linux.in
|
||||
+++ util/grub.d/10_linux.in
|
||||
@@ -61,7 +61,7 @@
|
||||
EOF
|
||||
}
|
||||
|
||||
-list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
|
||||
+list=`for i in /boot/kernel-* /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
|
||||
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
|
||||
done`
|
||||
|
||||
@@ -78,6 +78,7 @@
|
||||
initrd=
|
||||
for i in "initrd.img-${version}" "initrd-${version}.img" \
|
||||
"initrd-${version}" "initrd.img-${alt_version}" \
|
||||
+ "initramfs-genkernel-${version}" "initramfs-genkernel-${alt_version}" \
|
||||
"initrd-${alt_version}.img" "initrd-${alt_version}"; do
|
||||
if test -e "${dirname}/${i}" ; then
|
||||
initrd="$i"
|
||||
@@ -1,37 +0,0 @@
|
||||
Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
|
||||
Date: 2010-11-12
|
||||
Initial Package Version: 1.98
|
||||
Origin: me
|
||||
Upstream Status: gentoo specific
|
||||
Description: place the grub.efi in the right dir
|
||||
|
||||
diff -Naur grub-1.98.orig/util/i386/efi/grub-install.in grub-1.98/util/i386/efi/grub-install.in
|
||||
--- grub-1.98.orig/util/i386/efi/grub-install.in 2010-11-12 20:47:04.000000000 +0000
|
||||
+++ grub-1.98/util/i386/efi/grub-install.in 2010-11-12 20:50:47.000000000 +0000
|
||||
@@ -37,7 +37,7 @@
|
||||
grub_probe=${sbindir}/`echo grub-probe | sed ${transform}`
|
||||
grub_editenv=${bindir}/`echo grub-editenv | sed ${transform}`
|
||||
rootdir=
|
||||
-grub_prefix=`echo /boot/grub | sed ${transform}`
|
||||
+grub_prefix=`echo /boot/efi/EFI/grub | sed ${transform}`
|
||||
modules=
|
||||
|
||||
no_floppy=
|
||||
@@ -63,7 +63,7 @@
|
||||
--no-floppy do not probe any floppy drive
|
||||
--recheck probe a device map even if it already exists
|
||||
|
||||
-grub-install copies GRUB images into the DIR/boot directory specified by
|
||||
+grub-install copies GRUB images into the DIR/boot/efi/EFI directory specified by
|
||||
--root-directory.
|
||||
|
||||
Report bugs to <bug-grub@gnu.org>.
|
||||
@@ -119,7 +119,7 @@
|
||||
;;
|
||||
*)
|
||||
# Use /boot/grub by default.
|
||||
- bootdir=${rootdir}/boot
|
||||
+ bootdir=${rootdir}/boot/efi/EFI
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
|
||||
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
|
||||
# If you are not using Genkernel and you need help creating this file, you
|
||||
# should consult the handbook. Alternatively, consult the grub.conf.sample that
|
||||
# is included with the Grub documentation.
|
||||
|
||||
default 0
|
||||
timeout 30
|
||||
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
|
||||
|
||||
#title Gentoo Linux 2.6.24-r5
|
||||
#root (hd0,0)
|
||||
#kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3
|
||||
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5
|
||||
|
||||
# vim:ft=conf:
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>base-system</herd>
|
||||
<use>
|
||||
<flag name='multislot'>Allow grub1 and grub2 to be installed simultaneously</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,116 +0,0 @@
|
||||
# ChangeLog for sys-boot/elilo
|
||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-boot/elilo/ChangeLog,v 1.25 2010/07/24 15:39:17 armin76 Exp $
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> elilo-3.12.ebuild:
|
||||
install into right dir
|
||||
|
||||
24 Jul 2010; Raúl Porcel <armin76@gentoo.org> -elilo-3.8.ebuild,
|
||||
elilo-3.12.ebuild:
|
||||
ia64 stable
|
||||
|
||||
*elilo-3.12 (10 Jan 2010)
|
||||
|
||||
10 Jan 2010; Raúl Porcel <armin76@gentoo.org> elilo-3.10.ebuild,
|
||||
+elilo-3.12.ebuild:
|
||||
ia64 stable, version bump
|
||||
|
||||
*elilo-3.10 (02 Jun 2009)
|
||||
|
||||
02 Jun 2009; Raúl Porcel <armin76@gentoo.org> +elilo-3.10.ebuild:
|
||||
Version bump
|
||||
|
||||
06 May 2009; Markus Meier <maekke@gentoo.org> elilo-3.8.ebuild:
|
||||
add ~amd64, bug #208639
|
||||
|
||||
14 Feb 2008; Christian Faulhammer <opfer@gentoo.org> elilo-3.8.ebuild:
|
||||
keyworded ~arch for x86, bug 208639
|
||||
|
||||
*elilo-3.8 (08 Feb 2008)
|
||||
|
||||
08 Feb 2008; Raúl Porcel <armin76@gentoo.org>
|
||||
-files/elilo-3.3a-devscheme.patch, -files/elilo.8-3.4,
|
||||
-files/eliloalt.8-3.4, -files/elilo-3.4-makefile.patch,
|
||||
-files/elilo-3.4-proc-sigsetjmp.patch, -elilo-3.4-r3.ebuild,
|
||||
-elilo-3.6.ebuild, +elilo-3.8.ebuild:
|
||||
Version bump wrt #208639, thanks to plasmaroo for testing
|
||||
|
||||
22 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
|
||||
Redigest for Manifest2
|
||||
|
||||
19 Oct 2006; Aron Griffis <agriffis@gentoo.org>
|
||||
elilo-3.6_p20060314.ebuild:
|
||||
Mark 3.6_p20060314 stable on ia64
|
||||
|
||||
*elilo-3.6_p20060314 (16 Mar 2006)
|
||||
|
||||
16 Mar 2006; Aron Griffis <agriffis@gentoo.org>
|
||||
+files/elilo.sh-chkspace.patch, +files/elilo.sh-vmm.patch,
|
||||
+elilo-3.6_p20060314.ebuild:
|
||||
Bump to post-3.6 nightly snapshot with Xen fixes
|
||||
|
||||
10 Mar 2006; Aron Griffis <agriffis@gentoo.org> elilo-3.4-r3.ebuild,
|
||||
elilo-3.6.ebuild:
|
||||
Add elilo-3.4.gz to SRC_URI to fix script installation
|
||||
|
||||
23 Feb 2006; Aron Griffis <agriffis@gentoo.org> +metadata.xml,
|
||||
elilo-3.4-r3.ebuild, elilo-3.6.ebuild:
|
||||
Move elilo script to mirrors
|
||||
|
||||
14 Feb 2006; Aron Griffis <agriffis@gentoo.org> elilo-3.6.ebuild:
|
||||
Mark stable immediately since older versions can't boot with initramfs
|
||||
|
||||
*elilo-3.6 (14 Feb 2006)
|
||||
|
||||
14 Feb 2006; Aron Griffis <agriffis@gentoo.org> +elilo-3.6.ebuild:
|
||||
Bump to 3.6 (from 3.4-r3) (fixes initramfs corruption on ia64)
|
||||
|
||||
03 Jan 2006; Tim Yamin <plasmaroo@gentoo.org> files/elilo-3.4:
|
||||
Always define $loop in the elilo script to prevent it getting imported from
|
||||
the environment.
|
||||
|
||||
03 Oct 2005; Aron Griffis <agriffis@gentoo.org> elilo-3.4-r3.ebuild:
|
||||
Add PROVIDE=virtual/bootloader #107940
|
||||
|
||||
*elilo-3.4-r3 (02 Aug 2005)
|
||||
|
||||
02 Aug 2005; Aron Griffis <agriffis@gentoo.org> files/elilo.conf.sample,
|
||||
-elilo-3.4-r1.ebuild, -elilo-3.4-r2.ebuild, +elilo-3.4-r3.ebuild:
|
||||
Stabilize -r2 with vapier's ebuild updates, but bump it to -r3 at the same
|
||||
time to push out repaired sample elilo.conf
|
||||
|
||||
*elilo-3.4-r2 (06 May 2005)
|
||||
|
||||
06 May 2005; Mike Frysinger <vapier@gentoo.org>
|
||||
+files/elilo-3.4-proc-sigsetjmp.patch, +elilo-3.4-r2.ebuild:
|
||||
Fix building with newer binutils and clean up the src_install to use Gentoo
|
||||
style install.
|
||||
|
||||
*elilo-3.4-r1 (30 Mar 2005)
|
||||
|
||||
30 Mar 2005; <plasmaroo@gentoo.org> +elilo-3.4-r1.ebuild, files/elilo-3.4:
|
||||
Backport --efiboot fix for 2.6 kernels from Debian.
|
||||
|
||||
22 Jan 2005; <plasmaroo@gentoo.org> elilo-3.4.ebuild:
|
||||
Fix total build breakage; inherit toolchain-funcs please...
|
||||
|
||||
19 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> elilo-3.4.ebuild:
|
||||
fix depend (bug #45110); tidy
|
||||
|
||||
04 Mar 2004; <agriffis@gentoo.org> elilo-3.4.ebuild:
|
||||
stable on ia64
|
||||
|
||||
23 Jan 2004; <agriffis@gentoo.org> elilo-3.4.ebuild,
|
||||
files/elilo.conf.sample:
|
||||
add elilo.conf.sample
|
||||
|
||||
23 Jan 2004; <agriffis@gentoo.org> elilo-3.4.ebuild:
|
||||
add rdepend on dosfstools
|
||||
|
||||
*elilo-3.4 (23 Jan 2004)
|
||||
|
||||
23 Jan 2004; <agriffis@gentoo.org> elilo-3.4.ebuild,
|
||||
files/elilo-3.3a-devscheme.patch, files/elilo-3.4,
|
||||
files/elilo-3.4-makefile.patch, files/elilo.8-3.4, files/eliloalt.8-3.4:
|
||||
New ebuild for elilo, stolen from Mandrake and Debian
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
AUX elilo.conf.sample 150 RMD160 d268dd0c0b18b1467694acab4c9f1943b713b532 SHA1 26aa384031ef0fec22313bda692cd03ab1670df7 SHA256 aa42c5582f5b282ed1fe5ef85c2c190e7c66283da905c4ef23886d313845d353
|
||||
AUX elilo.sh-chkspace.patch 833 RMD160 d9c36a3726cbefe20e6ee6b54014d2eb3c2bc413 SHA1 c988a6aa606aa578cc652d486062a7346781dd3d SHA256 bcab65496766878d6cd4c8aca9abf83145fc14fe659dc524756f210a0301a118
|
||||
AUX elilo.sh-vmm.patch 2099 RMD160 888dd1d63a05f87feb6c69133eec7326bebbb556 SHA1 1beab1aec4ef4c1db0f1287f231873fbfa4b630a SHA256 250fe3d335b8810d33de868f3599b11ab5b3b93bc27ed45344c7f1c675c5a10c
|
||||
DIST elilo-3.12-source.tar.gz 215125 RMD160 768b300ede3140c2278ad73206e6d511d4307e8d SHA1 3df5a611c171c9b1997af880947aa5c9cf729597 SHA256 5005534ae972603c65caa8debb2bf3c4a22b895588323bc1b0a7a9f114e030ee
|
||||
DIST elilo_3.12-1.diff.gz 28806 RMD160 4421609562735a4ba36b736c626d35bef05c769e SHA1 73a6efe6e3885553af3f3c1836db8befea3da304 SHA256 26532bdf9a8c3455d12f22c59d1d5d9656dcb432dabd1a80cdbcd010e93305b5
|
||||
EBUILD elilo-3.12.ebuild 2017 RMD160 77d58ecf74b485701f60ef98474aa57aa6ab9fc9 SHA1 a44897f4a77c943deeb94caf9028851d504130bc SHA256 34159da1d39a5f3bc26a548c7a607655cc15632185a824748ac9fea106003c55
|
||||
MISC ChangeLog 3969 RMD160 72d1090faf5774b6d825cb15148ef0fa214fc0c9 SHA1 a7f8f81749e875d276d77f262b6af7995d21b3d7 SHA256 7d80851196715b4687e41008fddaf2d24b26b258f8dce7d8a2b81f238d0aebc0
|
||||
MISC metadata.xml 157 RMD160 d78bc90d4c0fdb88250c9822e913c6f0159b2e8b SHA1 337a3ca895783b15c7f1fdf721f88b41a4b2e94e SHA256 7e261fbe78f2088ab2a27fe3bd23a4224dde9a11031edcb4b7bb95dd3ba1fe4a
|
||||
@@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-boot/elilo/elilo-3.12.ebuild,v 1.2 2010/07/24 15:39:17 armin76 Exp $
|
||||
|
||||
inherit mount-efi toolchain-funcs eutils
|
||||
|
||||
DESCRIPTION="Linux boot loader for EFI-based systems such as IA-64"
|
||||
HOMEPAGE="http://elilo.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/elilo/${P}-source.tar.gz"
|
||||
SRC_URI="${SRC_URI} mirror://debian/pool/main/e/elilo/elilo_3.12-1.diff.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ia64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
# gnu-efi contains only static libs, so there's no run-time dep on it
|
||||
DEPEND=">=sys-boot/gnu-efi-3.0g
|
||||
sys-devel/patch
|
||||
dev-util/patchutils"
|
||||
RDEPEND="sys-boot/efibootmgr
|
||||
sys-fs/dosfstools"
|
||||
PROVIDE="virtual/bootloader"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
ebegin Applying ../*.diff
|
||||
# Using epatch on this is annoying because it wants to create the elilo-3.6/
|
||||
# directory. Since all the files are new, it doesn't know better.
|
||||
filterdiff -p1 -i debian/\* ../*.diff | patch -s -p1
|
||||
eend $? || return
|
||||
|
||||
# Now Gentooize it
|
||||
sed -i "
|
||||
1s:/bin/sh:/bin/bash:;
|
||||
s/##VERSION##/$PV/;
|
||||
s/Debian GNU\//Gentoo /g;
|
||||
s/Debian/Gentoo/g;
|
||||
s/debian/gentoo/g;
|
||||
s/dpkg --print-architecture/uname -m/" debian/elilo.sh
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local iarch
|
||||
case $(tc-arch) in
|
||||
ia64) iarch=ia64 ;;
|
||||
x86) iarch=ia32 ;;
|
||||
amd64) iarch=x86_64 ;;
|
||||
*) die "unknown architecture: $(tc-arch)" ;;
|
||||
esac
|
||||
|
||||
# "prefix" on the next line specifies where to find gcc, as, ld,
|
||||
# etc. It's not the usual meaning of "prefix". By blanking it we
|
||||
# allow PATH to be searched.
|
||||
emake -j1 prefix= CC="$(tc-getCC)" ARCH=${iarch} || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /boot/efi/EFI/elilo
|
||||
doexe elilo.efi || die "elilo.efi failed"
|
||||
|
||||
newsbin debian/elilo.sh elilo || die "elilo failed"
|
||||
dosbin tools/eliloalt || die "eliloalt failed"
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}"/elilo.conf.sample elilo.conf
|
||||
|
||||
dodoc docs/* "${FILESDIR}"/elilo.conf.sample
|
||||
doman debian/*.[0-9]
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
boot=/dev/sda1
|
||||
install=/usr/lib/elilo/elilo.efi
|
||||
delay=20
|
||||
default=gentoo
|
||||
|
||||
image=/boot/kernel-2.6.12-gentoo-r6
|
||||
label=gentoo
|
||||
root=/dev/sda3
|
||||
read-only
|
||||
@@ -1,15 +0,0 @@
|
||||
Don't count duplicate files twice when summing bytesneeded
|
||||
|
||||
--- elilo/debian/elilo.sh.chkspace 2006-03-16 07:53:00.000000000 -0500
|
||||
+++ elilo/debian/elilo.sh 2006-03-16 07:53:27.000000000 -0500
|
||||
@@ -580,7 +580,9 @@
|
||||
sed 's/.*=[[:space:]]*//' | grep -v ':'`
|
||||
vmmfiles=`grep '^[[:space:]]*vmm[[:space:]]*=' $bootconf | \
|
||||
sed 's/.*=[[:space:]]*//' | grep -v ':'`
|
||||
- bytesneeded=`cat $imagefiles $initrdfiles $vmmfiles 2>/dev/null | wc -c`
|
||||
+ allfiles=`for f in $imagefiles $initrdfiles $install $bootconf; do \
|
||||
+ echo $f; done | sort -u`
|
||||
+ bytesneeded=`cat $allfiles 2>/dev/null | wc -c`
|
||||
# convert to KB, allowing 5% overhead
|
||||
kbneeded=$(( bytesneeded / 1024 + bytesneeded / 20480 ))
|
||||
kbavailable=$(df -P -k $TARGET | sed -n "s|^$boot[[:space:]]\+[0-9]\+[[:space:]]\+[0-9]\+[[:space:]]\+\([0-9]\+\).*$|\1|p")
|
||||
@@ -1,43 +0,0 @@
|
||||
Patch from Alex Williamson in
|
||||
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=350185 support of vmm= in the
|
||||
elilo script
|
||||
|
||||
--- elilo/debian/elilo.sh.novmm 2006-03-16 07:49:19.000000000 -0500
|
||||
+++ elilo/debian/elilo.sh 2006-03-16 07:48:47.000000000 -0500
|
||||
@@ -364,6 +364,8 @@
|
||||
sed 's/^image[[:space:]]*=[[:space:]]*//' | grep -v ':'`
|
||||
initrdfiles=`grep '^[[:space:]]*initrd[[:space:]]*=' $bootconf | \
|
||||
sed 's/.*=[[:space:]]*//' | grep -v ':'`
|
||||
+ vmmfiles=`grep '^[[:space:]]*vmm[[:space:]]*=' $bootconf | \
|
||||
+ sed 's/.*=[[:space:]]*//' | grep -v ':'`
|
||||
|
||||
## Point of no return, removing the old EFI/debian tree
|
||||
rm -rf $TARGET/$EFIROOT
|
||||
@@ -398,6 +400,7 @@
|
||||
-e "s|\t| |g" \
|
||||
-e "s|\(^image[[:space:]]*=[[:space:]]*\)\([^:]*\)$|\1$EFIROOT\2|" \
|
||||
-e "s|\(^[[:space:]]*initrd[[:space:]]*=[[:space:]]*\)\([^:]*\)$|\1$EFIROOT\2|" \
|
||||
+ -e "s|\(^[[:space:]]*vmm[[:space:]]*=[[:space:]]*\)\([^:]*\)$|\1$EFIROOT\2|" \
|
||||
< "$bootconf" > "$TARGET/$EFIROOT/$CFFILE"
|
||||
if [ $? != 0 ] ; then
|
||||
echo 1>&2 "$PRG: An error occured while writing to $boot"
|
||||
@@ -406,7 +409,7 @@
|
||||
|
||||
[ "$DEBUG" = 1 ] && echo "----" && cat "$TARGET/$EFIROOT/$CFFILE" && echo "----"
|
||||
|
||||
- for i in $imagefiles $initrdfiles; do
|
||||
+ for i in $imagefiles $initrdfiles $vmmfiles; do
|
||||
[ "$VERBOSE" = 1 ] && echo "$PRG: Installing $i on $boot..."
|
||||
if [ -f $i ]; then
|
||||
mkdir -p `dirname "$TARGET/$EFIROOT/$i"`
|
||||
@@ -575,7 +578,9 @@
|
||||
sed 's/^image[[:space:]]*=[[:space:]]*//' | grep -v ':'`
|
||||
initrdfiles=`grep '^[[:space:]]*initrd[[:space:]]*=' $bootconf | \
|
||||
sed 's/.*=[[:space:]]*//' | grep -v ':'`
|
||||
- bytesneeded=`cat $imagefiles $initrdfiles $install $bootconf 2>/dev/null | wc -c`
|
||||
+ vmmfiles=`grep '^[[:space:]]*vmm[[:space:]]*=' $bootconf | \
|
||||
+ sed 's/.*=[[:space:]]*//' | grep -v ':'`
|
||||
+ bytesneeded=`cat $imagefiles $initrdfiles $vmmfiles 2>/dev/null | wc -c`
|
||||
# convert to KB, allowing 5% overhead
|
||||
kbneeded=$(( bytesneeded / 1024 + bytesneeded / 20480 ))
|
||||
kbavailable=$(df -P -k $TARGET | sed -n "s|^$boot[[:space:]]\+[0-9]\+[[:space:]]\+[0-9]\+[[:space:]]\+\([0-9]\+\).*$|\1|p")
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>ia64</herd>
|
||||
</pkgmetadata>
|
||||
@@ -1,32 +0,0 @@
|
||||
# ChangeLog for sys-boot/refit
|
||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
15 Nov 2010; Mario Fetka <mario.fetka@gmail.com> refit-0.14.2.ebuild:
|
||||
propperly use the mount-efi system
|
||||
|
||||
14 Nov 2010; Mario Fetka <mario.fetka@gmail.com> refit-0.14.2.ebuild:
|
||||
correct small typos
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> refit-0.14.2.ebuild:
|
||||
add proper depndencies
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> refit-0.14.2.ebuild:
|
||||
change default install dir
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> refit-0.14.2.ebuild:
|
||||
respect cc
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> refit-0.14.2.ebuild:
|
||||
add gptsync.efi
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> refit-0.14.2.ebuild:
|
||||
add man pages
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> refit-0.14.2.ebuild:
|
||||
respect ldflags
|
||||
|
||||
12 Nov 2010; Mario Fetka <mario.fetka@gmail.com> refit-0.14.2.ebuild,
|
||||
+metadata.xml:
|
||||
initial checkin
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
DIST refit_0.14-2.debian.tar.gz 42302 RMD160 615b9f961c69bbfca72d8a8d4a05315600de7727 SHA1 c994c168b3e8614419a0375de116530f9f84a8b1 SHA256 5418b9d6645453ac53e831c59a255ecfe85a09038e0d5d08fc1a55cf6fb087a3
|
||||
DIST refit_0.14.orig.tar.gz 625164 RMD160 cb0122e58d2f7ecfacebe4147aab98288475716a SHA1 79b0f2473d6628404cb51bdaf49a4205c409c31b SHA256 0101ac403c3a8c90813df20726c9e76a58515ca7d1a35a7b2ab42eaf28e25e1e
|
||||
EBUILD refit-0.14.2.ebuild 4790 RMD160 bc3ad91dbb5ba485833e22f589e36431ac44b63f SHA1 eef54e72a2f6147f1e89b43e718ba4c9e643f1a8 SHA256 cbd0b84885fe304739a4a40632a50bf8026c49baa8aaf22429136ccff9cbe271
|
||||
MISC ChangeLog 985 RMD160 c01f6fc498da97b67a3a4a852d9ad44c47f0e651 SHA1 b80f3d8f3f294e1243c4b4b0905284c08375ef6e SHA256 5b3251a1e7cfba68a6456c7be17b401e309cb137ecc6871e96175e20351682b1
|
||||
MISC metadata.xml 226 RMD160 bebcbe7a5e3d2be83c25e006192f71ebf45abb14 SHA1 ec2b713fc2363b8c51e9c164d0802eeb59d9d296 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>no-herd</herd>
|
||||
<maintainer>
|
||||
<email>mario.fetka@gmail.com</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -1,165 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit mount-efi eutils versionator
|
||||
|
||||
MY_P="${PN}_${PV}"
|
||||
DESCRIPTION="graphical boot menu for ia32 and x64 EFI systems"
|
||||
HOMEPAGE="http://refit.sourceforge.net/"
|
||||
|
||||
# tarballs use debian versioning format
|
||||
MY_PN="refit"
|
||||
MY_PVR=$(replace_version_separator 2 '-' )
|
||||
MY_PV=${MY_PVR/-*/}
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
|
||||
SRC_URI_BASE="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}/"
|
||||
SRC_URI="${SRC_URI_BASE}${MY_PN}_${MY_PV}.orig.tar.gz
|
||||
${SRC_URI_BASE}${MY_PN}_${MY_PVR}.debian.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=sys-boot/gnu-efi-0.3a
|
||||
sys-boot/syslinux"
|
||||
|
||||
RDEPEND="sys-boot/efibootmgr
|
||||
sys-fs/dosfstools"
|
||||
|
||||
src_prepare() {
|
||||
for f in $(<"${WORKDIR}"/debian/patches/series) ; do
|
||||
EPATCH_OPTS="-p1" epatch "${WORKDIR}"/debian/patches/$f
|
||||
done
|
||||
sed -e "s!\$(LIBEG)!!" -i refit/Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local iarch
|
||||
case $ARCH in
|
||||
x86) iarch=ia32 ;;
|
||||
amd64) iarch=x86_64 ;;
|
||||
*) die "unknown architecture: $ARCH" ;;
|
||||
esac
|
||||
|
||||
# Generate include/syslinux_mbr.h
|
||||
chmod +x "${WORKDIR}"/debian/mbr/mkmbrhdr.py
|
||||
"${WORKDIR}"/debian/mbr/mkmbrhdr.py /usr/share/syslinux/mbr.bin > include/syslinux_mbr.h
|
||||
|
||||
# Move the AA font in place
|
||||
cp -f "${WORKDIR}"/debian/font/egemb_font.h libeg/
|
||||
|
||||
# Build EFI applications don't add C/LDFLAGS
|
||||
emake -C libeg SRCDIR="${S}"/libeg CC="$(tc-getCC)" ARCH=${iarch} || die
|
||||
emake -C refit SRCDIR="${S}"/refit CC="$(tc-getCC)" ARCH=${iarch} DEBVER="${iarch} (Gentoo ${PVR})" || die
|
||||
emake -C gptsync -f Makefile.gnuefi CC="$(tc-getCC)" SRCDIR="${S}"/gptsync ARCH=${iarch} || die
|
||||
|
||||
# Build the gptsync command-line utility
|
||||
mkdir gptsync/buildux
|
||||
emake -C gptsync/buildux -f ../Makefile.unix SRCDIR="${S}"/gptsync CC="$(tc-getCC)" \
|
||||
CFLAGS="-Wall ${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin gptsync/buildux/gptsync
|
||||
dosbin gptsync/buildux/showpart
|
||||
|
||||
# install into the std location as used by other distributins
|
||||
# the efi partititon is mounted into /boot/efi
|
||||
# the efi bootloaders are installed into the EFI dir
|
||||
# the dir name is upper case for Windows compatibility
|
||||
# at the moment the onyl really supported filesystem on
|
||||
# all efi bootloader in the efi partition is fat32
|
||||
# (elilo, refit, grub-efi, ...)
|
||||
insinto /usr/share/${PN}
|
||||
doins refit/refit.efi
|
||||
insinto /usr/share/${PN}/tools
|
||||
doins gptsync/gptsync.efi
|
||||
insinto /usr/share/${PN}/${PN}
|
||||
doins -r icons
|
||||
doins images/vollabel/refit.vollabel
|
||||
doins refit.conf
|
||||
|
||||
doman gptsync/gptsync.8
|
||||
doman "${WORKDIR}"/debian/showpart.8
|
||||
}
|
||||
|
||||
setup_efi_dir() {
|
||||
local boot_dir=$1
|
||||
local dir=${boot_dir}
|
||||
|
||||
mkdir -p "${dir}"
|
||||
dir="${dir}/refit"
|
||||
if [[ ! -e ${dir} ]] ; then
|
||||
mkdir -p "${dir}" || die "${dir} does not exist!"
|
||||
fi
|
||||
einfo "Copying files from /usr/share/refit to ${dir}"
|
||||
for x in \
|
||||
"${ROOT}"/usr/share/refit/* ; do
|
||||
[[ -f ${x} ]] && cp -p "${x}" "${dir}"/
|
||||
done
|
||||
|
||||
if [[ ! -e ${dir}/refit ]] ; then
|
||||
mkdir -p "${dir}/refit" || die "${dir}/refit does not exist!"
|
||||
fi
|
||||
einfo "Copying files from /usr/share/refit/refit to ${dir}/refit"
|
||||
for x in \
|
||||
"${ROOT}"/usr/share/refit/refit/* ; do
|
||||
[[ -f ${x} ]] && cp -p "${x}" "${dir}/refit/"
|
||||
done
|
||||
|
||||
if [[ ! -e ${dir}/refit/icons/ ]] ; then
|
||||
mkdir -p "${dir}/refit/icons/" || die "${dir}/refit/icons/ does not exist!"
|
||||
fi
|
||||
einfo "Copying files from /usr/share/refit/refit/icons to ${dir}/refit/icons"
|
||||
for x in \
|
||||
"${ROOT}"/usr/share/refit/refit/icons/* ; do
|
||||
[[ -f ${x} ]] && cp -p "${x}" "${dir}/refit/icons/"
|
||||
done
|
||||
|
||||
if [[ ! -e ${dir}/tools ]] ; then
|
||||
mkdir -p "${dir}/tools/" || die "${dir}/tools/ does not exist!"
|
||||
fi
|
||||
einfo "Copying files from /usr/share/refit/tools to ${dir}/tools"
|
||||
for x in \
|
||||
"${ROOT}"/usr/share/refit/tools/* ; do
|
||||
[[ -f ${x} ]] && cp -p "${x}" "${dir}/tools/"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n ${DONT_MOUNT_EFI} ]]; then
|
||||
elog "WARNING: you have DONT_MOUNT_EFI in effect, so you must apply"
|
||||
elog "the following instructions for your /boot/efi!"
|
||||
elog "Neglecting to do so may cause your system to fail to boot!"
|
||||
elog
|
||||
else
|
||||
setup_efi_dir "${ROOT}"/boot/efi/EFI
|
||||
# Trailing output because if this is run from pkg_postinst, it gets mixed into
|
||||
# the other output.
|
||||
einfo ""
|
||||
fi
|
||||
elog "To interactively install refit files to another device such as a USB"
|
||||
elog "stick, just run the following and specify the directory as prompted:"
|
||||
elog " emerge --config =${PF}"
|
||||
elog "Alternately, you can export REFIT_ALT_INSTALLDIR=/path/to/use to tell"
|
||||
elog "refit where to install in a non-interactive way."
|
||||
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local dir
|
||||
if [ ! -d "${REFIT_ALT_INSTALLDIR}" ]; then
|
||||
einfo "Enter the directory where you want to setup refit:"
|
||||
read dir
|
||||
else
|
||||
dir="${REFIT_ALT_INSTALLDIR}"/EFI
|
||||
fi
|
||||
setup_efi_dir "${dir}"
|
||||
}
|
||||
Reference in New Issue
Block a user