aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox/APKBUILD
diff options
context:
space:
mode:
authorOliver Smith <ollieparanoid@bitmessage.ch>2017-06-07 19:45:39 +0200
committerOliver Smith <ollieparanoid@bitmessage.ch>2017-06-07 19:45:39 +0200
commit23f4c6bd6c0c8c8f616facad94865e7961cdfb2d (patch)
tree936889a3d8e1e8e2f25ceba11d814bdeed04b50d /main/busybox/APKBUILD
parent4fe0d91c731fa63f14312e4253ad5b2331bd3311 (diff)
downloadaports-23f4c6bd6c0c8c8f616facad94865e7961cdfb2d.tar.gz
aports-23f4c6bd6c0c8c8f616facad94865e7961cdfb2d.tar.bz2
aports-23f4c6bd6c0c8c8f616facad94865e7961cdfb2d.tar.xz
main/busybox: add subpackage busybox-extras
The following programs have been moved from busybox to -extras: ftpget, ftpput, telnet, tftp, ftpd, httpd New programs in -extras: telnetd, tftpd
Diffstat (limited to 'main/busybox/APKBUILD')
-rw-r--r--main/busybox/APKBUILD39
1 files changed, 32 insertions, 7 deletions
diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD
index a636bee1f1..ce5548c83f 100644
--- a/main/busybox/APKBUILD
+++ b/main/busybox/APKBUILD
@@ -1,8 +1,9 @@
# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
+# Contributor: Oliver Smith <ollieparanoid@bitmessage.ch>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=busybox
pkgver=1.26.2
-pkgrel=4
+pkgrel=5
pkgdesc="Size optimized toolbox of many common UNIX utilities"
url=http://busybox.net
arch="all"
@@ -11,8 +12,9 @@ makedepends_build=""
makedepends_host="linux-headers"
makedepends="$makedepends_build $makedepends_host"
checkdepends="zip"
-install="$pkgname.post-install $pkgname.post-upgrade"
-subpackages="$pkgname-static $pkgname-suid"
+install="$pkgname.post-install $pkgname.post-upgrade
+ $pkgname-extras.post-install $pkgname-extras.pre-deinstall"
+subpackages="$pkgname-static $pkgname-suid $pkgname-extras"
options="suid !check"
triggers="busybox.trigger=/bin:/usr/bin:/sbin:/usr/sbin:/lib/modules/*"
source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2
@@ -38,6 +40,7 @@ source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2
acpid.logrotate
busyboxconfig
+ busyboxconfig-extras
bbsuid.c
dad.if-up
nologin.c
@@ -46,13 +49,15 @@ builddir="$srcdir"/$pkgname-$pkgver
_staticdir="$srcdir"/build-static
_dyndir="$srcdir"/build-dynamic
+_dyndir_extras="$srcdir"/build-dynamic-extras
_config="$srcdir"/busyboxconfig
+_config_extras="$srcdir"/busyboxconfig-extras
prepare() {
default_prepare
cd "$builddir"
- mkdir -p "$_staticdir" "$_dyndir"
+ mkdir -p "$_staticdir" "$_dyndir" "$_dyndir_extras"
cp "$srcdir"/nologin.c loginutils/
}
@@ -72,6 +77,16 @@ build() {
make -C "$builddir" O="$PWD" silentoldconfig
make
+ # build dynamic (extras)
+ cd "$_dyndir_extras"
+ msg "Building dynamic busybox-extras"
+ cp "$_config_extras" .config
+ [ "$CLIBC" = musl ] && sed -i \
+ -e "s/CONFIG_EXTRA_COMPAT=y/CONFIG_EXTRA_COMPAT=n/" \
+ .config
+ make -C "$builddir" O="$PWD" silentoldconfig
+ make
+
# build static
cd "$_staticdir"
msg "Building static busybox"
@@ -88,8 +103,11 @@ build() {
}
check() {
- cd "$_dyndir"
- SKIP_KNOWN_BUGS=1 make -C "$builddir" O="$PWD" V=1 check
+ cd "$_dyndir"
+ SKIP_KNOWN_BUGS=1 make -C "$builddir" O="$PWD" V=1 check
+
+ cd "$_dyndir_extras"
+ SKIP_KNOWN_BUGS=1 make -C "$builddir" O="$PWD" V=1 check
}
package() {
@@ -133,6 +151,12 @@ tty11
EOF
}
+extras() {
+ pkgdesc="Additional binaries of Busybox"
+ depends="${pkgname}"
+ install -Dm755 "$_dyndir_extras"/busybox "$subpkgdir"/bin/busybox-extras
+}
+
suid() {
pkgdesc="suid binaries of Busybox"
depends="${pkgname}"
@@ -169,7 +193,8 @@ c37d1583cfb32e7aa077e7f4ea121dd3b2e3cf989a3dca2793126bcd89eb6d8eb6fae94808556580
2adfc6c71cfcc5df12edef13228c92b34c7782615e60effc97e6e7a9aa7e015c24c7b3950a8a9a2bf3ba5efd43a08ad45b16b35b03c90275807380e0600cb70d fix-tests.patch
f26e090f5de0096ba5c4d46989ebe0ab5fa64c8bf54cd37ddec302fddfde23eac914858d86cc52bf3b5780a8e81ea2612ef6e713df2828e52c606f86a6816f39 location-for-cpio.patch
a9b1403c844c51934637215307dd9e2adb9458921047acff0d86dcf229b6e0027f4b2c6cdaa25a58407aad9d098fb5685d58eb5ff8d2aa3de4912cdea21fe54c acpid.logrotate
-43e5b1c699fffea4e41621faee8b3d28774e5888070113ae98a940c6837efec617bac7c78c34a2c982cbcccf25a67691c480be8ba4b8e552eed8bb0d3a09dac8 busyboxconfig
+8d6497242bc4b3d08afa5b3e80cf62b8b392818d4d5f9202681b2bebe4d0c9958841a937608233f744a6036676f0101116a54a2a57d3628306340b4a95c8a7d0 busyboxconfig
+9b7b2aa51b72eff97eb8f7eae42fefb3dc5801def9a7484948bd097e0232f245320c8225ff8605be1c298bed7e2ca5dccebf9e4204b541c84de7a5dd56d7d379 busyboxconfig-extras
c1dd56509277c59751907a27f067f1622191ddfd498acfe390d83136d36a41f2bdfc2fd4daf35af77219a66fb00fea20483f34112afd5df2ccd9f36ab548e66f bbsuid.c
a1127c8a384294135e11500fde7ead33b73d24b11c21911b08447a4c4ef71d7a9965d6466f60f2da64e3b877213b0a3e924a5add3c5333ee3ecde8c2a91c5e02 dad.if-up
4e7c291a70e879b74c0fc07c54a73ef50537d8be68fee6b2d409425c07afd2d67f9b6afcd8c33a7971014913cc5de85e45079681c9e77200c6cc2f34acfba6d2 nologin.c"