base-system-busybox: use /sbin too.

This commit is contained in:
Juan RP 2014-09-20 09:50:28 +02:00
parent 54c146046f
commit 78e3e803ca

View file

@ -1,7 +1,7 @@
# Build template for 'base-system-busybox'. # Build template for 'base-system-busybox'.
pkgname=base-system-busybox pkgname=base-system-busybox
version=1.22.1 version=1.22.1
revision=7 revision=8
wrksrc="busybox-${version}" wrksrc="busybox-${version}"
homepage="http://www.busybox.net" homepage="http://www.busybox.net"
hostmakedepends="perl" hostmakedepends="perl"
@ -34,13 +34,14 @@ do_build() {
make ${makejobs} make ${makejobs}
} }
do_install() { do_install() {
# Install everything to /usr/bin. # Install everything to /usr/bin and /usr/sbin.
vmkdir usr/bin vmkdir usr/bin
for f in bin sbin usr/sbin; do vmkdir usr/sbin
ln -sfr ${DESTDIR}/usr/bin ${DESTDIR}/${f} for f in bin sbin; do
ln -sfr ${DESTDIR}/usr/$f ${DESTDIR}/${f}
done done
make CONFIG_PREFIX=${DESTDIR} install make CONFIG_PREFIX=${DESTDIR} install
vinstall ${FILESDIR}/udhcpc-default.script \ vinstall ${FILESDIR}/udhcpc-default.script \
755 usr/share/udhcpc default.script 755 usr/share/udhcpc default.script
rm -f ${DESTDIR}/{bin,sbin,usr/sbin} rm -f ${DESTDIR}/{,s}bin
} }