wok-current diff grep/receipt @ rev 7714

Up: lmms to 0.4.9.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Dec 19 11:26:52 2010 +0000 (2010-12-19)
parents 2ea1249ebb14
children 64c3eda7d700
line diff
     1.1 --- a/grep/receipt	Wed Nov 03 10:07:25 2010 +0000
     1.2 +++ b/grep/receipt	Sun Dec 19 11:26:52 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 +}