On 12/14/18 1:10 PM, Stuart Henderson wrote:


should be more like this:

@owner _traccar
@group _traccar
@sample /var/db/traccar/
@sample /var/log/traccar/
@group
@owner


daemon="/usr/local/jre-1.8.0/bin/java -XX:-UsePerfData -jar 
/usr/local/share/traccar/tracker-server.jar /etc/traccar/traccar.xml"

look at how other java ports do this using javaPathHelper to
fetch the correct java binary (it could be jre or jdk and potentially
a newer version in future) - see e.g. net/unifi.

don't hardcode /usr/local in the port at all (rc script or Makefile -
use variables directly for those - or patches - needs passing through
${SUBST_CMD} after patching). again look at other ports for examples.

Attached a fully corrected port with better permissions.

Attachment: traccar.tar.gz
Description: application/gzip

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to