39 |
mirror://${PNAME}/${PNAME}-${PVER}-respect-rootdelay-and-mount-devtmpfs-in-sysroot-if-supported.patch |
mirror://${PNAME}/${PNAME}-${PVER}-respect-rootdelay-and-mount-devtmpfs-in-sysroot-if-supported.patch |
40 |
mirror://${PNAME}/${PNAME}-${PVER}-add-linurc-symlink-to-sysroot.patch |
mirror://${PNAME}/${PNAME}-${PVER}-add-linurc-symlink-to-sysroot.patch |
41 |
mirror://${PNAME}/${PNAME}-${PVER}-fix-dev-handling.patch |
mirror://${PNAME}/${PNAME}-${PVER}-fix-dev-handling.patch |
42 |
mirror://${PNAME}/${PNAME}-${PVER}-klibc-mm1-circdep.patch |
mirror://${PNAME}/${PNAME}-${PVER}-klibc-1.5.22.patch |
43 |
|
|
44 |
) |
) |
45 |
|
|
61 |
# do not umount initrds dev,proc,sys but mount move it to real sysroot |
# do not umount initrds dev,proc,sys but mount move it to real sysroot |
62 |
mpatch ${PNAME}-${PVER}-fix-dev-handling.patch || die |
mpatch ${PNAME}-${PVER}-fix-dev-handling.patch || die |
63 |
|
|
64 |
# fix a inifinitive loop with klibc |
# update klibc to 1.5.22 |
65 |
mpatch ${PNAME}-${PVER}-klibc-mm1-circdep.patch || die |
mpatch ${PNAME}-${PVER}-klibc-1.5.22.patch || die |
66 |
|
|
67 |
# enable scsi,sata and pata checks for 2.6.29 as default |
# enable scsi,sata and pata checks for 2.6.29 as default |
68 |
sed -i -e "s:^\(DOSCSI=\).*:\1yes:" \ |
sed -i -e "s:^\(DOSCSI=\).*:\1yes:" \ |
81 |
src_compile() |
src_compile() |
82 |
{ |
{ |
83 |
cd ${SRCDIR} |
cd ${SRCDIR} |
84 |
mmake ARCH=${ARCH/i*86/i386} || die |
mmake -j1 ARCH=${ARCH/i*86/i386} || die |
85 |
} |
} |
86 |
|
|
87 |
preinstall() |
preinstall() |
88 |
{ |
{ |
89 |
add_conf_prot_ignore /etc/conf.d/mkinitrd |
add_conf_prot_ignore /etc/conf.d/mkinitrd |
90 |
} |
} |
91 |
|
|
92 |
|
postinstall() |
93 |
|
{ |
94 |
|
# re-create initrd |
95 |
|
mount /boot &> /dev/null |
96 |
|
kv="$(readlink /boot/initrd | sed -e 's:initrd-::' -e 's:.img::')" |
97 |
|
if [ -d /lib/modules/${kv} ] |
98 |
|
then |
99 |
|
mkinitrd -f /boot/initrd-"${kv}".img "${kv}" |
100 |
|
else |
101 |
|
echo "Warning: modules dir /lib/modules/${kv} does not exist!" |
102 |
|
fi |
103 |
|
} |