diff options
Diffstat (limited to 'network/exim/exim.SlackBuild')
-rw-r--r-- | network/exim/exim.SlackBuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/network/exim/exim.SlackBuild b/network/exim/exim.SlackBuild index 7fe8b2e3cfc43..3d82fd21e8fac 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. |