diff options
Diffstat (limited to 'office/SOGo')
-rw-r--r-- | office/SOGo/README | 5 | ||||
-rw-r--r-- | office/SOGo/SOGo.SlackBuild | 42 | ||||
-rw-r--r-- | office/SOGo/SOGo.info | 12 | ||||
-rw-r--r-- | office/SOGo/SOGoInstallationGuide.pdf | bin | 641253 -> 0 bytes | |||
-rw-r--r-- | office/SOGo/SOGoMozillaThunderbirdConfigurationGuide.pdf | bin | 122696 -> 0 bytes | |||
-rw-r--r-- | office/SOGo/SOGoOutlookConnectorConfigurationGuide.pdf | bin | 1420528 -> 0 bytes | |||
-rw-r--r-- | office/SOGo/docs.md5sums | 3 | ||||
-rw-r--r-- | office/SOGo/getdocs.sh | 13 |
8 files changed, 50 insertions, 25 deletions
diff --git a/office/SOGo/README b/office/SOGo/README index 448d935874..53fcf69222 100644 --- a/office/SOGo/README +++ b/office/SOGo/README @@ -11,8 +11,9 @@ middle of your servers to offer your users a uniform and complete interface to access their information. It has been deployed in production environments where thousands of users are involved. -Additional documentation can be installed by setting -INSTALL_DOCS=yes when executing this script. +The optional extra documentation (PDF files) will be installed if +they are present in the script's directory. You can download these by +running "sh getdocs.sh". Groupname and Username diff --git a/office/SOGo/SOGo.SlackBuild b/office/SOGo/SOGo.SlackBuild index a06ba4d7dc..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.2.0} +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" \ @@ -135,13 +148,14 @@ cp -a \ $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 diff --git a/office/SOGo/SOGo.info b/office/SOGo/SOGo.info index 690c9656e6..9cb4882bb9 100644 --- a/office/SOGo/SOGo.info +++ b/office/SOGo/SOGo.info @@ -1,14 +1,8 @@ PRGNAM="SOGo" -VERSION="4.2.0" +VERSION="5.0.1" HOMEPAGE="https://sogo.nu/" -DOWNLOAD="https://sogo.nu/files/downloads/SOGo/Sources/SOGo-4.2.0.tar.gz \ - https://sogo.nu/files/docs/SOGoInstallationGuide.pdf \ - https://sogo.nu/files/docs/SOGoMozillaThunderbirdConfigurationGuide.pdf \ - https://sogo.nu/files/docs/SOGoOutlookConnectorConfigurationGuide.pdf" -MD5SUM="0f9e7cedfb19bbfc45e6973b8973a40a \ - 67972da62429c2a41f494fccccb114a1 \ - d0a0535830b4317386caec5ac5f038e8 \ - c07e05c0c84bf46062316bc2b6f9df90" +DOWNLOAD="https://packages.sogo.nu/sources/SOGo-5.0.1.tar.gz" +MD5SUM="f7112b11568d68d58b32fb4ba64a8bbc" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="SOPE libmemcached" diff --git a/office/SOGo/SOGoInstallationGuide.pdf b/office/SOGo/SOGoInstallationGuide.pdf Binary files differdeleted file mode 100644 index 2410be2393..0000000000 --- a/office/SOGo/SOGoInstallationGuide.pdf +++ /dev/null diff --git a/office/SOGo/SOGoMozillaThunderbirdConfigurationGuide.pdf b/office/SOGo/SOGoMozillaThunderbirdConfigurationGuide.pdf Binary files differdeleted file mode 100644 index 7d5aebc4fe..0000000000 --- a/office/SOGo/SOGoMozillaThunderbirdConfigurationGuide.pdf +++ /dev/null diff --git a/office/SOGo/SOGoOutlookConnectorConfigurationGuide.pdf b/office/SOGo/SOGoOutlookConnectorConfigurationGuide.pdf Binary files differdeleted file mode 100644 index aa2dd4f057..0000000000 --- a/office/SOGo/SOGoOutlookConnectorConfigurationGuide.pdf +++ /dev/null diff --git a/office/SOGo/docs.md5sums b/office/SOGo/docs.md5sums new file mode 100644 index 0000000000..8d5c113023 --- /dev/null +++ b/office/SOGo/docs.md5sums @@ -0,0 +1,3 @@ +cf8bd301773b32d63b6efb9363d543f9 SOGoInstallationGuide.pdf +b15b25c66158d68adc5acdb08355566d SOGoMozillaThunderbirdConfigurationGuide.pdf +812601272142416df7e939ccccbf330c SOGoOutlookConnectorConfigurationGuide.pdf diff --git a/office/SOGo/getdocs.sh b/office/SOGo/getdocs.sh new file mode 100644 index 0000000000..cdbbc6513c --- /dev/null +++ b/office/SOGo/getdocs.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# 20220218 bkw: download the PDF docs for SOGo. upstream site does +# user-agent checking, so we pretend to be an ancient version of +# firefox. + +wget --user-agent 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)' \ + https://sogo.nu/files/docs/SOGoInstallationGuide.pdf \ + https://sogo.nu/files/docs/SOGoMozillaThunderbirdConfigurationGuide.pdf \ + https://sogo.nu/files/docs/SOGoOutlookConnectorConfigurationGuide.pdf + +md5sum -c docs.md5sums +exit $? |