On 2018/12/14 09:44, Renaud Allard wrote:
> Hello,
>
> Here is a new port for traccar. This is a GPS tracker server written in
> java. https://traccar.org
> I have only tested it on amd64, but there is no reason it wouldn't work on
> any platform which supports jre.
>
> This port needs a new user:
> --- ports/infrastructure/db/user.list 3 Dec 2018 12:20:01 -0000 1.331
> +++ ports/infrastructure/db/user.list 14 Dec 2018 07:54:58 -0000
> @@ -332,3 +332,4 @@ id user group port options
> 821 _tenshi _tenshi sysutils/tenshi
> 822 _apertium-apy _apertium-apy www/apertium-apy
> 823 _opendkim _opendkim mail/opendkim
> +824 _traccar _traccar net/traccar
>
>
> Best Regards
@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
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.
COMMENT = Modern GPS Tracking Platform
V = 4.2
DISTNAME = traccar-${V}
EXTRACT_SUFX = .zip
DISTFILES = traccar-other-${V}${EXTRACT_SUFX}
WRKSRC = ${WRKDIR}
WRKDIST = ${WRKDIR}
REVISION = 0
simpler:
COMMENT = modern GPS tracking platform
V = 4.2
PKGNAME = traccar-${V}
DISTNAME = traccar-other-${V}
EXTRACT_SUFX = .zip
WRKDIST = ${WRKDIR}
No comments:
Post a Comment