diff options
author | Joe <joe@joelightning.com> | 2011-10-20 22:51:34 +0100 |
---|---|---|
committer | Joe <joe@joelightning.com> | 2011-10-20 22:51:34 +0100 |
commit | e866f0523be39471f4ff960fde220ff65ecfe503 (patch) | |
tree | 773659d4e29799c113d364c02b76b8bcde29d932 /community/busybox | |
parent | 3bba0cffb3b78e071fed7a076a70916dee05a38e (diff) | |
parent | 5c0a5f2b9fa7f1683f279728342aa7f5f0cf90a3 (diff) |
Merge branch 'master' of ssh://parabola-git/abslibre-mips64el
Diffstat (limited to 'community/busybox')
-rw-r--r-- | community/busybox/PKGBUILD | 7 | ||||
-rw-r--r-- | community/busybox/busybox.install | 13 |
2 files changed, 17 insertions, 3 deletions
diff --git a/community/busybox/PKGBUILD b/community/busybox/PKGBUILD index 6fd6943e1..8d34c17d3 100644 --- a/community/busybox/PKGBUILD +++ b/community/busybox/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 55611 2011-09-15 22:10:36Z ebelanger $ +# $Id: PKGBUILD 56916 2011-10-16 17:30:46Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Jens Pranaitis <jens@jenux.homelinux.org> pkgname=busybox pkgver=1.19.2 -pkgrel=2 +pkgrel=3 pkgdesc="Utilities for rescue and embedded systems" arch=("i686" "x86_64" 'mips64el') url="http://busybox.net" @@ -12,6 +12,7 @@ license=('GPL') makedepends=("make" "gcc" "sed" "ncurses") source=($url/downloads/$pkgname-$pkgver.tar.bz2 config) +install=busybox.install md5sums=('50267054345f1a0b77fe65f6e0e5ba29' 'edd5c66c974ccc1b0030fd00beaa1b02') @@ -26,5 +27,5 @@ build() { package() { cd "$srcdir/$pkgname-$pkgver" - install -Dm4755 busybox $pkgdir/bin/busybox + install -Dm755 busybox $pkgdir/bin/busybox } diff --git a/community/busybox/busybox.install b/community/busybox/busybox.install new file mode 100644 index 000000000..233b70799 --- /dev/null +++ b/community/busybox/busybox.install @@ -0,0 +1,13 @@ +post_install() { + echo "You may want to do setuid on /bin/busybox" + echo " chmod 4555 /bin/busybox" +} + +pre_upgrade() { + stat -c %a /bin/busybox >tmp/busybox.upgrade.script +} + +post_upgrade() { + [ -f tmp/busybox.upgrade.script ] && chmod `cat tmp/busybox.upgrade.script` /bin/busybox + rm -f tmp/busybox.upgrade.script +} |