Index | Thread | Search

From:
Chaz Kettleson <chaz@pyr3x.com>
Subject:
Re: [maintainer update] misc/openhab
To:
Stuart Henderson <stu@spacehopper.org>
Cc:
ports@openbsd.org
Date:
Sun, 12 Apr 2026 13:36:31 -0400

Download raw body.

Thread
On Sun, Apr 12, 2026 at 06:17:49PM +0100, Stuart Henderson wrote:
> that's a reasonable way to do it, I have similar for librenms. does it
> actually need the -rf? if just -f is enough I'd prefer to just use that.
> also needs REVISION.

It does need the -r. Since there were no revisions in them (I assume
they started at 0 and therefore each has a 1 now) diff below

OK?

-- 
Chaz

diff --git a/misc/openhab/4/Makefile b/misc/openhab/4/Makefile
index 3e614866ea5..97e81fdd066 100644
--- a/misc/openhab/4/Makefile
+++ b/misc/openhab/4/Makefile
@@ -1,4 +1,5 @@
 OH_VERSION=	4.3.9
 MODJAVA_VER=	17
+REVISION=	1
 
 .include <bsd.port.mk>
diff --git a/misc/openhab/4/pkg/PLIST b/misc/openhab/4/pkg/PLIST
index 8118621cdab..7099c176ce5 100644
--- a/misc/openhab/4/pkg/PLIST
+++ b/misc/openhab/4/pkg/PLIST
@@ -1330,6 +1330,8 @@ share/examples/openhab/userdata/etc/
 @owner _openhab
 @group _openhab
 @sample /var/db/openhab/
+@exec rm -rf /var/db/openhab/cache/*
+@sample /var/db/openhab/cache/
 @sample /var/db/openhab/etc/
 @owner
 @group
diff --git a/misc/openhab/5/Makefile b/misc/openhab/5/Makefile
index 71489e8af3e..cf542abceee 100644
--- a/misc/openhab/5/Makefile
+++ b/misc/openhab/5/Makefile
@@ -1,4 +1,5 @@
 OH_VERSION=	5.1.3
 MODJAVA_VER=	21
+REVISION=	1
 
 .include <bsd.port.mk>
diff --git a/misc/openhab/5/pkg/PLIST b/misc/openhab/5/pkg/PLIST
index 9779fd2884e..c216f5764e2 100644
--- a/misc/openhab/5/pkg/PLIST
+++ b/misc/openhab/5/pkg/PLIST
@@ -1344,6 +1344,8 @@ share/examples/openhab/userdata/etc/
 @owner _openhab
 @group _openhab
 @sample /var/db/openhab/
+@exec rm -rf /var/db/openhab/cache/*
+@sample /var/db/openhab/cache/
 @sample /var/db/openhab/etc/
 @owner
 @group