16 |
SRCFILE="${PNAME}-${PVER}.tar.gz" |
SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 |
|
|
19 |
sminclude mtools |
REMOVE_DEPRECATED_MAGE_TARGETS=1 |
20 |
|
sminclude mtools alx-split |
21 |
|
|
22 |
|
ALX_ONLY_KEEP="/boot/grub etc/conf.d etc/grub.d sbin usr/share/grub |
23 |
|
$(mlibdir)/grub/grub-mkconfig_lib |
24 |
|
$(mlibdir)/grub/update-grub_lib |
25 |
|
$(mlibdir)/grub/i386-pc/ata.mod |
26 |
|
$(mlibdir)/grub/i386-pc/biosdisk.mod |
27 |
|
$(mlibdir)/grub/i386-pc/boot.img |
28 |
|
$(mlibdir)/grub/i386-pc/boot.mod |
29 |
|
$(mlibdir)/grub/i386-pc/crypto.mod |
30 |
|
$(mlibdir)/grub/i386-pc/ext2.mod |
31 |
|
$(mlibdir)/grub/i386-pc/fat.mod |
32 |
|
$(mlibdir)/grub/i386-pc/fshelp.mod |
33 |
|
$(mlibdir)/grub/i386-pc/gzio.mod |
34 |
|
$(mlibdir)/grub/i386-pc/iso9660.mod |
35 |
|
$(mlibdir)/grub/i386-pc/kernel.img |
36 |
|
$(mlibdir)/grub/i386-pc/keylayouts.mod |
37 |
|
$(mlibdir)/grub/i386-pc/linux.mod |
38 |
|
$(mlibdir)/grub/i386-pc/mmap.mod |
39 |
|
$(mlibdir)/grub/i386-pc/moddep.lst |
40 |
|
$(mlibdir)/grub/i386-pc/msdospart.mod |
41 |
|
$(mlibdir)/grub/i386-pc/normal.mod |
42 |
|
$(mlibdir)/grub/i386-pc/part_msdos.mod |
43 |
|
$(mlibdir)/grub/i386-pc/password.mod |
44 |
|
$(mlibdir)/grub/i386-pc/pci.mod |
45 |
|
$(mlibdir)/grub/i386-pc/reiserfs.mod |
46 |
|
$(mlibdir)/grub/i386-pc/relocator.mod |
47 |
|
$(mlibdir)/grub/i386-pc/scsi.mod |
48 |
|
$(mlibdir)/grub/i386-pc/terminal.lst |
49 |
|
$(mlibdir)/grub/i386-pc/terminal.mod |
50 |
|
$(mlibdir)/grub/i386-pc/terminfo.mod |
51 |
|
$(mlibdir)/grub/i386-pc/usb.mod |
52 |
|
$(mlibdir)/grub/i386-pc/usb_keyboard.mod |
53 |
|
$(mlibdir)/grub/i386-pc/vga.mod |
54 |
|
$(mlibdir)/grub/i386-pc/vbe.mod |
55 |
|
$(mlibdir)/grub/i386-pc/video.mod |
56 |
|
$(mlibdir)/grub/i386-pc/video_bochs.mod |
57 |
|
$(mlibdir)/grub/i386-pc/video_cyrrus.mod |
58 |
|
$(mlibdir)/grub/i386-pc/video_fb.mod" |
59 |
|
|
60 |
SRC_URI=( |
SRC_URI=( |
61 |
gnu://${PNAME}/${SRCFILE} |
gnu://${PNAME}/${SRCFILE} |
62 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
63 |
mirror://${PNAME}/${PNAME}-${PVER}-confd.patch |
mirror://${PNAME}/${PNAME}-${PVER}-confd.patch |
64 |
mirror://${PNAME}/${PNAME}-${PVER}-alx.patch |
mirror://${PNAME}/${PNAME}-${PVER}-busybox.patch |
65 |
) |
) |
66 |
|
|
67 |
UP2DATE="updatecmd_gnu ${PNAME} gz" |
UP2DATE="updatecmd_gnu ${PNAME} gz" |
80 |
mpatch ${PNAME}-${PVER}-confd.patch || die |
mpatch ${PNAME}-${PVER}-confd.patch || die |
81 |
|
|
82 |
# fixes some issues with busybox |
# fixes some issues with busybox |
83 |
mpatch ${PNAME}-${PVER}-alx.patch || die |
mpatch ${PNAME}-${PVER}-busybox.patch || die |
84 |
} |
} |
85 |
|
|
86 |
src_compile() |
src_compile() |
108 |
# fix a missing symlink |
# fix a missing symlink |
109 |
mlink /bin/grub-mkimage /sbin || die |
mlink /bin/grub-mkimage /sbin || die |
110 |
|
|
111 |
# setup a proper grub default conf |
# install only grub dir, no default config |
|
minstalldir /etc/conf.d || die |
|
|
cat > ${BINDIR}/etc/conf.d/grub << EOF |
|
|
GRUB_DEFAULT=0 |
|
|
GRUB_TIMEOUT=5 |
|
|
GRUB_DISTRIBUTOR="ALX Thinclient" |
|
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet" |
|
|
GRUB_CMDLINE_LINUX="" |
|
|
GRUB_TERMINAL_INPUT=console |
|
|
GRUB_GFXMODE=auto |
|
|
GRUB_GFXPAYLOAD_LINUX=keep |
|
|
GRUB_DISABLE_RECOVERY=true |
|
|
GRUB_COLOR_NORMAL="light-blue/black" |
|
|
GRUB_COLOR_HIGHLIGHT="light-cyan/blue" |
|
|
#GRUB_BACKGROUND="/path/to/wallpaper" |
|
|
#GRUB_THEME="/path/to/gfxtheme" |
|
|
EOF |
|
|
|
|
112 |
minstalldir /boot/grub || die |
minstalldir /boot/grub || die |
|
cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF" |
|
|
default 0 |
|
|
timeout 30 |
|
|
|
|
|
title ALX Thinclient |
|
|
linux (hd0,0)/boot/vmlinuz root=/dev/hda3 |
|
|
initrd (hd0,0)/boot/initrd |
|
|
EOF |
|
113 |
|
|
114 |
# docs |
# docs |
115 |
minstalldocs AUTHORS ChangeLog COPYING NEWS README THANKS TODO || die |
minstalldocs AUTHORS ChangeLog COPYING NEWS README THANKS TODO || die |
116 |
|
|
117 |
|
# setup a proper grub default conf |
118 |
|
minstalldir /etc/conf.d || die |
119 |
|
mcinjectfile grub.confd /etc/conf.d/grub || die |
120 |
|
|
121 |
|
# user custom creation scripts and delete the provided ones |
122 |
|
local i |
123 |
|
for i in 10_* 20_* 30_* 40_* 41_* README |
124 |
|
do |
125 |
|
if [[ -f /etc/grub.d/${i} ]] |
126 |
|
then |
127 |
|
rm /etc/grub.d/${i} || die |
128 |
|
fi |
129 |
|
done |
130 |
|
mcinjectexec 05_alx_header /etc/grub.d/ || die |
131 |
|
mcinjectexec 10_alx /etc/grub.d/ || die |
132 |
|
mcinjectexec 30_alx_hwdetect /etc/grub.d/ || die |
133 |
|
mcinjectexec 40_alx_reset /etc/grub.d/ || die |
134 |
} |
} |
135 |
|
|
136 |
preinstall() |
preinstall() |
137 |
{ |
{ |
138 |
mount /boot &> /dev/null |
mount /boot &> /dev/null |
139 |
|
|
140 |
|
add_conf_prot_mask /etc/grub.d |
141 |
|
add_conf_prot_ignore /etc/conf.d/grub |
142 |
} |
} |
143 |
|
|
144 |
postinstall() |
postinstall() |