diff --git a/mail/davmail/files/davmail.in b/mail/davmail/files/davmail.in index 1bad204d9812..6cbef07fd4f5 100644 --- a/mail/davmail/files/davmail.in +++ b/mail/davmail/files/davmail.in @@ -27,7 +27,7 @@ start_cmd="${name}_start" davmail_procname() { - JAVAVM_DRYRUN=yes "%%PREFIX%%/bin/java" | \ + JAVAVM_DRYRUN=yes "%%LOCALBASE%%/bin/java" | \ /usr/bin/awk -F= '{if ($1=="JAVAVM_PROG") print $2}' 2> /dev/null } @@ -37,7 +37,7 @@ required_files=${davmail_config} davmail_daemon() { - %%PREFIX%%/bin/java \ + %%LOCALBASE%%/bin/java \ -cp "%%DATADIR%%/davmail.jar:%%DATADIR%%/lib/*" \ davmail.DavGateway "${davmail_config}" & echo -n $! > ${pidfile} } diff --git a/mail/davmail/files/davmail.sh.in b/mail/davmail/files/davmail.sh.in index fe38b949fee8..c0326c9f4747 100644 --- a/mail/davmail/files/davmail.sh.in +++ b/mail/davmail/files/davmail.sh.in @@ -1,5 +1,5 @@ #!/bin/sh # $FreeBSD$ -exec %%PREFIX%%/bin/java \ +exec %%LOCALBASE%%/bin/java \ -cp "%%DATADIR%%/davmail.jar:%%DATADIR%%/lib/*" \ davmail.DavGateway "$@"