blob: bfef8783fa41f4715c7e85046235d18fb7ee99bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: olevole@olevole.ru
PORTNAME= tile38
DISTVERSION= 1.12.0
CATEGORIES= databases
MAINTAINER= a.andersson.thn@gmail.com
COMMENT= In-memory geolocation data store, spatial index, and realtime geofence
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_aarch64= fails to build: vendor/golang.org/x/sys/unix/cap_freebsd.go:18:23: undefined: CAP_RIGHTS_VERSION_00
BUILD_DEPENDS= bash:shells/bash
USES= go shebangfix
SHEBANG_FILES= build.sh
USE_GITHUB= yes
GH_ACCOUNT= tidwall
USE_RC_SUBR= tile38
SSP_UNSAFE= yes
USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
TILE38_DBDIR= /var/db/tile38
TILE38_RUNDIR= /var/run/tile38
SUB_LIST= PORTNAME=${PORTNAME} \
TILE38_USER=${USERS} \
TILE38_DBDIR=${TILE38_DBDIR} \
TILE38_RUNDIR=${TILE38_RUNDIR}
PLIST_SUB= TILE38_USER=${USERS} \
TILE38_GROUP=${GROUPS} \
TILE38_DBDIR=${TILE38_DBDIR} \
TILE38_RUNDIR=${TILE38_RUNDIR}
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GO_ENV} ./build.sh
do-install:
@${MKDIR} ${STAGEDIR}${TILE38_DBDIR} ${STAGEDIR}${TILE38_RUNDIR}
${INSTALL_PROGRAM} ${WRKSRC}/tile38-cli ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/tile38-server ${STAGEDIR}${PREFIX}/bin/
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ./build.sh test
.include <bsd.port.mk>
|