diff options
author | Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> | 2018-10-08 22:29:43 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-10-13 08:02:56 +0700 |
commit | c5f47138c5b893639a4c1b3d068aa09a7478f039 (patch) | |
tree | e6eda8baaadb5732b5cd9977ffe89e4d6276c651 | |
parent | 00383e05303fb259afd5449fe3861efe7727ed7c (diff) |
network/davmail: Updated for version 4.9.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | network/davmail/davmail.SlackBuild | 28 | ||||
-rw-r--r-- | network/davmail/davmail.info | 10 | ||||
-rw-r--r-- | network/davmail/davmail.sh | 9 |
3 files changed, 15 insertions, 32 deletions
diff --git a/network/davmail/davmail.SlackBuild b/network/davmail/davmail.SlackBuild index 6d9b474430041..8166e5c38da56 100644 --- a/network/davmail/davmail.SlackBuild +++ b/network/davmail/davmail.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for DavMail -# Copyright (c) 2015-2017 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> +# Copyright (c) 2015-2018 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,41 +24,27 @@ # Written by Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> # Modified by Mario Preksavec <mario@slackware.hr> +# Updated by Alfredo Tomasini <alto.tom@gmail.com> to support .zip releases PRGNAM=davmail -VERSION=${VERSION:-4.8.1.1} +VERSION=${VERSION:-4.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +ARCH=noarch CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ "$ARCH" = "i586" ]; then - SRCARCH="x86" -elif [ "$ARCH" = "i686" ]; then - SRCARCH="x86" -elif [ "$ARCH" = "x86_64" ]; then - SRCARCH="$( uname -m )" -fi - - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-linux-$SRCARCH-$VERSION* -tar xvf $CWD/$PRGNAM-linux-$SRCARCH-$VERSION*.tgz -cd $PRGNAM-linux-$SRCARCH-$VERSION* +rm -rf $PRGNAM-$VERSION +unzip -d $PRGNAM-$VERSION $CWD/$PRGNAM-$VERSION-*.zip +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ diff --git a/network/davmail/davmail.info b/network/davmail/davmail.info index 5576908969a19..5961fd492932c 100644 --- a/network/davmail/davmail.info +++ b/network/davmail/davmail.info @@ -1,10 +1,10 @@ PRGNAM="davmail" -VERSION="4.8.1.1" +VERSION="4.9.0" HOMEPAGE="http://davmail.sourceforge.net" -DOWNLOAD="https://sourceforge.net/projects/davmail/files/davmail/4.8.1.1/davmail-linux-x86-4.8.1.1-2516.tgz" -MD5SUM="d46aba8b26ad140ea579e32340a2b86f" -DOWNLOAD_x86_64="https://sourceforge.net/projects/davmail/files/davmail/4.8.1.1/davmail-linux-x86_64-4.8.1.1-2516.tgz" -MD5SUM_x86_64="b066467e401effc7e6a608abe580da12" +DOWNLOAD="https://sourceforge.net/projects/davmail/files/davmail/4.9.0/davmail-4.9.0-2652.zip" +MD5SUM="0d907e0dac83cfe834d2260f6624a2f2" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" REQUIRES="jdk" MAINTAINER="Giuseppe Di Terlizzi" EMAIL="giuseppe.diterlizzi@gmail.com" diff --git a/network/davmail/davmail.sh b/network/davmail/davmail.sh index c41a4fde7c8c9..117fb8188a272 100644 --- a/network/davmail/davmail.sh +++ b/network/davmail/davmail.sh @@ -1,7 +1,4 @@ #!/bin/sh -DAVMAIL_HOME=/usr/share/davmail -for name in $DAVMAIL_HOME/lib/*.jar ; do - CP=$CP:$name -done -CP=$CP:$DAVMAIL_HOME/davmail.jar -exec "$JAVA_HOME/bin/java" -cp $CP 'davmail.DavGateway' "$@" +BASE=/usr/share/davmail +for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done +exec java -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1 |