wok rev 7187
Fixed grep to remove and replace soft link to busybox in pre_install and post_remove functions.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Nov 08 22:43:35 2010 +0000 (2010-11-08) |
parents | 82c8f22f40ff |
children | 066e5d9c2219 |
files | grep/receipt |
line diff
1.1 --- a/grep/receipt Mon Nov 08 07:53:32 2010 +0000 1.2 +++ b/grep/receipt Mon Nov 08 22:43:35 2010 +0000 1.3 @@ -5,7 +5,6 @@ 1.4 CATEGORY="development" 1.5 SHORT_DESC="GNU Global Regular Expression Print." 1.6 MAINTAINER="paul@slitaz.org" 1.7 -DEPENDS="" 1.8 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.9 WEB_SITE="http://www.gnu.org/software/grep/" 1.10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.11 @@ -29,3 +28,20 @@ 1.12 cp -a $_pkg/usr/bin $fs/usr 1.13 } 1.14 1.15 +# Pre and post install commands for Tazpkg. 1.16 +# We must remove all Busybox symlink before installing. 1.17 +# 1.18 +pre_install() 1.19 +{ 1.20 + local root 1.21 + root=$1 1.22 + echo "Processing pre-install commands..." 1.23 + echo -n "Removing all Busybox replaced utils... " 1.24 + rm -f $root/usr/bin/grep 1.25 + status 1.26 +} 1.27 + 1.28 +post_remove() 1.29 +{ 1.30 + ln -s /bin/busybox /usr/bin/grep 1.31 +}