# sendmail/cfg - "Build" settings for package

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

[technotes]

1. The source tarball used by this package has been renamed.

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

2. This distro  reserves the following  UIDs and GIDs for "sendmail's"
use:

      UID 26 = "smmtp" account
      GID 26 = "smmtp" group
      UID 34 = "mail"  account
      GID 26 = "mail"  group

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

[buildtimes]

00.01 hours (or 000.83 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM
00.01 hours (or 000.85 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.01 hours (or 000.87 minutes) - HP EliteBook 8560w 32GB RAM
00.02 hours (or 001.25 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.06 hours (or 003.62 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB
                                  RAM

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

[settings]
configure = none
kill      = killall sendmail
license   = See "license*.txt" in installed tree
licfile   = LICENSE
revision  = numeric
setup     = boot
tmpsize   = 15M

setpaths  = tcp-wrappers

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

[depends]
db
openldap
openssl
procmail
shadow
tcp-wrappers

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

[build]
rm -f /etc/mail/*.db
rm -f /etc/mail/Makefile
rm -f /usr/*bin/{sendmail,newaliases,vacation}
rm -f /usr/*bin/{editmap,mailstats,makemap,praliases,smrsh}

perl $PKGDIR_SPECIAL/sendmail.boot

BINDIR=$PKGDIR_PROD/bin
DOCDIR=$PKGDIR_PROD/doc
LIBDIR=$PKGDIR_PROD/lib
MISCDIR=$PKGDIR_PROD/misc
SBINDIR=$PKGDIR_PROD/sbin
MANDIR1=$PKGDIR_PROD/man/man1
MANDIR5=$PKGDIR_PROD/man/man5
MANDIR8=$PKGDIR_PROD/man/man8
ETCORIG=$PKGDIR_PROD/original

mkdir -p $BINDIR  $DOCDIR  $LIBDIR  $MISCDIR $SBINDIR
mkdir -p $MANDIR1 $MANDIR5 $MANDIR8 $ETCORIG

cp -p $PKGDIR_SPECIAL/{sendmail,submit}.mc cf/cf/

sed -e "s|__META_PREFIX__|$PKGDIR_PROD|"  \
    < $PKGDIR_SPECIAL/site.config.m4.in   \
    > devtools/Site/site.config.m4

sh Build
cd cf/cf
sh Build install-cf
cd ../..

sh Build install
cd libmilter
sh Build
cp ../obj.*/libmilter/libmilter.a $LIBDIR/

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

# 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/sendmail
url_home    = http://www.sendmail.org/

url_lfs     = http://www.linuxfromscratch.org/blfs/view/stable/\
server/sendmail.html

url_tarball = ftp://ftp.sendmail.org/pub/sendmail/\
sendmail.8.18.1.tar.gz

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

[history]
170504 Updated from 8.14.1 to 8.15.2
210912 Updated to 8.17.1
240311 Updated to 8.18.1