recorder/config.mk.in

83 lines
2.4 KiB
Makefile
Raw Normal View History

# Select features you want. Default is fine for most installations
2016-03-04 10:14:35 -07:00
# Uncomment the following for FreeBSD; this assumes:
#
2016-07-18 11:24:26 -07:00
# cd /usr/ports/databases/lmdb; make config; make install clean
2016-03-04 10:14:35 -07:00
# cd /usr/ports/ftp/curl; make config; make install clean
# cd /usr/ports/devel/libconfig; make config; make install clean
#
# CC = clang
2016-07-18 11:24:26 -07:00
# CFLAGS += -I/usr/local/include
2016-03-04 10:14:35 -07:00
# MORELIBS += -L /usr/local/lib
# -- end FreeBSD
2015-09-11 05:13:10 -07:00
INSTALLDIR = /usr/local
2016-02-19 08:31:32 -07:00
# Do you want support for MQTT?
WITH_MQTT ?= yes
# Do you want recorder's built-in HTTP REST API?
2015-09-28 10:04:37 -07:00
WITH_HTTP ?= yes
2015-09-19 07:11:53 -07:00
# Do you have Lua libraries installed and want the Lua hook integration?
WITH_LUA ?= no
# Do you want support for the `pingping' monitoring feature?
2015-09-28 10:04:37 -07:00
WITH_PING ?= yes
# Do you want support for removing data via the API? (Dangerous)
2015-09-28 10:04:37 -07:00
WITH_KILL ?= no
# Do you want support for payload encryption with libsodium?
2016-01-24 05:39:10 -07:00
# This requires WITH_LMDB to be configured.
WITH_ENCRYPT ?= no
# Do you require support for OwnTracks Greenwich firmware?
WITH_GREENWICH ?= no
# Where should the recorder store its data? This directory must
# exist and be writeable by recorder (and readable by ocat)
2015-09-15 07:10:00 -07:00
STORAGEDEFAULT = /var/spool/owntracks/recorder/store
2015-09-11 06:48:56 -07:00
# Where should the recorder find its document root (HTTP)?
2015-09-15 07:10:00 -07:00
DOCROOT = /var/spool/owntracks/recorder/htdocs
2015-09-11 06:48:56 -07:00
# Define the precision for reverse-geo lookups. The higher
# the number, the more granular reverse-geo will be:
#
# 1 => 5,009.4km x 4,992.6km
# 2 => 1,252.3km x 624.1km
# 3 => 156.5km x 156km
# 4 => 39.1km x 19.5km
# 5 => 4.9km x 4.9km
# 6 => 1.2km x 609.4m
# 7 => 152.9m x 152.4m
# 8 => 38.2m x 19m
# 9 => 4.8m x 4.8m
# 10 => 1.2m x 59.5cm
GHASHPREC = 7
2015-09-11 01:35:11 -07:00
# Should the JSON emitted by recorder be indented? (i.e. beautified)
# yes or no
JSON_INDENT ?= no
2016-02-09 03:17:59 -07:00
# Location of optional default configuration file
CONFIGFILE = /etc/defaults/ot-recorder
# Optionally specify the path to the Mosquitto libs, include here
MOSQUITTO_INC = -I/usr/include
MOSQUITTO_LIB = -L/usr/lib
2015-09-15 02:24:17 -07:00
MORELIBS = # -lssl
2015-09-19 07:11:53 -07:00
2015-11-06 03:50:55 -07:00
# If WITH_LUA is configured, specify compilation and linkage flags
# for Lua either manually or using pkg-config. This may require tweaking,
# and in particular could require you to add the lua+version (e.g lua-5.2)
# to both pkg-config invocations
2015-09-21 03:20:11 -07:00
LUA_CFLAGS = `pkg-config --cflags lua`
LUA_LIBS = `pkg-config --libs lua`
SODIUM_CFLAGS = `pkg-config --cflags libsodium`
SODIUM_LIBS = `pkg-config --libs libsodium`