network/opensmtpd: Fix permissions.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Richard Narron 2018-03-05 07:42:29 +07:00 committed by Willy Sudiarto Raharjo
parent f30c6b5cbf
commit 485e96ba62

View file

@ -3,7 +3,7 @@
# Slackware build script for opensmtpd
# Copyright 2013-2014 Robby Workman, Northport, Alabama, USA
# Copyright 2015-2016 Richard Narron, California, USA
# Copyright 2015-2018 Richard Narron, California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,8 +25,7 @@
PRGNAM=opensmtpd
VERSION=${VERSION:-6.0.3p1}
EXTRAS=${EXTRAS:-5.7.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -119,6 +118,10 @@ make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# bug fix thanks to Ed Rozenberg: change group for smtpctl
chgrp smtpq $PKG/usr/sbin/smtpctl
chmod 2555 $PKG/usr/sbin/smtpctl
# Create nice compat symlinks for sendmail
rm -f $PKG/usr/bin/sendmail $PKG/usr/sbin/sendmail
ln -s smtpctl $PKG/usr/sbin/sendmail