grub.paketlendi
This commit is contained in:
parent
ad43ebad44
commit
f9c16b5356
|
@ -0,0 +1,18 @@
|
|||
# Description: Midna Grub-theme.
|
||||
# URL: http://kaosx.us
|
||||
# Pcakager: alihan-ozturk8@hotmail.com
|
||||
# Depends on: grub
|
||||
|
||||
name=grub-theme-midna
|
||||
version=1.4
|
||||
release=1
|
||||
|
||||
source=( http://sourceforge.net/projects/kaosx/files/sources/grub-themes/$name-$version.zip)
|
||||
|
||||
build() {
|
||||
cd $SRC
|
||||
|
||||
mkdir -p $PKG/usr/share/grub/themes
|
||||
install -dm755 "$PKG/usr/share/grub/themes"
|
||||
cp -dpr --no-preserve=ownership "midna" "$PKG/usr/share/grub/themes"
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
GRUB_DEFAULT=0
|
||||
GRUB_TIMEOUT=10
|
||||
GRUB_DISTRIBUTOR="Milis"
|
||||
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
|
||||
GRUB_CMDLINE_LINUX=""
|
||||
|
||||
# Preload both GPT and MBR modules so that they are not missed
|
||||
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
|
||||
|
||||
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
|
||||
#GRUB_HIDDEN_TIMEOUT=5
|
||||
#GRUB_HIDDEN_TIMEOUT_QUIET=true
|
||||
|
||||
# Uncomment to use basic console
|
||||
GRUB_TERMINAL_INPUT=console
|
||||
|
||||
# Uncomment to disable graphical terminal
|
||||
#GRUB_TERMINAL_OUTPUT=console
|
||||
|
||||
# The resolution used on graphical terminal
|
||||
# note that you can use only modes which your graphic card supports via VBE
|
||||
# you can see them in real GRUB with the command `vbeinfo'
|
||||
GRUB_GFXMODE=auto
|
||||
|
||||
# Uncomment to allow the kernel use the same resolution used by grub
|
||||
GRUB_GFXPAYLOAD_LINUX=keep
|
||||
|
||||
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
|
||||
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
|
||||
#GRUB_DISABLE_LINUX_UUID=true
|
||||
|
||||
# Uncomment to disable generation of recovery mode menu entries
|
||||
GRUB_DISABLE_RECOVERY=true
|
||||
|
||||
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
|
||||
# modes only. Entries specified as foreground/background.
|
||||
#GRUB_COLOR_NORMAL="white/black"
|
||||
#GRUB_COLOR_HIGHLIGHT="black/white"
|
||||
|
||||
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
|
||||
#GRUB_BACKGROUND="/path/to/wallpaper"
|
||||
#GRUB_THEME="/path/to/gfxtheme"
|
||||
GRUB_THEME="/usr/share/grub/themes/midna/theme.txt"
|
||||
|
||||
# Control which initial ramdisk should grub-mkconfig prefer when searching
|
||||
# default is initrd-*.gz created by geninitrd, uncomment to make it prefer
|
||||
# initramfs-*.img created by dracut
|
||||
GRUB_PREFER_DRACUT="true"
|
||||
|
||||
# Uncomment to get a beep at GRUB start
|
||||
#GRUB_INIT_TUNE="480 440 1"
|
||||
|
||||
#GRUB_SAVEDEFAULT="true"
|
|
@ -0,0 +1,32 @@
|
|||
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
|
||||
index 3390ba9..c416489 100644
|
||||
--- a/util/grub-mkconfig.in
|
||||
+++ b/util/grub-mkconfig.in
|
||||
@@ -218,6 +218,8 @@ export GRUB_DEFAULT \
|
||||
GRUB_THEME \
|
||||
GRUB_GFXPAYLOAD_LINUX \
|
||||
GRUB_DISABLE_OS_PROBER \
|
||||
+ GRUB_COLOR_NORMAL \
|
||||
+ GRUB_COLOR_HIGHLIGHT \
|
||||
GRUB_INIT_TUNE \
|
||||
GRUB_SAVEDEFAULT \
|
||||
GRUB_ENABLE_CRYPTODISK \
|
||||
diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
|
||||
index d2e7252..8259f45 100644
|
||||
--- a/util/grub.d/00_header.in
|
||||
+++ b/util/grub.d/00_header.in
|
||||
@@ -125,6 +125,14 @@ cat <<EOF
|
||||
|
||||
EOF
|
||||
|
||||
+if [ x$GRUB_COLOR_NORMAL != x ] && [ x$GRUB_COLOR_HIGHLIGHT != x ] ; then
|
||||
+ cat << EOF
|
||||
+set menu_color_normal=$GRUB_COLOR_NORMAL
|
||||
+set menu_color_highlight=$GRUB_COLOR_HIGHLIGHT
|
||||
+
|
||||
+EOF
|
||||
+fi
|
||||
+
|
||||
serial=0;
|
||||
gfxterm=0;
|
||||
for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do
|
|
@ -0,0 +1,11 @@
|
|||
--- 10_linux.in.orig 2012-09-05 13:34:26.947842426 -0500
|
||||
+++ 10_linux.in 2012-09-05 13:34:55.967842887 -0500
|
||||
@@ -198,6 +198,8 @@
|
||||
initrd=
|
||||
for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
|
||||
"initrd-${version}" "initramfs-${version}.img" \
|
||||
+ "initramfs-${version}.gz" \
|
||||
+ "initramfs" \
|
||||
"initrd.img-${alt_version}" "initrd-${alt_version}.img" \
|
||||
"initrd-${alt_version}" "initramfs-${alt_version}.img" \
|
||||
"initramfs-genkernel-${version}" \
|
|
@ -0,0 +1,17 @@
|
|||
--- a/util/grub.d/10_linux.in~ 2012-04-18 23:24:38.000000000 +0200
|
||||
+++ b/util/grub.d/10_linux.in 2012-11-28 22:27:41.652673833 +0100
|
||||
@@ -29,7 +29,14 @@
|
||||
CLASS="--class gnu-linux --class gnu --class os"
|
||||
|
||||
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
||||
OS=GNU/Linux
|
||||
+ if [ -f "/etc/milis-release" ] ; then
|
||||
+ OS="$(sed 's, release .*$,,g' /etc/milis-release)"
|
||||
+ elif [ -e "/etc/system-release" ] ; then
|
||||
+ OS="$(sed 's, release .*$,,g' /etc/system-release)"
|
||||
+ else
|
||||
+ OS=GNU/Linux
|
||||
+ fi
|
||||
else
|
||||
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
||||
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
|
|
@ -0,0 +1,110 @@
|
|||
# Description: A Multiboot boot loader
|
||||
# URL: http://www.gnu.org/software/grub/
|
||||
# Pcakager: alihan-ozturk8@hotmail.com
|
||||
# Depends on: freetype help2man efivar efibootmgr os-prober dosfstools fuse mtools libisoburn
|
||||
|
||||
name=grub
|
||||
version=2.02-beta3
|
||||
release=1
|
||||
|
||||
source=( ftp://alpha.gnu.org/gnu/grub/grub-2.02~beta3.tar.xz \
|
||||
http://source.pisilinux.org/1.0/grub2_extras_915resolution_r10.tar.xz \
|
||||
unifont-6.3.20131217.bdf \
|
||||
milis_name.patch \
|
||||
initramfs.patch \
|
||||
grub_mkconfig.patch \
|
||||
grub.default)
|
||||
|
||||
build() {
|
||||
cd $name-2.02~beta3
|
||||
|
||||
patch -Np1 -i ../milis_name.patch
|
||||
patch -i $SRC/initramfs.patch util/grub.d/10_linux.in
|
||||
patch -Np1 -i ../grub_mkconfig.patch
|
||||
|
||||
cp $SRC/unifont-6.3.20131217.bdf $SRC/$name-2.02~beta3/unifont.bdf
|
||||
|
||||
mkdir -p SRC/$name-2.02~beta3/grub-extras/915resolution
|
||||
install -d "$SRC/$name-2.02~beta3/grub-extras"
|
||||
cp -r "$SRC/915resolution" "SRC/$name-2.02~beta3/grub-extras/915resolution"
|
||||
export GRUB_CONTRIB="$SRC/$name-2.02~beta3/grub-extras/"
|
||||
|
||||
unset CFLAGS
|
||||
unset CPPFLAGS
|
||||
unset CXXFLAGS
|
||||
unset LDFLAGS
|
||||
unset MAKEFLAGS
|
||||
|
||||
./autogen.sh
|
||||
./configure --disable-werror \
|
||||
--with-platform=pc \
|
||||
--target=i386 \
|
||||
--enable-mm-debug \
|
||||
--enable-nls \
|
||||
--enable-device-mapper \
|
||||
--enable-cache-stats \
|
||||
--enable-boot-time \
|
||||
--enable-grub-mkfont \
|
||||
--enable-grub-mount \
|
||||
--prefix="/usr" \
|
||||
--bindir="/usr/bin" \
|
||||
--sbindir="/usr/bin" \
|
||||
--mandir="/usr/share/man" \
|
||||
--infodir="/usr/share/info" \
|
||||
--datarootdir="/usr/share" \
|
||||
--sysconfdir="/etc" \
|
||||
--program-prefix="" \
|
||||
--with-bootdir=/boot \
|
||||
--with-grubdir=grub
|
||||
|
||||
cp -r "$SRC/$name-2.02~beta3" "$SRC/$name-2.02~beta3-efi"
|
||||
cd $SRC/$name-2.02~beta3-efi
|
||||
|
||||
unset CFLAGS
|
||||
unset CPPFLAGS
|
||||
unset CXXFLAGS
|
||||
unset LDFLAGS
|
||||
unset MAKEFLAGS
|
||||
|
||||
./autogen.sh
|
||||
./configure --with-platform=efi \
|
||||
--target=x86_64 \
|
||||
--enable-mm-debug \
|
||||
--enable-nls \
|
||||
--enable-device-mapper \
|
||||
--enable-cache-stats \
|
||||
--enable-boot-time \
|
||||
--enable-grub-mkfont \
|
||||
--enable-grub-mount \
|
||||
--prefix="/usr" \
|
||||
--bindir="/usr/bin" \
|
||||
--sbindir="/usr/bin" \
|
||||
--mandir="/usr/share/man" \
|
||||
--infodir="/usr/share/info" \
|
||||
--datarootdir="/usr/share" \
|
||||
--sysconfdir="/etc" \
|
||||
--program-prefix="" \
|
||||
--with-bootdir=/boot \
|
||||
--with-grubdir=grub \
|
||||
--disable-silent-rules \
|
||||
--disable-werror
|
||||
|
||||
cd $SRC/$name-2.02~beta3
|
||||
make dist
|
||||
make
|
||||
cd $SRC/$name-2.02~beta3-efi
|
||||
make
|
||||
|
||||
cd $SRC/$name-2.02~beta3
|
||||
./grub-mkfont -o unicode.pf2 unifont.bdf
|
||||
mkdir -p $PKG/boot/grub
|
||||
cp $SRC/$name-2.02~beta3/unicode.pf2 $PKG/boot/grub
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
cd $SRC/$name-2.02~beta3-efi
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
mkdir -p $PKG/etc/default/grub
|
||||
install -D -m0644 "$SRC/grub.default" "$PKG/etc/default/grub"
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue