Hi Stuart,

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



@owner _traccar
@group _traccar
@dir var/db/traccar/
@dir var/log/traccar/
@exec chown _traccar:_traccar /var/db/traccar/ /var/log/traccar/
@group
@owner

should be more like this:

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


Agreed, that's what I did in the first place, but it did not work. Those directories don't exist in the archive. I hoped someone would come with a better way to do it because I didn't like my way, but @sample didn't work when I tested it.


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 better version

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

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

Reply via email to