diff options
Diffstat (limited to 'network/exim/exim.SlackBuild')
-rw-r--r-- | network/exim/exim.SlackBuild | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/network/exim/exim.SlackBuild b/network/exim/exim.SlackBuild index 9e5204563f..c67e765b50 100644 --- a/network/exim/exim.SlackBuild +++ b/network/exim/exim.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Exim -# Copyright 2012-2019 Thomas Morper, Augsburg, Germany +# Copyright 2012-2024 Thomas Morper, Nürnberg, Germany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=exim -VERSION=${VERSION:-4.92.3} +VERSION=${VERSION:-4.97.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +# We need this when building/testing release candidates. +SRCVERSION=${VERSION/_/-} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +41,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -67,9 +77,9 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVERSION +tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.xz +cd $PRGNAM-$SRCVERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -98,8 +108,8 @@ mv $(readlink -f $PKG/usr/sbin/exim) $PKG/usr/sbin/exim # Additional symlinks provide compatibility with sendmail. mkdir -p $PKG/usr/lib # no LIBDIRSUFFIX here! -( cd $PKG/usr/lib; ln -s /usr/sbin/exim sendmail ) -( cd $PKG/usr/sbin; ln -s /usr/sbin/exim sendmail ) +ln -s ../sbin/exim $PKG/usr/lib/sendmail +ln -s exim $PKG/usr/sbin/sendmail # Install accompanying scripts and configs. mkdir -p $PKG/etc/{cron.daily,logrotate.d,rc.d} @@ -129,4 +139,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |