busybox-initramfs: fix for !x86_64.

This commit is contained in:
Juan RP 2010-05-11 12:17:30 +02:00
parent cc86812548
commit d90873d8dc
1 changed files with 10 additions and 5 deletions

View File

@ -29,14 +29,19 @@ pre_build()
# It seems that gcc-4.5 generates a bad busybox binary, # It seems that gcc-4.5 generates a bad busybox binary,
# notably sed(1) segfaults on every command. Download a # notably sed(1) segfaults on every command. Download a
# binary from busybox.net. # binary from busybox.net.
${XBPS_FETCH_CMD} \ if [ "${xbps_machine}" = "x86_64" ]; then
http://www.busybox.net/downloads/binaries/${version}/busybox-x86_64 ${XBPS_FETCH_CMD} \
http://www.busybox.net/downloads/binaries/${version}/busybox-x86_64
fi
cp -f ${FILESDIR}/dotconfig ${wrksrc}/.config cp -f ${FILESDIR}/dotconfig ${wrksrc}/.config
} }
post_install() post_install()
{ {
mv ${wrksrc}/busybox-x86_64 \ if [ "${xbps_machine}" = "x86_64" ]; then
${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox mv ${wrksrc}/busybox-x86_64 \
chmod 755 ${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox ${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
chmod 755 ${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
fi
:
} }