aboutsummaryrefslogtreecommitdiff
path: root/network/exim/exim.SlackBuild
diff options
context:
space:
mode:
authorThomas Morper <thomas@beingboiled.info>2017-12-23 12:22:47 +0000
committerRobby Workman <rworkman@slackbuilds.org>2017-12-27 18:11:22 -0600
commitc0d2b647445bbccd59a233cbb37cb28e29f4f294 (patch)
tree97baf62c55c713c12fe0a8540f0682838da5fd6d /network/exim/exim.SlackBuild
parent064e99737370b15c1685b67e088806f1983e883e (diff)
network/exim: Updated for version 4.90.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/exim/exim.SlackBuild')
-rw-r--r--network/exim/exim.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/network/exim/exim.SlackBuild b/network/exim/exim.SlackBuild
index 7fe8b2e3cfc4..3d82fd21e8fa 100644
--- a/network/exim/exim.SlackBuild
+++ b/network/exim/exim.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=exim
-VERSION=${VERSION:-4.89.1}
+VERSION=${VERSION:-4.90}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,7 +57,7 @@ fi
set -e
# Check if the exim user and group exist. If not, then bail.
-if [ "$(id -g exim 2> /dev/null)" != "222" -o "$(id -u exim 2> /dev/null)" != "222" ]; then
+if [ -z "$(getent group exim)" -o -z "$(getent passwd exim)" ]; then
echo " You must have an 'exim' user and group to run this script."
echo " # groupadd -g 222 exim"
echo " # useradd -d /var/spool/exim -g exim -s /bin/false -u 222 exim"
@@ -109,7 +109,7 @@ mkdir -p $PKG/usr/lib # no LIBDIRSUFFIX here!
# Install accompanying scripts and configs.
mkdir -p $PKG/etc/{cron.daily,logrotate.d,rc.d}
-install -m 0755 $CWD/contrib/rc.exim.new $PKG/etc/rc.d/rc.exim.new
+install -m 0644 $CWD/contrib/rc.exim $PKG/etc/rc.d/rc.exim.new
install -m 0755 $CWD/contrib/exim.cron $PKG/etc/cron.daily/exim.new
install -m 0644 $CWD/contrib/exim.logrotate $PKG/etc/logrotate.d/exim.new
@@ -121,8 +121,9 @@ chown -R exim.exim $PKG/var/{log,spool}/exim
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- $CWD/README.SBo ABOUT ACKNOWLEDGMENTS CHANGES CONTRIBUTING LICENCE* NOTICE README* doc \
+ ABOUT ACKNOWLEDGMENTS CHANGES CONTRIBUTING LICENCE* NOTICE README* doc \
$PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/README.SBo > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Don't use the default config - make it part of the documentation.