diff options
author | 2009-11-11 04:13:32 +0000 | |
---|---|---|
committer | 2009-11-11 04:13:32 +0000 | |
commit | fe3ac38a47fad827340284b40700c55caec4ed7f (patch) | |
tree | 4989074c1c74168e67c91e3e913ae124fcd6cf56 /sys-boot/grub | |
parent | Bump to 0.4. (diff) | |
download | gentoo-2-fe3ac38a47fad827340284b40700c55caec4ed7f.tar.gz gentoo-2-fe3ac38a47fad827340284b40700c55caec4ed7f.tar.bz2 gentoo-2-fe3ac38a47fad827340284b40700c55caec4ed7f.zip |
Version bump #292677 by Hanno Boeck.
(Portage version: 2.2_rc49/cvs/Linux x86_64)
Diffstat (limited to 'sys-boot/grub')
-rw-r--r-- | sys-boot/grub/ChangeLog | 7 | ||||
-rw-r--r-- | sys-boot/grub/grub-1.97.1.ebuild | 100 |
2 files changed, 106 insertions, 1 deletions
diff --git a/sys-boot/grub/ChangeLog b/sys-boot/grub/ChangeLog index 62e13d085c14..67f821ba9bc7 100644 --- a/sys-boot/grub/ChangeLog +++ b/sys-boot/grub/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-boot/grub # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.126 2009/11/01 19:51:01 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.127 2009/11/11 04:13:32 vapier Exp $ + +*grub-1.97.1 (11 Nov 2009) + + 11 Nov 2009; Mike Frysinger <vapier@gentoo.org> +grub-1.97.1.ebuild: + Version bump #292677 by Hanno Boeck. 01 Nov 2009; Mike Frysinger <vapier@gentoo.org> grub-1.97.ebuild, grub-9999.ebuild: diff --git a/sys-boot/grub/grub-1.97.1.ebuild b/sys-boot/grub/grub-1.97.1.ebuild new file mode 100644 index 000000000000..066b19fa3d7f --- /dev/null +++ b/sys-boot/grub/grub-1.97.1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-1.97.1.ebuild,v 1.1 2009/11/11 04:13:32 vapier Exp $ + +inherit autotools mount-boot eutils flag-o-matic toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="svn://svn.sv.gnu.org/grub/trunk/grub2" + inherit subversion + SRC_URI="" +else + SRC_URI="ftp://alpha.gnu.org/gnu/${PN}/${P}.tar.gz + mirror://gentoo/${P}.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 multislot static" + +RDEPEND=">=sys-libs/ncurses-5.2-r5 + dev-libs/lzo" +DEPEND="${RDEPEND} + dev-lang/ruby" +PROVIDE="virtual/bootloader" + +export STRIP_MASK="*/grub/*/*.mod" +QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + subversion_src_unpack + else + unpack ${A} + fi + cd "${S}" + epatch "${FILESDIR}"/${PN}-1.96-genkernel.patch #256335 + epatch_user + + # autogen.sh does more than just run autotools + sed -i -e 's:^auto:eauto:' autogen.sh + (. ./autogen.sh) || die +} + +src_compile() { + use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS + use static && append-ldflags -static + + econf \ + --disable-werror \ + --sbindir=/sbin \ + --bindir=/bin \ + --libdir=/$(get_libdir) \ + --disable-efiemu \ + --enable-grub-mkfont \ + $(use_enable debug mm-debug) \ + $(use_enable debug grub-emu) \ + $(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}"/usr/share/info/grub{,2}.info || die + fi +} + +setup_boot_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 grub1, the grub2 install binary is named grub2-install." + fi + setup_boot_dir "${ROOT}"boot +} |