talimat 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # Tanım: Çoklu önyükleme yükleyicisi
  2. # URL: http://www.gnu.org/software/grub/
  3. # Pcakager: alihan-ozturk8@hotmail.com
  4. # Gerekler: freetype help2man efivar efibootmgr os-prober dosfstools fuse mtools libisoburn
  5. # Grup: sistem
  6. isim=grub
  7. surum=2.02-beta3
  8. devir=1
  9. kaynak=( ftp://alpha.gnu.org/gnu/grub/grub-2.02~beta3.tar.xz \
  10. http://source.pisilinux.org/1.0/grub2_extras_915resolution_r10.tar.xz \
  11. unifont-6.3.20131217.bdf \
  12. milis_name.patch \
  13. initramfs.patch \
  14. grub_mkconfig.patch \
  15. grub.default)
  16. derle() {
  17. cd $isim-2.02~beta3
  18. patch -Np1 -i ../milis_name.patch
  19. patch -i $SRC/initramfs.patch util/grub.d/10_linux.in
  20. patch -Np1 -i ../grub_mkconfig.patch
  21. cp $SRC/unifont-6.3.20131217.bdf $SRC/$isim-2.02~beta3/unifont.bdf
  22. mkdir -p SRC/$isim-2.02~beta3/grub-extras/915resolution
  23. install -d "$SRC/$isim-2.02~beta3/grub-extras"
  24. cp -r "$SRC/915resolution" "SRC/$isim-2.02~beta3/grub-extras/915resolution"
  25. export GRUB_CONTRIB="$SRC/$isim-2.02~beta3/grub-extras/"
  26. unset CFLAGS
  27. unset CPPFLAGS
  28. unset CXXFLAGS
  29. unset LDFLAGS
  30. unset MAKEFLAGS
  31. ./autogen.sh
  32. ./configure --disable-werror \
  33. --with-platform=pc \
  34. --target=i386 \
  35. --enable-mm-debug \
  36. --enable-nls \
  37. --enable-device-mapper \
  38. --enable-cache-stats \
  39. --enable-boot-time \
  40. --enable-grub-mkfont \
  41. --enable-grub-mount \
  42. --prefix="/usr" \
  43. --bindir="/usr/bin" \
  44. --sbindir="/usr/bin" \
  45. --mandir="/usr/share/man" \
  46. --infodir="/usr/share/info" \
  47. --datarootdir="/usr/share" \
  48. --sysconfdir="/etc" \
  49. --program-prefix="" \
  50. --with-bootdir=/boot \
  51. --with-grubdir=grub
  52. cp -r "$SRC/$isim-2.02~beta3" "$SRC/$isim-2.02~beta3-efi"
  53. cd $SRC/$isim-2.02~beta3-efi
  54. unset CFLAGS
  55. unset CPPFLAGS
  56. unset CXXFLAGS
  57. unset LDFLAGS
  58. unset MAKEFLAGS
  59. ./autogen.sh
  60. ./configure --with-platform=efi \
  61. --target=x86_64 \
  62. --enable-mm-debug \
  63. --enable-nls \
  64. --enable-device-mapper \
  65. --enable-cache-stats \
  66. --enable-boot-time \
  67. --enable-grub-mkfont \
  68. --enable-grub-mount \
  69. --prefix="/usr" \
  70. --bindir="/usr/bin" \
  71. --sbindir="/usr/bin" \
  72. --mandir="/usr/share/man" \
  73. --infodir="/usr/share/info" \
  74. --datarootdir="/usr/share" \
  75. --sysconfdir="/etc" \
  76. --program-prefix="" \
  77. --with-bootdir=/boot \
  78. --with-grubdir=grub \
  79. --disable-silent-rules \
  80. --disable-werror
  81. cd $SRC/$isim-2.02~beta3
  82. make dist
  83. make
  84. cd $SRC/$isim-2.02~beta3-efi
  85. make
  86. cd $SRC/$isim-2.02~beta3
  87. ./grub-mkfont -o unicode.pf2 unifont.bdf
  88. mkdir -p $PKG/boot/grub
  89. cp $SRC/$isim-2.02~beta3/unicode.pf2 $PKG/boot/grub
  90. make DESTDIR=$PKG install
  91. cd $SRC/$isim-2.02~beta3-efi
  92. make DESTDIR=$PKG install
  93. mkdir -p $PKG/etc/default/grub
  94. install -D -m0644 "$SRC/grub.default" "$PKG/etc/default/grub"
  95. }