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