# iputils/cfg - "Build" settings for package

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

[technotes]

1. The source tarball used by this  package was created based on "git"
upstream sources. The sources were obtained as follows:

      ocgitfetch --run https://github.com/iputils/iputils.git

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

2. The  upstream  version  of this  package,  if unmodified,  overlaps
"inetutils".  This package is included only to install 4 programs that
aren't in the overlap:

      arping clockdiff rarpd rdisc

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

[buildtimes]

00.00 hours (or 000.08 minutes) - HP EliteBook 8560w 32GB RAM
00.00 hours (or 000.10 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.00 hours (or 000.15 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM
00.01 hours (or 000.42 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.03 hours (or 001.98 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB
                                  RAM

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

[settings]
exepack   = yes
license   = tbd
mstatic   = yes
setpaths  = libcap
tmpsize   = 8M

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

[depends]
coreutils
grep:forward
libcap
libxslt
meson
ninja
sed

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

[configure]
PATH=$PRODTREE/python3/bin:$PATH
PP=$PKGDIR_PROD

rm -fr build
mkdir  build
meson  build \
    -D prefix=$PP \
    -D BUILD_RARPD=true \
    -D USE_IDN=false

cd build
if [ \! -f build.ninja ]; then exit 1; fi
meson configure

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

[build]
export LACPREARG="-DAI_CANONIDN=0x0080"
BINDIR=$PKGDIR_PROD/bin
mkdir -p $BINDIR

cd build
ninja_simple_build

cp -p arping clockdiff rarpd rdisc $BINDIR/

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

# 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  = Not checked yet
url_home    = n/a

url_lfs     = http://www.linuxfromscratch.org/blfs/view/stable/\
basicnet/net-tools.html

url_tarball = git               # See "technotes" in "cfg" file

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

[history]
170707 Added package. Started with s20151218.
180629 Added some Alpine patches
180701 Updated to 180701 ("git" date)
180902 Updated to 180902
210126 Updated to 3a95613b2 ("git" hash)
210428 Updated d5a27cdc1