38 lines
871 B
Makefile
38 lines
871 B
Makefile
# $OpenBSD: Makefile,v 1.13 2020/11/04 10:46:32 sthen Exp $
|
|
|
|
COMMENT = modern GPS tracking platform
|
|
V = 4.11
|
|
PKGNAME = traccar-${V}
|
|
DISTNAME = traccar-other-${V}
|
|
EXTRACT_SUFX = .zip
|
|
WRKDIST = ${WRKDIR}
|
|
|
|
CATEGORIES = geo
|
|
HOMEPAGE = https://www.traccar.org/
|
|
|
|
MAINTAINER = Renaud Allard <renaud@allard.it>
|
|
|
|
# MPL 2.0
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MASTER_SITES = https://github.com/traccar/traccar/releases/download/v${V}/
|
|
|
|
MODULES = java
|
|
MODJAVA_VER = 1.8+
|
|
|
|
RUN_DEPENDS= java/javaPathHelper
|
|
|
|
NO_BUILD = Yes
|
|
NO_TEST = Yes
|
|
|
|
do-configure:
|
|
${SUBST_CMD} ${WRKSRC}/conf/{default,traccar}.xml
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/traccar/
|
|
cd ${WRKSRC}; cp -r conf lib schema templates web tracker-server.jar \
|
|
${PREFIX}/share/traccar/
|
|
rm ${PREFIX}/share/traccar/conf/{default,traccar}.xml.*
|
|
|
|
.include <bsd.port.mk>
|