/[gentoo-x86]/sys-boot/grub/grub-9999.ebuild
Gentoo

Diff of /sys-boot/grub/grub-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.30 Revision 1.31
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.30 2011/04/03 17:43:44 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.31 2011/04/03 18:10:01 vapier Exp $
4 4
5# XXX: need to implement a grub.conf migration in pkg_postinst before we ~arch 5# XXX: need to implement a grub.conf migration in pkg_postinst before we ~arch
6 6
7inherit mount-boot eutils flag-o-matic toolchain-funcs 7inherit mount-boot eutils flag-o-matic toolchain-funcs
8 8
71} 71}
72 72
73src_install() { 73src_install() {
74 emake DESTDIR="${D}" install || die 74 emake DESTDIR="${D}" install || die
75 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 75 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
76
77 insinto /etc/defaults
78 doins "${FILESDIR}"/defaults || die
76 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib 79 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib
77 GRUB_DISTRIBUTOR="Gentoo" 80 GRUB_DISTRIBUTOR="Gentoo"
78 EOF 81 EOF
82
79 if use multislot ; then 83 if use multislot ; then
80 sed -i "s:grub-install:grub2-install:" "${D}"/sbin/grub-install || die 84 sed -i "s:grub-install:grub2-install:" "${D}"/sbin/grub-install || die
81 mv "${D}"/sbin/grub{,2}-install || die 85 mv "${D}"/sbin/grub{,2}-install || die
82 mv "${D}"/sbin/grub{,2}-set-default || die 86 mv "${D}"/sbin/grub{,2}-set-default || die
83 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die 87 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20