#!/bin/bash source /usr/share/slackdev/buildkit.sh # Global package metadata (applies to both packages): export VERSION=${VERSION:-8.14.3} export BUILD=${BUILD:-1} export PKGSERIES=${PKGSERIES:-n} export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.tgz # Ensure base ARM packages are installed first: slackbasedeps # Ensure build dependencies (we use lftp's lftpget to grab an faq!): # slackcheckpkgdeps tcpip || installpkg $PKGSTORE/n/tcpip-*tgz { slackcheckpkgdeps db44 || installpkg $PKGSTORE/l/db44-*.tgz || exit 99 ; } { slackcheckpkgdeps lftp || installpkg $PKGSTORE/n/lftp-*.tgz || exit 99 ; } { slackcheckpkgdeps cyrus-sasl || installpkg $PKGSTORE/n/cyrus-sasl-*.tgz || exit 99 ; } { slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-*.tgz || exit 99 ; } # Start fakeroot server: start_fakeroot # Package metadata for main sendmail package: export PKGNAM=sendmail export ARCH=arm export SLACKPACKAGE=$PKGNAM-$VERSION-$ARCH-$BUILD.tgz ( ./sendmail.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Build sendmail config package export PKGNAM=sendmail-cf export ARCH=noarch export SLACKPACKAGE=$PKGNAM-$VERSION-$ARCH-$BUILD.tgz ( ./sendmail-cf.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Compress the build log: bzip2 -9f build.*.log*