wok view grep/receipt @ rev 17502

grep: fix busybox paths
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 08 10:35:01 2015 +0100 (2015-01-08)
parents 2b9f96603415
children 04239f2844c3
line source
1 # SliTaz package receipt.
3 PACKAGE="grep"
4 VERSION="2.11"
5 CATEGORY="development"
6 SHORT_DESC="GNU Global Regular Expression Print."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnu.org/software/grep/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="pcre"
14 BUILD_DEPENDS="pcre-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure $CONFIGURE_ARGS &&
21 make && make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $install/usr/bin $fs/usr
29 }
31 # Pre and post install commands for Tazpkg.
32 # We must remove all Busybox symlink before installing.
33 #
34 pre_install()
35 {
36 local root
37 root=$1
38 echo "Processing pre-install commands..."
39 echo -n "Removing all Busybox replaced utils... "
40 for i in grep egrep fgrep ; do
41 rm -f $root$(busybox grep bin/$i$ \
42 $root/var/lib/tazpkg/installed/busybox/files.list)
43 done
44 status
45 }
47 post_remove()
48 {
49 for i in grep egrep fgrep ; do
50 ln -s /bin/busybox $root$(busybox grep bin/$i$ \
51 $root/var/lib/tazpkg/installed/busybox/files.list)
52 done
53 }