# tar/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. In the past,  GNU "tar" allowed the use of wildcards.  For example,
the following command would extract 'C' source files from  the  speci-
fied "tar" file:

      tar xvf foo.tar \*.c

Since  release 1.15.91, the  standard  version of  GNU "tar"  disables
wildcard support unless a user or  system  administrator  specifically
enables it. This distro patches the program  to restores  the original
mode of operation.  For more information,  see the  ".patch" file pro-
vided.

#---------------------------------------------------------------------

[buildtimes]

00.03 hours (or 001.87 minutes) - HP EliteBook 8560w 32GB RAM
00.04 hours (or 002.15 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.04 hours (or 002.23 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.04 hours (or 002.40 minutes) - ThinkPad W530 i7 4x2 32GB RAM
00.04 hours (or 002.50 minutes) - ThinkPad E540 i7 4x2 16GB RAM 32-bit distro
00.10 hours (or 006.28 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB
                                  RAM

#---------------------------------------------------------------------

[settings]
build   = default
exepack = no
fortran = disabled
license = See "license*.txt" in installed tree
licfile = COPYING
master  = yes
nls     = disabled
purge   = no                    # This is a critical package
mstatic = yes

#---------------------------------------------------------------------

[depends]
acl:forward
bison2:forward
bison3:forward
bzip2
gawk:forward
grep:forward
gzip
lzop:forward
patch
sed
xz:forward

#---------------------------------------------------------------------

[configure]
export FORCE_UNSAFE_CONFIGURE=1

MANBASE=$PKGDIR_PROD/man
mkdir -p $MANBASE

LZOPPROG=$PRODTREE/lzop/bin/lzop
XZPROG=$PRODTREE/xzutils/bin/xz

if [ -f $LZOPPROG ]; then
    WITHLZOP="--with-lzop=$LZOPPROG"
else
    WITHLZTOP=""
fi

XZPROG=$PRODTREE/xzutils/bin/xz

if [ -f $XZPROG ]; then
    WITHXZ="--with-xz=$XZPROG"
else
    WITHXZ=""
fi

sed -e 's/acl\.h/bacon.h/g' -i configure

bash ./configure \
    --prefix=$PKGDIR_PROD          \
    --build=$LACARCHBUILD          \
    --host=$LACARCHHOST            \
    --disable-dependency-tracking  \
    --disable-acl                  \
    --disable-nls                  \
    --mandir=$MANBASE              \
    $WITHLZOP                      \
    $WITHXZ

sed -e 's/SUBDIRS = doc /SUBDIRS = /' -i Makefile.*

echo tar: Configured using WITHLZOP=$WITHLZOP
echo tar: Configured using WITHXZ=$WITHXZ

#---------------------------------------------------------------------

[postbuild]
rm -fr $PKGDIR_PROD/{sbin,share}

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = http://packages.debian.org/unstable/source/tar
url_home    = http://www.gnu.org/software/tar/
url_tarball = http://ftp.gnu.org/gnu/tar/tar-1.28.tar.bz2

url_lfs     = http://www.linuxfromscratch.org/lfs/view/stable/\
chapter06/tar.html