diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-14 09:30:35 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-14 09:31:52 +0000 |
commit | 13f7afcb44ab3fc34ab250aa7df135e1cb684cac (patch) | |
tree | a25fad57184ac951bf2d11564c06d2bc5c2e69f5 /main/busybox | |
parent | e64df37ddfc025e7437485894b812dcffc3b087d (diff) | |
download | aports-13f7afcb44ab3fc34ab250aa7df135e1cb684cac.tar.bz2 aports-13f7afcb44ab3fc34ab250aa7df135e1cb684cac.tar.xz |
main/busybox: use triggers in apk-tools
Diffstat (limited to 'main/busybox')
-rw-r--r-- | main/busybox/APKBUILD | 8 | ||||
-rw-r--r-- | main/busybox/busybox.post-install | 3 | ||||
l--------- | main/busybox/busybox.post-upgrade | 1 | ||||
-rw-r--r-- | main/busybox/busybox.trigger | 15 |
4 files changed, 18 insertions, 9 deletions
diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD index 3a5a6f8794..d5e7a5b557 100644 --- a/main/busybox/APKBUILD +++ b/main/busybox/APKBUILD @@ -1,17 +1,17 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=busybox pkgver=1.14.3 -pkgrel=0 +pkgrel=1 pkgdesc="Size optimized toolbox of many common UNIX utilities" url=http://busybox.net license="GPL-2" depends= -install="$pkgname.post-install $pkgname.post-upgrade" +install= #"$pkgname.post-install $pkgname.post-upgrade" +triggers="busybox.trigger:/bin /usr/bin /sbin /usr/sbin /lib/modules/*" source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2 $pkgname-1.11.1-bb.patch 0001-install-compat-fix-for-mode-of-created-files.patch bb-tar-numeric-owner.patch - $install busyboxconfig" build() { @@ -48,6 +48,4 @@ md5sums="d170bf5f97a41aec3a505eab690d5699 busybox-1.14.3.tar.bz2 4c0f3b486eaa0674961b7ddcd0c60a9b busybox-1.11.1-bb.patch 73d39c57483084298c7e46bdbbbea8d1 0001-install-compat-fix-for-mode-of-created-files.patch 0b5b2d7db201f90cd08f4a3164ee29a1 bb-tar-numeric-owner.patch -56b78c358797cd15fb64719a48939267 busybox.post-install -56b78c358797cd15fb64719a48939267 busybox.post-upgrade 0be49dc673a849b5bf5e670db8c8c7b6 busyboxconfig" diff --git a/main/busybox/busybox.post-install b/main/busybox/busybox.post-install deleted file mode 100644 index 8baed730c6..0000000000 --- a/main/busybox/busybox.post-install +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -/bin/busybox --install -s diff --git a/main/busybox/busybox.post-upgrade b/main/busybox/busybox.post-upgrade deleted file mode 120000 index 1f4b450e5e..0000000000 --- a/main/busybox/busybox.post-upgrade +++ /dev/null @@ -1 +0,0 @@ -busybox.post-install
\ No newline at end of file diff --git a/main/busybox/busybox.trigger b/main/busybox/busybox.trigger new file mode 100644 index 0000000000..8bdef2ba56 --- /dev/null +++ b/main/busybox/busybox.trigger @@ -0,0 +1,15 @@ +#!/bin/sh + +do_bb_install= + +for i in "$@"; do + case "$i" in + /lib/modules/*) /bin/busybox depmod ${i#/lib/modules/};; + *) do_bb_install=yes;; + esac +done + +if [ -n "$do_bb_install" ]; then + /bin/busybox --install -s +fi + |