From e070336d60ba45aa1f8cb596bfb1c820a1d9734d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 7 Jun 2018 22:28:35 -0500 Subject: harmony/busybox: split /bin/sh properly --- harmony/busybox/APKBUILD | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/harmony/busybox/APKBUILD b/harmony/busybox/APKBUILD index a97c301f4..0c09b1126 100644 --- a/harmony/busybox/APKBUILD +++ b/harmony/busybox/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Natanael Copa pkgname=busybox pkgver=1.27.2 -pkgrel=3 +pkgrel=4 pkgdesc="Size optimized toolbox of many common UNIX utilities" url=http://busybox.net arch="all" @@ -15,7 +15,7 @@ checkdepends="zip" provides="/bin/sh /sbin/init" install="$pkgname.post-install $pkgname.post-upgrade $pkgname-extras.post-install $pkgname-extras.pre-deinstall" -subpackages="$pkgname-static $pkgname-suid $pkgname-extras" +subpackages="$pkgname-static $pkgname-suid $pkgname-extras $pkgname-binsh" options="suid !check" triggers="busybox.trigger=/bin:/usr/bin:/sbin:/usr/sbin:/lib/modules/*" source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2 @@ -164,6 +164,14 @@ suid() { install -m4111 bbsuid "$subpkgdir"/bin/bbsuid } +binsh() { + pkgdesc="Provide /bin/sh with BusyBox ash" + depends="${pkgname}" + + mkdir -p "$subpkgdir"/bin + mv "$pkgdir"/bin/sh "$subpkgdir"/bin +} + static() { pkgdesc="Statically linked Busybox" mkdir -p "$subpkgdir"/bin -- cgit v1.2.3-70-g09d2