diff options
Diffstat (limited to 'office/SOGo/SOGo.SlackBuild')
-rw-r--r-- | office/SOGo/SOGo.SlackBuild | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/office/SOGo/SOGo.SlackBuild b/office/SOGo/SOGo.SlackBuild index d2522ff8df24b..4866cfa1715da 100644 --- a/office/SOGo/SOGo.SlackBuild +++ b/office/SOGo/SOGo.SlackBuild @@ -22,6 +22,12 @@ # 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 @@ -38,9 +44,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -91,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" \ @@ -145,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 |