mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Properly prefix java with LOCALBASE.
Submitted by: John Hein <z7dr6ut7gs@snkmail.com>
This commit is contained in:
parent
9f5419485f
commit
2e6bc86aad
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360324
@ -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}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
exec %%PREFIX%%/bin/java \
|
||||
exec %%LOCALBASE%%/bin/java \
|
||||
-cp "%%DATADIR%%/davmail.jar:%%DATADIR%%/lib/*" \
|
||||
davmail.DavGateway "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user