#!/bin/bash source /usr/share/slackdev/buildkit.sh # Global package version and build details (applies to both packages): export VERSION=${VERSION:-8.18.1} export BUILD=${BUILD:-2} slack_var_pkgseries # If building in /patches for a Stable Release, we drop the packages into /tmp/patches/ slack_findpkgstore_is_stablerelease && { export PKGSTORE=$PORTPATCHPKGS export PKGSERIES=/ # unset as it's not required for patches export BUILD=1_slack15.1 mkdir -vpm755 $PKGSTORE/$PKGSERIES ;} # Set package name: export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.txz # Ensure build dependencies (we use lftp's lftpget to grab an faq!): # slackcheckpkgdeps tcpip || installpkg $PKGSTORE/n/tcpip-*tgz { slackcheckpkgdeps db48 || installpkg $PKGSTORE/l/db48-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps cyrus-sasl || installpkg $PKGSTORE/n/cyrus-sasl-[0-9]*.t?z || exit 99 ; } { slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-[0-9]*.t?z || exit 99 ; } # Not sure why it needs this -- but my original script had it in. { slackcheckpkgdeps lftp || installpkg $PKGSTORE/n/lftp-*.t?z || exit 99 ; } # Package metadata for main sendmail package: export PKGNAM=sendmail export SLACKPACKAGE=$PKGNAM-$VERSION-$ARCH-$BUILD.txz BUILDLOG=$SLKPORTARCH-$( basename $SLACKPACKAGE .t?z ).build.log ( ./sendmail.SlackBuild ) >& /dev/stdout | tee $BUILDLOG bzip2 -9fvz $BUILDLOG # Build sendmail config package export PKGNAM=sendmail-cf export ARCH=noarch export SLACKPACKAGE=$PKGNAM-$VERSION-$ARCH-$BUILD.txz BUILDLOG=$SLKPORTARCH-$( basename $SLACKPACKAGE .t?z ).build.log ( ./sendmail-cf.SlackBuild ) >& /dev/stdout | tee $BUILDLOG bzip2 -9fvz $BUILDLOG