21 |
SRC_URI=( |
SRC_URI=( |
22 |
gnu://${PNAME}/${SRCFILE} |
gnu://${PNAME}/${SRCFILE} |
23 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
24 |
|
mirror://${PNAME}/${PNAME}-${PVER}-confd.patch |
25 |
mirror://${PNAME}/${PNAME}-${PVER}-alx.patch |
mirror://${PNAME}/${PNAME}-${PVER}-alx.patch |
26 |
) |
) |
27 |
|
|
37 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
38 |
cd ${SRCDIR} |
cd ${SRCDIR} |
39 |
|
|
40 |
|
# use /etc/conf.d/grub instead of /etc/default/grub |
41 |
|
mpatch ${PNAME}-${PVER}-confd.patch || die |
42 |
|
|
43 |
# fixes some issues with busybox |
# fixes some issues with busybox |
44 |
mpatch ${PNAME}-${PVER}-alx.patch || die |
mpatch ${PNAME}-${PVER}-alx.patch || die |
45 |
} |
} |
56 |
--disable-werror \ |
--disable-werror \ |
57 |
--disable-nls \ |
--disable-nls \ |
58 |
|| die |
|| die |
59 |
|
|
60 |
mmake || die |
mmake || die |
61 |
} |
} |
62 |
|
|
69 |
# fix a missing symlink |
# fix a missing symlink |
70 |
mlink /bin/grub-mkimage /sbin || die |
mlink /bin/grub-mkimage /sbin || die |
71 |
|
|
72 |
|
# setup a proper grub default conf |
73 |
|
minstalldir /etc/conf.d || die |
74 |
|
cat > ${BINDIR}/etc/conf.d/grub << EOF |
75 |
|
GRUB_DEFAULT=0 |
76 |
|
GRUB_TIMEOUT=5 |
77 |
|
GRUB_DISTRIBUTOR="ALX Thinclient" |
78 |
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet" |
79 |
|
GRUB_CMDLINE_LINUX="" |
80 |
|
GRUB_TERMINAL_INPUT=console |
81 |
|
GRUB_GFXMODE=auto |
82 |
|
GRUB_GFXPAYLOAD_LINUX=keep |
83 |
|
GRUB_DISABLE_RECOVERY=true |
84 |
|
GRUB_COLOR_NORMAL="light-blue/black" |
85 |
|
GRUB_COLOR_HIGHLIGHT="light-cyan/blue" |
86 |
|
#GRUB_BACKGROUND="/path/to/wallpaper" |
87 |
|
#GRUB_THEME="/path/to/gfxtheme" |
88 |
|
EOF |
89 |
|
|
90 |
minstalldir /boot/grub || die |
minstalldir /boot/grub || die |
91 |
cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF" |
cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF" |
92 |
default 0 |
default 0 |
93 |
timeout 30 |
timeout 30 |
94 |
|
|
95 |
title Magellan-Linux |
title ALX Thinclient |
96 |
linux (hd0,0)/boot/vmlinuz root=/dev/hda3 |
linux (hd0,0)/boot/vmlinuz root=/dev/hda3 |
97 |
initrd (hd0,0)/boot/initrd |
initrd (hd0,0)/boot/initrd |
98 |
EOF |
EOF |
108 |
|
|
109 |
postinstall() |
postinstall() |
110 |
{ |
{ |
|
|
|
111 |
[ ! -d ${MROOT}/boot/grub ] && install -d ${MROOT}/boot/grub |
[ ! -d ${MROOT}/boot/grub ] && install -d ${MROOT}/boot/grub |
112 |
|
|
113 |
# creates some essential links |
# creates some essential links |