22 |
gnu://${PNAME}/${SRCFILE} |
gnu://${PNAME}/${SRCFILE} |
23 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
24 |
mirror://${PNAME}/${PNAME}-${PVER}-confd.patch |
mirror://${PNAME}/${PNAME}-${PVER}-confd.patch |
25 |
mirror://${PNAME}/${PNAME}-${PVER}-alx.patch |
mirror://${PNAME}/${PNAME}-${PVER}-busybox.patch |
26 |
) |
) |
27 |
|
|
28 |
UP2DATE="updatecmd_gnu ${PNAME} gz" |
UP2DATE="updatecmd_gnu ${PNAME} gz" |
41 |
mpatch ${PNAME}-${PVER}-confd.patch || die |
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}-busybox.patch || die |
45 |
} |
} |
46 |
|
|
47 |
src_compile() |
src_compile() |
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 |
# 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 |
|
|
|
|
73 |
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 |
|
74 |
|
|
75 |
# docs |
# docs |
76 |
minstalldocs AUTHORS ChangeLog COPYING NEWS README THANKS TODO || die |
minstalldocs AUTHORS ChangeLog COPYING NEWS README THANKS TODO || die |
77 |
|
|
78 |
|
# setup a proper grub default conf |
79 |
|
minstalldir /etc/conf.d || die |
80 |
|
mcinjectfile grub.confd /etc/conf.d/grub || die |
81 |
|
|
82 |
|
# user custom creation scripts and delete the provided ones |
83 |
|
local i |
84 |
|
for i in 10_* 20_* 30_* 40_* 41_* README |
85 |
|
do |
86 |
|
if [[ -f /etc/grub.d/${i} ]] |
87 |
|
then |
88 |
|
rm /etc/grub.d/${i} || die |
89 |
|
fi |
90 |
|
done |
91 |
|
mcinjectexec 05_alx_header /etc/grub.d/ || die |
92 |
|
mcinjectexec 10_alx /etc/grub.d/ || die |
93 |
|
mcinjectexec 30_alx_hwdetect /etc/grub.d/ || die |
94 |
|
mcinjectexec 40_alx_reset /etc/grub.d/ || die |
95 |
} |
} |
96 |
|
|
97 |
preinstall() |
preinstall() |
98 |
{ |
{ |
99 |
mount /boot &> /dev/null |
mount /boot &> /dev/null |
100 |
|
|
101 |
|
add_conf_prot_mask /etc/grub.d |
102 |
|
add_conf_prot_ignore /etc/conf.d/grub |
103 |
} |
} |
104 |
|
|
105 |
postinstall() |
postinstall() |