From cd6bf3c4d697b211e52463a308125de7bcf71e5a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 26 Mar 2009 07:41:56 +0000 Subject: testing/coreutils: restore busybox links when uninstall --- testing/coreutils/APKBUILD | 11 +++++++---- testing/coreutils/coreutils.post-deinstall | 3 +++ testing/coreutils/coreutils.post-upgrade | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 testing/coreutils/coreutils.post-deinstall create mode 120000 testing/coreutils/coreutils.post-upgrade (limited to 'testing/coreutils') 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 -- cgit v1.2.3