summaryrefslogtreecommitdiff
path: root/harmony/busybox/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-07 22:28:35 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-07 22:28:35 -0500
commite070336d60ba45aa1f8cb596bfb1c820a1d9734d (patch)
treef9d2c26e2964f16ce36deb6b047f6d0da353db5b /harmony/busybox/APKBUILD
parentbcd53768c1798527f575611b0462124f691b1b7b (diff)
downloadpackages-e070336d60ba45aa1f8cb596bfb1c820a1d9734d.tar.gz
packages-e070336d60ba45aa1f8cb596bfb1c820a1d9734d.tar.bz2
packages-e070336d60ba45aa1f8cb596bfb1c820a1d9734d.tar.xz
packages-e070336d60ba45aa1f8cb596bfb1c820a1d9734d.zip
harmony/busybox: split /bin/sh properly
Diffstat (limited to 'harmony/busybox/APKBUILD')
-rw-r--r--harmony/busybox/APKBUILD12
1 files 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 <ncopa@alpinelinux.org>
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