diff options
Diffstat (limited to 'office/SOGo/SOGo.SlackBuild')
-rw-r--r-- | office/SOGo/SOGo.SlackBuild | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/office/SOGo/SOGo.SlackBuild b/office/SOGo/SOGo.SlackBuild index 7ae97ccab6..4866cfa171 100644 --- a/office/SOGo/SOGo.SlackBuild +++ b/office/SOGo/SOGo.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for SOGo -# Copyright 2018-2019 Chris Walker Kempner, TX +# Copyright 2018-2020 Chris Walker Kempner, TX # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,19 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220218 bkw: Modified by SlackBuilds.org: +# - get the docs out of DOWNLOAD in the info file. they were getting +# downloaded (or failing to, due to user-agent checking on the +# server), but only installed if the user set an environment +# variable. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=SOGo -VERSION=${VERSION:-4.1.1} +VERSION=${VERSION:-5.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +44,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} @@ -81,9 +94,9 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -131,17 +144,18 @@ sed -e "s,/lib/GNUstep,/lib${LIBDIRSUFFIX}/GNUstep,g" \ # Install documentation mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COPYING.GPL COPYING.LGPL ChangeLog ChangeLog.old NEWS README.md \ + COPYING.GPL COPYING.LGPL ChangeLog ChangeLog.old README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -if [ "${INSTALL_DOCS:-no}" != "no" ]; then - cp -a \ - $CWD/SOGoInstallationGuide.pdf \ - $CWD/SOGoMozillaThunderbirdConfigurationGuide.pdf \ - $CWD/SOGoOutlookConnectorConfigurationGuide.pdf \ - $PKG/usr/doc/$PRGNAM-$VERSION -fi +# 20220218 bkw: install PDF docs, if available. +for i in \ + SOGoInstallationGuide \ + SOGoMozillaThunderbirdConfigurationGuide \ + SOGoOutlookConnectorConfigurationGuide +do + [ -e $CWD/$i.pdf ] && cat $CWD/$i.pdf > $PKG/usr/doc/$PRGNAM-$VERSION/$i.pdf +done # Install backup script cat Scripts/sogo-backup.sh > $PKG/usr/doc/$PRGNAM-$VERSION/sogo-backup.sh @@ -165,4 +179,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 |