# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # tile38 # tile38/pkg-plist # tile38/files # tile38/files/tile38.in # tile38/pkg-descr # tile38/distinfo # tile38/Makefile # echo c - tile38 mkdir -p tile38 > /dev/null 2>&1 echo x - tile38/pkg-plist sed 's/^X//' >tile38/pkg-plist << '8809d42c0ba41d8a59aef38137ec3311' Xbin/tile38-server Xbin/tile38-cli X@dir(%%TILE38_USER%%,%%TILE38_GROUP%%,) %%TILE38_DBDIR%% X@dir(%%TILE38_USER%%,%%TILE38_GROUP%%,) %%TILE38_RUNDIR%% 8809d42c0ba41d8a59aef38137ec3311 echo c - tile38/files mkdir -p tile38/files > /dev/null 2>&1 echo x - tile38/files/tile38.in sed 's/^X//' >tile38/files/tile38.in << '4982c51719e9495f77e3dde6b1248d41' X#!/bin/sh X# X# $FreeBSD: $ X# X X# PROVIDE: tile38 X# REQUIRE: LOGIN X# BEFORE: securelevel X# KEYWORD: shutdown X X# Add the following line to /etc/rc.conf to enable `tile38': X# X# tile38_enable="YES" X# X# optional: X# X# tile38_flags (flags): Set extra flags here. More options in tile38(1) X# Default is empty "". X# tile38_user (user): Set user to run tile38. X# Default is "tile38". X# tile38_data (data): Set data directory path X# Default is "/var/db/tile38". X X. /etc/rc.subr X Xname="tile38" Xrcvar="${name}_enable" X Xstart_cmd="tile38_start" Xstop_cmd="tile38_stop" X Xcommand="%%PREFIX%%/bin/tile38-server" Xpidfile="/var/run/$name/$name.pid" X X# read configuration and set defaults Xload_rc_config "$name" X: ${tile38_enable="NO"} X: ${tile38_user="tile38"} X: ${tile38_data="/var/db/tile38"} X Xcommand_args="${tile38_flags}" X Xtile38_start() X{ X /usr/bin/su -l ${tile38_user} -c "/usr/sbin/daemon -f -p ${pidfile} ${command} -d ${tile38_data} ${command_args} ${rc_arg}" X} X Xtile38_stop() X{ X [ -r ${pidfile} ] && kill -1 $( cat ${pidfile} ) X} X Xrun_rc_command "$1" 4982c51719e9495f77e3dde6b1248d41 echo x - tile38/pkg-descr sed 's/^X//' >tile38/pkg-descr << '852f0125b7dd230af43f51516350de27' XTile38 is an open source (MIT licensed), in-memory geolocation data store, Xspatial index, and realtime geofence. It supports a variety of object types Xincluding lat/lon points, bounding boxes, XYZ tiles, Geohashes, and GeoJSON. X XFeatures: X X Spatial index with search methods such as NEARBY, WITHIN, and INTERSECTS. X Realtime geofencing through persistent sockets or webhooks. X Object types of lat/lon, bbox, Geohash, GeoJSON, QuadKey, and XYZ tile. X Support for lots of Clients Libraries written in many different langauges. X Variety of client protocols, including http (curl), websockets, telnet, X and the Redis RESP. X Server responses are RESP or JSON. X Full command line interface. X Leader / follower replication. X In-memory database that persists on disk. X XWWW: http://tile38.com/ 852f0125b7dd230af43f51516350de27 echo x - tile38/distinfo sed 's/^X//' >tile38/distinfo << '5a2b2e7ebc9ee4f863276ca243cb0f71' XTIMESTAMP = 1465389710 XSHA256 (tidwall-tile38-1.2.0_GH0.tar.gz) = 8797cfe8ad0f787cc00c26a863329090a929257d9f5c5d8d20c17f05234cb2a5 XSIZE (tidwall-tile38-1.2.0_GH0.tar.gz) = 1701880 5a2b2e7ebc9ee4f863276ca243cb0f71 echo x - tile38/Makefile sed 's/^X//' >tile38/Makefile << 'e2fa9d481b6b1dacb0f1a9397bd5efa3' X# Created by: olevole@olevole.ru X# $FreeBSD: $ X XPORTNAME= tile38 XPORTVERSION= 1.2.0 XCATEGORIES= databases X XMAINTAINER= olevole@olevole.ru XCOMMENT= In-memory geolocation data store, spatial index, and realtime geofence X XLICENSE= MIT XLICENSE_FILE= ${WRKSRC}/LICENSE X XBUILD_DEPENDS= go>=1.4:lang/go \ X bash:shells/bash XRUN_DEPENDS= go>=1.4:lang/go \ X bash:shells/bash X XUSES= shebangfix XSHEBANG_FILES= build.sh X XUSE_RC_SUBR= tile38 X XUSE_GITHUB= yes XGH_ACCOUNT= tidwall XGH_PROJECT= tile38 X XUSERS= ${PORTNAME} XGROUPS= ${PORTNAME} X XTILE38_DBDIR?= /var/db/tile38 XTILE38_RUNDIR?= /var/run/tile38 X XSUB_LIST+= PORTNAME=${PORTNAME} \ X TILE38_USER=${USERS} \ X TILE38_DBDIR=${TILE38_DBDIR} \ X TILE38_RUNDIR=${TILE38_RUNDIR} X XPLIST_SUB+= TILE38_USER=${USERS} \ X TILE38_GROUP=${GROUPS} \ X TILE38_DBDIR=${TILE38_DBDIR} \ X TILE38_RUNDIR=${TILE38_RUNDIR} X Xdo-build: X @cd ${WRKSRC} && make X Xdo-install: X @${MKDIR} ${STAGEDIR}${PREFIX}/bin X ${MKDIR} ${STAGEDIR}${TILE38_DBDIR} ${STAGEDIR}${TILE38_RUNDIR} X ${CHOWN} ${USERS}:${GROUPS} ${STAGEDIR}${TILE38_DBDIR} ${STAGEDIR}${TILE38_RUNDIR} X ${INSTALL_PROGRAM} ${WRKSRC}/tile38-cli ${STAGEDIR}${PREFIX}/bin/ X ${INSTALL_PROGRAM} ${WRKSRC}/tile38-server ${STAGEDIR}${PREFIX}/bin/ X X.include e2fa9d481b6b1dacb0f1a9397bd5efa3 exit