summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-03-27 14:43:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-03-27 14:43:06 +0000
commitb4a243d8a75b2dfe2d3164705240104580df5363 (patch)
treeea4135154f65a6d3db7ca6a28401f6f540ff43f6
parentb1fe0678e2cfa0b67e01f5ca48fe726b9b434dac (diff)
downloadaports-b4a243d8a75b2dfe2d3164705240104580df5363.tar.bz2
aports-b4a243d8a75b2dfe2d3164705240104580df5363.tar.xz
extra/grep: add post-deinstall script that restores busybox links
-rw-r--r--extra/grep/APKBUILD10
-rw-r--r--extra/grep/grep.post-deinstall3
2 files changed, 9 insertions, 4 deletions
diff --git a/extra/grep/APKBUILD b/extra/grep/APKBUILD
index 1ab1567f..4bdc9647 100644
--- a/extra/grep/APKBUILD
+++ b/extra/grep/APKBUILD
@@ -2,15 +2,16 @@
# Maintainer:
pkgname=grep
pkgver=2.5.4
-pkgrel=0
+pkgrel=1
pkgdesc="Searches input files for lines containing a match to a specified pattern"
url="http://www.gnu.org/software/grep/grep.html"
license="GPL"
depends="uclibc pcre"
makedepends="pcre-dev"
-install=
+install="$pkgname.post-deinstall"
subpackages="$pkgname-doc"
-source="http://mirrors.kernel.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
+source="http://mirrors.kernel.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
+ $install"
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -25,4 +26,5 @@ build() {
}
-md5sums="92258031d98d4f12dfc6a6d24057e672 grep-2.5.4.tar.gz"
+md5sums="92258031d98d4f12dfc6a6d24057e672 grep-2.5.4.tar.gz
+b84506d253e04db3c5af9016fead45a3 grep.post-deinstall"
diff --git a/extra/grep/grep.post-deinstall b/extra/grep/grep.post-deinstall
new file mode 100644
index 00000000..99b57c46
--- /dev/null
+++ b/extra/grep/grep.post-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+busybox --install -s