freebsd-ports/www/ot-recorder/files/patch-config.mk.in
Dan Langille 8f6592a3cc www/ot-recorder: Update to 0.9.2
Add patch to fix linking issues, already patched upstream.
2022-12-06 15:48:28 +00:00

50 lines
1.6 KiB
Makefile

--- config.mk.in.orig 2022-09-29 12:04:51 UTC
+++ config.mk.in
@@ -13,17 +13,19 @@
# $ 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 lmdb curl libconfig mosquitto gmake
+# $ 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
-FREEBSD ?= no
+CC = clang
+CFLAGS += -I/usr/local/include
+MORELIBS += -L /usr/local/lib -luuid
+FREEBSD ?= YES
#
# Now build recorder with the "gmake" command:
#
@@ -61,10 +63,10 @@ WITH_GREENWICH ?= 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
+STORAGEDEFAULT = /var/db/owntracks/recorder/store
# Where should the recorder find its document root (HTTP)?
-DOCROOT = /var/spool/owntracks/recorder/htdocs
+DOCROOT = /usr/local/www/ot-recorder
# Define the precision for reverse-geo lookups. The higher
# the number, the more granular reverse-geo will be:
@@ -87,7 +89,7 @@ GHASHPREC = 7
JSON_INDENT ?= no
# Location of optional default configuration file
-CONFIGFILE = /etc/default/ot-recorder
+CONFIGFILE = /usr/local/etc/ot-recorder/ot-recorder.conf
# Optionally specify the path to the Mosquitto libs, include here
MOSQUITTO_CFLAGS = `$(PKG_CONFIG) --cflags libmosquitto`