mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
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
45 lines
1 KiB
Bash
45 lines
1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: $
|
|
#
|
|
|
|
# PROVIDE: tile38
|
|
# REQUIRE: LOGIN
|
|
# BEFORE: securelevel
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following line to /etc/rc.conf to enable `tile38':
|
|
#
|
|
# tile38_enable="YES"
|
|
#
|
|
# optional:
|
|
#
|
|
# tile38_flags (flags): Set extra flags here. More options in tile38(1)
|
|
# Default is empty "".
|
|
# tile38_user (user): Set user to run tile38.
|
|
# Default is "%%TILE38_USER%%".
|
|
# tile38_data (data): Set data directory path
|
|
# Default is "%%TILE38_DBDIR%%".
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="tile38"
|
|
rcvar="${name}_enable"
|
|
|
|
start_cmd="tile38_start"
|
|
|
|
command="%%PREFIX%%/bin/tile38-server"
|
|
pidfile="%%TILE38_RUNDIR%%/$name.pid"
|
|
|
|
# read configuration and set defaults
|
|
load_rc_config "$name"
|
|
: ${tile38_enable="NO"}
|
|
: ${tile38_user="%%TILE38_USER%%"}
|
|
: ${tile38_data="%%TILE38_DBDIR%%"}
|
|
|
|
tile38_start()
|
|
{
|
|
/usr/sbin/daemon -f -p ${pidfile} -u ${tile38_user} ${command} -d ${tile38_data} ${tile38_flags} ${rc_arg}
|
|
}
|
|
|
|
run_rc_command "$1"
|