Skip to content
Snippets Groups Projects
Commit e98cb2ec authored by Natanael Copa's avatar Natanael Copa
Browse files

main/busybox: ship new bbsuid with this package

new bbsuid creates symlinks like busybox from the busybox trigger
script.

fixes #527
parent 4dd8e64d
No related branches found
No related tags found
No related merge requests found
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=busybox
pkgver=1.18.4
pkgrel=1
pkgrel=2
_bbsuidver=0.6
pkgdesc="Size optimized toolbox of many common UNIX utilities"
url=http://busybox.net
arch="all"
......@@ -11,12 +12,14 @@ install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-static"
triggers="busybox.trigger:/bin /usr/bin /sbin /usr/sbin /lib/modules/*"
source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2
http://git.alpinelinux.org/cgit/bbsuid.git/snapshot/bbsuid-$_bbsuidver.tar.bz2
$pkgname-1.11.1-bb.patch
busybox-uname-is-not-gnu.patch
loginutils-sha512.patch
busyboxconfig"
_builddir="$srcdir"/$pkgname-$pkgver
_bbsuid="$srcdir"/bbsuid-$_bbsuidver
_config="$srcdir"/busyboxconfig
prepare() {
cd "$_builddir"
......@@ -36,6 +39,9 @@ prepare() {
}
build() {
cd "$_bbsuid"
make || return 1
cd "$_builddir"
msg "Building static busybox"
sed -e "s/.*CONFIG_PIE.*/\# CONFIG_PIE is not set/" \
......@@ -53,6 +59,9 @@ build() {
}
package() {
cd "$_bbsuid"
make install DESTDIR="$pkgdir" || return 1
cd "$_builddir"
mkdir -p "$pkgdir"/usr/sbin "$pkgdir"/usr/bin "$pkgdir"/tmp \
"$pkgdir"/var/cache/misc "$pkgdir"/bin "$pkgdir"/sbin
......@@ -63,7 +72,7 @@ package() {
}
static() {
triggers=
triggers=
mkdir -p "$subpkgdir"/bin
install -m755 "$_builddir"/busybox.static \
"$subpkgdir"/bin/busybox.static
......@@ -71,6 +80,7 @@ static() {
}
md5sums="b03c5b46ced732679e525a920a1a62f5 busybox-1.18.4.tar.bz2
968b3a058db04f95e9c4cdb44d7d3ddb bbsuid-0.6.tar.bz2
4c0f3b486eaa0674961b7ddcd0c60a9b busybox-1.11.1-bb.patch
b5375210f13fd6e1ca61a565e8fabd35 busybox-uname-is-not-gnu.patch
d21d70d590e9e04bfc65ecb23b9d1617 loginutils-sha512.patch
......
......@@ -14,6 +14,7 @@ for i in "$@"; do
done
if [ -n "$do_bb_install" ]; then
/bin/bbsuid --install
/bin/busybox --install -s
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment