summaryrefslogtreecommitdiff
path: root/user/davmail/davmail.sh
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-04-14 19:01:17 -0500
committerMax Rees <maxcrees@me.com>2020-05-01 06:53:19 -0500
commitfe8c0a5d888110ad5015e3efff2159b999bcfea5 (patch)
tree276946517a59913accc50535202813faf0adaaeb /user/davmail/davmail.sh
parentddab973f7c870f6140ed1144671a453ad3fc850d (diff)
downloadpackages-fe8c0a5d888110ad5015e3efff2159b999bcfea5.tar.gz
packages-fe8c0a5d888110ad5015e3efff2159b999bcfea5.tar.bz2
packages-fe8c0a5d888110ad5015e3efff2159b999bcfea5.tar.xz
packages-fe8c0a5d888110ad5015e3efff2159b999bcfea5.zip
user/davmail: new package
Diffstat (limited to 'user/davmail/davmail.sh')
-rwxr-xr-xuser/davmail/davmail.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/user/davmail/davmail.sh b/user/davmail/davmail.sh
new file mode 100755
index 000000000..17c5cd45e
--- /dev/null
+++ b/user/davmail/davmail.sh
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+# Usage: davmail [</path/to/davmail.properties>]
+
+# force GTK2 to avoid crash with OpenJDK 11
+JAVA_OPTS="-Xmx512M -Dsun.net.inetaddr.ttl=60 -Djdk.gtk.version=2.2"
+JAVA_CP="/usr/lib/java/davmail/lib/*"
+exec java $JAVA_OPTS -cp "$JAVA_CP" davmail.DavGateway "$@"