diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-26 07:41:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-26 07:41:56 +0000 |
commit | cd6bf3c4d697b211e52463a308125de7bcf71e5a (patch) | |
tree | 50d0fcc7388e156ea85dfdf149b2620b4941eb9b | |
parent | 8d9d321723fe5361d0886f9f8f66801c1f11b0b3 (diff) | |
download | aports-cd6bf3c4d697b211e52463a308125de7bcf71e5a.tar.bz2 aports-cd6bf3c4d697b211e52463a308125de7bcf71e5a.tar.xz |
testing/coreutils: restore busybox links when uninstall
-rw-r--r-- | testing/coreutils/APKBUILD | 11 | ||||
-rw-r--r-- | testing/coreutils/coreutils.post-deinstall | 3 | ||||
l--------- | testing/coreutils/coreutils.post-upgrade | 1 |
3 files changed, 11 insertions, 4 deletions
diff --git a/testing/coreutils/APKBUILD b/testing/coreutils/APKBUILD index 861fe4eeac..0dc4e1f755 100644 --- a/testing/coreutils/APKBUILD +++ b/testing/coreutils/APKBUILD @@ -2,15 +2,16 @@ # Maintainer: pkgname=coreutils pkgver=7.1 -pkgrel=0 +pkgrel=1 pkgdesc="The basic file, shell and text manipulation utilities" url="http://www.gnu.org/software/coreutils/" license="GPL" depends="uclibc" makedepends="" -install= +install="$pkgname.post-deinstall $pkgname.post-upgrade" subpackages="$pkgname-doc" -source="http://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.gz" +source="http://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.gz + $install" build() { cd "$srcdir/$pkgname-$pkgver" @@ -25,4 +26,6 @@ build() { } -md5sums="cbb2b3d1718ee1237b808e00b5c11b1e coreutils-7.1.tar.gz" +md5sums="cbb2b3d1718ee1237b808e00b5c11b1e coreutils-7.1.tar.gz +b84506d253e04db3c5af9016fead45a3 coreutils.post-deinstall +b84506d253e04db3c5af9016fead45a3 coreutils.post-upgrade" diff --git a/testing/coreutils/coreutils.post-deinstall b/testing/coreutils/coreutils.post-deinstall new file mode 100644 index 0000000000..99b57c4635 --- /dev/null +++ b/testing/coreutils/coreutils.post-deinstall @@ -0,0 +1,3 @@ +#!/bin/sh + +busybox --install -s diff --git a/testing/coreutils/coreutils.post-upgrade b/testing/coreutils/coreutils.post-upgrade new file mode 120000 index 0000000000..3e2b3c2a22 --- /dev/null +++ b/testing/coreutils/coreutils.post-upgrade @@ -0,0 +1 @@ +coreutils.post-deinstall
\ No newline at end of file |