wok-6.x annotate tar/receipt @ rev 897
module-init-tools: use lzlib to load modules compressed with gzip or lzma
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 12 11:53:31 2008 +0000 (2008-06-12) |
parents | a7bd0e5069b6 |
children | 866fa2493b1b |
rev | line source |
---|---|
pankso@455 | 1 # SliTaz package receipt. |
pankso@455 | 2 |
pankso@455 | 3 PACKAGE="tar" |
pankso@613 | 4 VERSION="1.20" |
pankso@455 | 5 CATEGORY="utilities" |
pankso@455 | 6 SHORT_DESC="GNU tar archiving tools." |
pankso@455 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@455 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@613 | 9 WEB_SITE="http://www.gnu.org/software/tar/" |
pankso@455 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@455 | 11 |
pankso@455 | 12 # Rules to configure and make the package. |
pankso@455 | 13 compile_rules() |
pankso@455 | 14 { |
pankso@455 | 15 cd $src |
pankso@455 | 16 ./configure \ |
pankso@455 | 17 --prefix=/usr \ |
pankso@455 | 18 --libexecdir=/usr/lib/$PACKAGE \ |
pankso@455 | 19 $CONFIGURE_ARGS |
pankso@455 | 20 make |
pankso@455 | 21 make DESTDIR=$PWD/_pkg install |
pankso@455 | 22 } |
pankso@455 | 23 |
pankso@455 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@455 | 25 genpkg_rules() |
pankso@455 | 26 { |
pankso@455 | 27 mkdir -p $fs/usr |
pankso@455 | 28 cp -a $_pkg/usr/bin $fs/usr |
pankso@455 | 29 } |
pankso@455 | 30 |
pankso@455 | 31 # Prevent erasing busybox... |
pankso@455 | 32 pre_install() |
pankso@455 | 33 { |
pankso@455 | 34 local root |
pankso@455 | 35 root=$1 |
pankso@455 | 36 rm -f $root/usr/bin/tar |
pankso@455 | 37 } |
pankso@455 | 38 |
pankso@455 | 39 post_remove() |
pankso@455 | 40 { |
pankso@455 | 41 ln -s /bin/busybox /usr/bin/tar |
pankso@455 | 42 } |