-
-
Notifications
You must be signed in to change notification settings - Fork 121
/
config.mk.in
113 lines (91 loc) · 3.22 KB
/
config.mk.in
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Select features you want. Default is fine for most installations
# Uncomment the following for FreeBSD; this assumes:
#
# The following ports are required for building recorder:
#
# databases/lmdb ftp/curl devel/libconfig net/mosquitto devel/gmake
#
# You can install them via the ports collection as:
#
# $ cd /usr/ports/databases/lmdb; make install
# $ cd /usr/ports/ftp/curl; make install
# $ cd /usr/ports/devel/libconfig; make install
# $ cd /usr/ports/net/mosquitto; make install
# $ cd /usr/ports/devel/gmake; make install
# $ cd /usr/ports/devel/pkgconf; make install
# $ cd /usr/ports/misc/e2fsprogs-libuuid; make install
#
# Or as a package:
#
# $ sudo pkg install pkgconf lmdb curl libconfig mosquitto gmake e2fsprogs-libuuid
#
# Uncomment the following lines and replace "no" with "yes":
#
# CC = clang
# CFLAGS += -I/usr/local/include
# MORELIBS += -L /usr/local/lib -luuid
FREEBSD ?= no
#
# Now build recorder with the "gmake" command:
#
# $ gmake
#
# -- end FreeBSD
INSTALLDIR = /usr/local
# Do you want support for MQTT?
WITH_MQTT ?= yes
# Do you want recorder's built-in HTTP REST API?
WITH_HTTP ?= yes
# Do you want recorder support for shared views? Requires WITH_HTTP
# also requires -luuid on Linux.
WITH_TOURS ?= yes
# Do you have Lua libraries installed and want the Lua hook integration?
WITH_LUA ?= no
# Do you want support for the `pingping' monitoring feature?
WITH_PING ?= yes
# Do you want support for removing data via the API? (Dangerous)
WITH_KILL ?= no
# Do you want support for payload encryption with libsodium?
# This requires WITH_LMDB to be configured.
WITH_ENCRYPT ?= no
# Where should the recorder store its data? This directory must
# exist and be writeable by recorder (and readable by ocat)
STORAGEDEFAULT = /var/spool/owntracks/recorder/store
# Where should the recorder find its document root (HTTP)?
DOCROOT = /var/spool/owntracks/recorder/htdocs
# Should we support $TZ lookup in API data? If so, specify
# path to the database
WITH_TZ ?= yes
TZDATADB = /usr/share/owntracks/recorder/timezone16.bin
# 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
# Should the JSON emitted by recorder be indented? (i.e. beautified)
# yes or no
JSON_INDENT ?= no
# Location of optional default configuration file
CONFIGFILE = /etc/default/ot-recorder
# Optionally specify the path to the Mosquitto libs, include here
MOSQUITTO_CFLAGS = `$(PKG_CONFIG) --cflags libmosquitto`
MOSQUITTO_LIBS = `$(PKG_CONFIG) --libs libmosquitto`
# Milliseconds (ms) timeout for reverse geocoding
GEOCODE_TIMEOUT = 4000
# 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
LUA_CFLAGS = `$(PKG_CONFIG) --cflags lua`
LUA_LIBS = `$(PKG_CONFIG) --libs lua`
SODIUM_CFLAGS = `$(PKG_CONFIG) --cflags libsodium`
SODIUM_LIBS = `$(PKG_CONFIG) --libs libsodium`