diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 18:24:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 18:24:11 +0000 |
commit | 2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd (patch) | |
tree | a63d3b3b1c89018b5419358eed5c2bb0acf1cd92 /main/busybox/APKBUILD | |
parent | e374901731eb35599bd6735de4dd38560e3a79b8 (diff) | |
download | aports-2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd.tar.bz2 aports-2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd.tar.xz |
move core/* to main/
added maintainer to several packages as well
Diffstat (limited to 'main/busybox/APKBUILD')
-rw-r--r-- | main/busybox/APKBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD new file mode 100644 index 0000000000..94621bb45a --- /dev/null +++ b/main/busybox/APKBUILD @@ -0,0 +1,57 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=busybox +pkgver=1.14.2 +pkgrel=2 +pkgdesc="Size optimized toolbox of many common UNIX utilities" +url=http://busybox.net +license="GPL-2" +depends= +install="$pkgname.post-install $pkgname.post-upgrade" +source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2 + busybox-1.14.2-df.patch + busybox-1.14.2-ls.patch + busybox-1.14.2-udhcpd.patch + $pkgname-1.11.1-bb.patch + bb-tar-numeric-owner.patch + $install + busyboxconfig" + +build() { + cd "$srcdir"/$pkgname-$pkgver + + #patches + for i in ../*.patch; do + msg "Applying $i" + if ! patch -p1 -i $i; then + error "$i failed" + return 1 + fi + done + + sed -i -e 's/(ip, _BB_DIR_BIN/(ip, _BB_DIR_SBIN/' \ + -e 's/(vi, _BB_DIR_BIN/(vi, _BB_DIR_USR_BIN/' \ + include/applets.h || return 1 + + # we set the install prefix with sed since it might differ depending + # on abuild version + sed -e "s:^CONFIG_PREFIX=.*:CONFIG_PREFIX=\"$pkgdir\":" \ + ../busyboxconfig > .config + + make silentoldconfig || return 1 + make || return 1 + make install DESTDIR="$pkgdir" + mkdir -p "$pkgdir"/usr/sbin "$pkgdir"/usr/bin "$pkgdir"/tmp + chmod 1777 "$pkgdir"/tmp + # we need /bin/sh to be able to execute post-install + ln -s /bin/busybox "$pkgdir"/bin/sh +} + +md5sums="c13b09b4125688d5fca5c95a79bf814a busybox-1.14.2.tar.bz2 +a34c5e72c3f5308838ddc3bf70642136 busybox-1.14.2-df.patch +b261df2f193bb97d8e3e59e02c957780 busybox-1.14.2-ls.patch +ca9a77bd4f6000d2b031a2cee555fcd6 busybox-1.14.2-udhcpd.patch +4c0f3b486eaa0674961b7ddcd0c60a9b busybox-1.11.1-bb.patch +0b5b2d7db201f90cd08f4a3164ee29a1 bb-tar-numeric-owner.patch +56b78c358797cd15fb64719a48939267 busybox.post-install +56b78c358797cd15fb64719a48939267 busybox.post-upgrade +0be49dc673a849b5bf5e670db8c8c7b6 busyboxconfig" |