freebsd-ports/databases/tile38/Makefile
Dmitry Marakasov db38d296fd - Add databases/tile38
Tile38 is an open source (MIT licensed), in-memory geolocation data store,
spatial index, and realtime geofence. It supports a variety of object types
including lat/lon points, bounding boxes, XYZ tiles, Geohashes, and GeoJSON.

Features:

    Spatial index with search methods such as NEARBY, WITHIN, and INTERSECTS.
    Realtime geofencing through persistent sockets or webhooks.
    Object types of lat/lon, bbox, Geohash, GeoJSON, QuadKey, and XYZ tile.
    Support for lots of Clients Libraries written in many different langauges.
    Variety of client protocols, including http (curl), websockets, telnet,
        and the Redis RESP.
    Server responses are RESP or JSON.
    Full command line interface.
    Leader / follower replication.
    In-memory database that persists on disk.

WWW: http://tile38.com/

PR:		210147
Submitted by:	olevole@olevole.ru
2016-06-23 23:16:03 +00:00

54 lines
1.1 KiB
Makefile

# Created by: olevole@olevole.ru
# $FreeBSD$
PORTNAME= tile38
PORTVERSION= 1.2.0
CATEGORIES= databases
MAINTAINER= olevole@olevole.ru
COMMENT= In-memory geolocation data store, spatial index, and realtime geofence
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go>=1.4:lang/go \
bash:shells/bash
RUN_DEPENDS= go>=1.4:lang/go \
bash:shells/bash
USE_GITHUB= yes
GH_ACCOUNT= tidwall
USES= shebangfix
SHEBANG_FILES= build.sh
USE_RC_SUBR= tile38
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} && ./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} && ./build.sh test
.include <bsd.port.mk>