openhabVendor and technology agnostic open source smart-home software
4.3.11miscΣ=2 4.3.11Version of this port present on the latest quarterly branch.upstream: 5.2.4A newer version was found upstream by portscout, first on 2026-11-09.
openHAB is a software for integrating different home automation systems and
technologies into one single solution that allows over-arching automation
rules and that offers uniform user interfaces.
Reason: The rc.d script of 4.0.2 had an error which didn't take the user to
run openhab into account. After installing the update and stopping
openhab run (for the default settings)
chown -R openhab:openhab /var/db/openhab/userdata /var/log/openhab
If you use other directories for the userdata and logs, you need to
adapt accordingly.
Reason:
The update to openhab 4.0.0 may require changes to the running 3.x setup.
Read the release notes at
https://github.com/openhab/openhab-distro/releases/tag/4.0.0
and the blog entry at
https://www.openhab.org/blog/2023-07-23-openhab-4-0-release.html
for manual changes which are required before updating the port.
After the update the pkg-message provides some more info about manual
changes which are required to perform before the first start of 4.0.0.
Note, this includes a switch from java 11 to java 17. You can deinstall
openjdk11 afterwards, if it is not needed for something else.
2021-06-28
Affects: users of misc/openhab
Author: netchild@FreeBSD.org
Reason:
You need to run
sed -i -e 's:^karaf.framework.equinox=.*:karaf.framework.equinox=mvn\:org.eclipse.platform/org.eclipse.osgi/3.16.200: ; s:^karaf.framework.felix=.*:karaf.framework.felix=mvn\:org.apache.felix/org.apache.felix.framework/6.0.4:' /var/db/openhab/userdata/etc/config.properties
to update the version numbers of some components in a config file.
openhab*: Update to 4.3.7.
For those waiting for OpenHAB 5.0: 3rd party components have an OS check,
and FreeBSD is not supported in those 3rd party components.
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
USES=java:build,run if NO_BUILD is undefined. Else it defaults to
USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>
Approved by: mat (portmgr), glewis
Differential Revision: https://reviews.freebsd.org/D48201
*/*: Fix broken UCL
Most of this is a missing ] or }. In one case, it was leading
whitespace before a EOM tag.
PR: 259533
Approved by: portmgr (blanket)
misc/openhab: take runtime user into account, fix piddir handling
The rc.d script lost the runtime user handling and the piddir was not
set which caused warnings in the prestart routine.
Noticed by: Martin ehk <rehak@tekkirk.org>
misc/openhab*: update to 4.0.2, rc.d script changes
The rc.d script is now instance-aware (like the tomcat port). [1]
This allows to make a copy of the rc.d script to a different name and
use similar-named rc.conf variables to start a second instance of
openhab.
Submitted by: Jürgen Weber <weberjn@gmail.com> [1]
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
misc/openhab: cd to '/' on start
/root may have the rights "o=", which will result in issues on start.
Adapt the command line arguments to daemon(8) to cd to /.
Reported by: Sandro Wirth <sandro.wirth@gmx.de>
Tested by: Sandro Wirth <sandro.wirth@gmx.de>
misc/openhab: new v3 based upon copy from openhab2
- copy openhab2* to openhab (follow upstream)
- update to 3.0.2
- remove update script (no auto migration from v2, scrip may come back
later, if needed)
- use openhab instead openhabvX directories (follow upstream)
- use openjdk 11 (new requirement)
- add UPDATING entry for users which may want to switch to v3