# HG changeset patch # User Christopher Rogers # Date 1289256215 0 # Node ID 403cd0ae15725e1d87cfe257b3f55893a509dc2c # Parent 82c8f22f40ffb6009c2f112396621e954f302d83 Fixed grep to remove and replace soft link to busybox in pre_install and post_remove functions. diff -r 82c8f22f40ff -r 403cd0ae1572 grep/receipt --- a/grep/receipt Mon Nov 08 07:53:32 2010 +0000 +++ b/grep/receipt Mon Nov 08 22:43:35 2010 +0000 @@ -5,7 +5,6 @@ CATEGORY="development" SHORT_DESC="GNU Global Regular Expression Print." MAINTAINER="paul@slitaz.org" -DEPENDS="" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.gnu.org/software/grep/" WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" @@ -29,3 +28,20 @@ cp -a $_pkg/usr/bin $fs/usr } +# Pre and post install commands for Tazpkg. +# We must remove all Busybox symlink before installing. +# +pre_install() +{ + local root + root=$1 + echo "Processing pre-install commands..." + echo -n "Removing all Busybox replaced utils... " + rm -f $root/usr/bin/grep + status +} + +post_remove() +{ + ln -s /bin/busybox /usr/bin/grep +}