/[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.42 Revision 1.43
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.42 2011/09/14 17:57:08 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.43 2011/10/03 09:10:13 scarabeus Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7if [[ ${PV} == "9999" ]] ; then 7if [[ ${PV} == "9999" ]] ; then
8 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" 8 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/"
229 "bin/grub2-mkpasswd-pbkdf2" 229 "bin/grub2-mkpasswd-pbkdf2"
230 "bin/grub2-editenv" 230 "bin/grub2-editenv"
231 "bin/grub2-mkimage" 231 "bin/grub2-mkimage"
232 ) 232 )
233 for e in ${PAX[@]}; do 233 for e in ${PAX[@]}; do
234 pax-mark -mpx "${ED}/${e}" 234 pax-mark -mp "${ED}/${e}"
235 done 235 done
236 236
237 # can't be in docs array as we use defualt_src_install in different builddir 237 # can't be in docs array as we use default_src_install in different builddir
238 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 238 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
239 insinto /etc/default 239 insinto /etc/default
240 newins "${FILESDIR}"/grub.default grub 240 newins "${FILESDIR}"/grub.default grub
241 cat <<EOF >> "${ED}"/lib*/grub2/grub-mkconfig_lib 241 cat <<EOF >> "${ED}"/lib*/grub2/grub-mkconfig_lib
242 GRUB_DISTRIBUTOR="Gentoo" 242 GRUB_DISTRIBUTOR="Gentoo"
243EOF 243EOF
244 244
245 elog "Remember to run emerge --config =${CATEGORY}/${P} in order" 245 elog "Remember to run emerge --config =${CATEGORY}/${PF} in order"
246 elog "to set up basic settings for this package." 246 elog "to set up basic settings for this package."
247} 247}
248 248
249setup_boot_dir() { 249setup_boot_dir() {
250 local dir=$1 250 local dir=$1
251 251
252 # display the link to guide 252 # display the link to guide
253 elog "For informations how to configure grub-2 please reffer to the guide:" 253 elog "For informations how to configure grub-2 please refer to the guide:"
254 elog " http://dev.gentoo.org/~scarabeus/grub-2-guide.xml" 254 elog " http://dev.gentoo.org/~scarabeus/grub-2-guide.xml"
255
256 # Make sure target directory exists
257 mkdir -p "${dir}"
255 258
256 if [[ ! -e ${dir}/grub.cfg && -e ${dir/2/}/menu.lst ]] ; then 259 if [[ ! -e ${dir}/grub.cfg && -e ${dir/2/}/menu.lst ]] ; then
257 # This is first grub2 install and we have old configuraton for 260 # This is first grub2 install and we have old configuraton for
258 # grub1 around. Lets try to generate grub.cfg from it so user 261 # grub1 around. Lets try to generate grub.cfg from it so user
259 # does not loose any stuff when rebooting. 262 # does not loose any stuff when rebooting.

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20