aboutsummaryrefslogtreecommitdiff
path: root/network/davmail
diff options
context:
space:
mode:
authorGiuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>2021-04-02 11:18:39 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-02 11:18:39 +0700
commit5e635b5de19ce525d5bde07f9d129f1a2ebc5d69 (patch)
treee32d35a2112159cf45514226766fdce0c57d0e31 /network/davmail
parent0a284b007e460e535e5da5bb794932608b8dff2d (diff)
network/davmail: Updated for version 5.5.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/davmail')
-rw-r--r--network/davmail/davmail.SlackBuild4
-rw-r--r--network/davmail/davmail.info6
-rw-r--r--network/davmail/davmail.sh15
3 files changed, 18 insertions, 7 deletions
diff --git a/network/davmail/davmail.SlackBuild b/network/davmail/davmail.SlackBuild
index 8166e5c38da56..1d4deb3c53c26 100644
--- a/network/davmail/davmail.SlackBuild
+++ b/network/davmail/davmail.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for DavMail
-# Copyright (c) 2015-2018 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
+# Copyright (c) 2015-2022 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,7 +27,7 @@
# Updated by Alfredo Tomasini <alto.tom@gmail.com> to support .zip releases
PRGNAM=davmail
-VERSION=${VERSION:-4.9.0}
+VERSION=${VERSION:-5.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
diff --git a/network/davmail/davmail.info b/network/davmail/davmail.info
index 5961fd492932c..e21dc8593a37e 100644
--- a/network/davmail/davmail.info
+++ b/network/davmail/davmail.info
@@ -1,8 +1,8 @@
PRGNAM="davmail"
-VERSION="4.9.0"
+VERSION="5.5.1"
HOMEPAGE="http://davmail.sourceforge.net"
-DOWNLOAD="https://sourceforge.net/projects/davmail/files/davmail/4.9.0/davmail-4.9.0-2652.zip"
-MD5SUM="0d907e0dac83cfe834d2260f6624a2f2"
+DOWNLOAD="https://sourceforge.net/projects/davmail/files/davmail/5.5.1/davmail-5.5.1-3299.zip"
+MD5SUM="ae194c3571e107081164913a001d6f27"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="jdk"
diff --git a/network/davmail/davmail.sh b/network/davmail/davmail.sh
index 117fb8188a272..4a2f245f6f8e3 100644
--- a/network/davmail/davmail.sh
+++ b/network/davmail/davmail.sh
@@ -1,4 +1,15 @@
#!/bin/sh
+
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
+
+if [ -n "$JAVA_HOME" ]; then
+ JAVA_CMD="$JAVA_HOME/bin/java"
+else
+ JAVA_CMD="$(which java)"
+fi
+
+for i in $BASE/lib/*; do
+ export CLASSPATH=$CLASSPATH:$i;
+done
+
+exec $JAVA_CMD -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1