git: ca597a4f5792 - main - www/ot-recorder: Update to 0.9.6

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Wed, 25 Oct 2023 17:00:02 UTC
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ca597a4f5792d054d10153c7d0339d34a70e82e4

commit ca597a4f5792d054d10153c7d0339d34a70e82e4
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2023-10-25 15:42:42 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2023-10-25 16:07:18 +0000

    www/ot-recorder: Update to 0.9.6
    
    While here, alter the incoming etc/ot-recorder/ot-recorder.conf.sample
    file so the value of OTR_STORAGEDIR matches the patch we apply to
    config.mk.in
---
 www/ot-recorder/Makefile                           |  2 +-
 www/ot-recorder/distinfo                           |  6 +++---
 www/ot-recorder/files/patch-config.mk.in           | 22 ++++++----------------
 .../files/patch-etc_ot-recorder.default            | 11 +++++++++++
 4 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/www/ot-recorder/Makefile b/www/ot-recorder/Makefile
index 2fe9cd4fac3b..aa8532f9002f 100644
--- a/www/ot-recorder/Makefile
+++ b/www/ot-recorder/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ot-recorder
-PORTVERSION=	0.9.2
+PORTVERSION=	0.9.6
 CATEGORIES=	www
 
 MAINTAINER=	dvl@FreeBSD.org
diff --git a/www/ot-recorder/distinfo b/www/ot-recorder/distinfo
index 2f6325b98900..f0623894f153 100644
--- a/www/ot-recorder/distinfo
+++ b/www/ot-recorder/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1670173683
-SHA256 (owntracks-recorder-0.9.2_GH0.tar.gz) = d3632895e46c36c1e484c021958e7bfee3b8977942ab28e7d47cf69c974f988e
-SIZE (owntracks-recorder-0.9.2_GH0.tar.gz) = 3306898
+TIMESTAMP = 1698236446
+SHA256 (owntracks-recorder-0.9.6_GH0.tar.gz) = 73bb2f6217a7c2aeabae4894f0b3499ce74f8d3b153c4ec3fa3b87358c3692fe
+SIZE (owntracks-recorder-0.9.6_GH0.tar.gz) = 3308976
diff --git a/www/ot-recorder/files/patch-config.mk.in b/www/ot-recorder/files/patch-config.mk.in
index 8b43ee7368c9..85aabb07a25e 100644
--- a/www/ot-recorder/files/patch-config.mk.in
+++ b/www/ot-recorder/files/patch-config.mk.in
@@ -1,31 +1,21 @@
---- config.mk.in.orig	2022-09-29 12:04:51 UTC
+--- config.mk.in.orig	2023-10-24 13:44:06 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
+@@ -22,10 +22,10 @@
  #
  # Uncomment the following lines and replace "no" with "yes":
  #
 -# CC      = clang
 -# CFLAGS += -I/usr/local/include
--# MORELIBS += -L /usr/local/lib
+-# MORELIBS += -L /usr/local/lib -luuid
 -FREEBSD ?= no
 +CC      = clang
 +CFLAGS += -I/usr/local/include
 +MORELIBS += -L /usr/local/lib -luuid
-+FREEBSD ?= YES
++FREEBSD ?= yes
  #
  # Now build recorder with the "gmake" command:
  #
-@@ -61,10 +63,10 @@ WITH_GREENWICH ?= no
+@@ -63,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)
@@ -38,7 +28,7 @@
  
  # Define the precision for reverse-geo lookups. The higher
  # the number, the more granular reverse-geo will be:
-@@ -87,7 +89,7 @@ GHASHPREC = 7
+@@ -89,7 +89,7 @@ GHASHPREC = 7
  JSON_INDENT ?= no
  
  # Location of optional default configuration file
diff --git a/www/ot-recorder/files/patch-etc_ot-recorder.default b/www/ot-recorder/files/patch-etc_ot-recorder.default
new file mode 100644
index 000000000000..ea5eff11a905
--- /dev/null
+++ b/www/ot-recorder/files/patch-etc_ot-recorder.default
@@ -0,0 +1,11 @@
+--- etc/ot-recorder.default.orig	2023-10-25 15:22:53 UTC
++++ etc/ot-recorder.default
+@@ -9,7 +9,7 @@
+ # Storage directory
+ #
+ 
+-# OTR_STORAGEDIR="/var/spool/owntracks/recorder/store"
++# OTR_STORAGEDIR="/var/db/owntracks/recorder/store"
+ 
+ # -----------------------------------------------------
+ # Address or hostname of the MQTT broker