On Fri, Dec 14, 2018 at 03:39:34PM +0100, Renaud Allard wrote: > > > 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.
cp -r /usr/obj/ports/traccar-4.2/tracker-server.jar /usr/obj/ports/traccar-4.2/fake-amd64/usr/local/share/traccar/ /usr/obj/ports/traccar-4.2/bin/install -d -m 755 /etc/traccar install: /etc/traccar: Permission denied not yet.. as other ports, use @sample for the dir and the file.. Landry