app-misc/openhab-bin: drop 4.2.3, 4.3.0, 4.3.1, 4.3.2

Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus
2025-04-23 12:13:24 +02:00
parent 5dc4a695c3
commit 69e257dd22
5 changed files with 0 additions and 548 deletions

View File

@@ -1,7 +1,3 @@
DIST openhab-4.2.3.tar.gz 110593514 BLAKE2B bcfc73b377d82e1c747623711328e67d736408662323034f24c6143f6eb1be107ed987a766d39fb53a0f7f540e4666558356c723b31f8c0b51e082df77a680d9 SHA512 5156e9d6d73424083c83551e426b8290cb595659d955ddee3e19c61be4e3caecb9f5a4556e5aaf40f608765f814d34ff7be3d649c850c55dac862d5e1dc649af
DIST openhab-4.3.0.tar.gz 111158533 BLAKE2B d270e0c4b1c9035ccfef2d6742e5cfdacda40c29bf4285437653f6b4870ec3567473752a426a4ab2a4fe5d87e240265009292dd9ebe0cd656a4c7cd1995ef286 SHA512 2701c987ff3020699de4d6feb16aeded53d71b31e93428cc7ca1aea6b8c442f4ed810c4785eb2c8e5f3fa10c511eeb7ab43cddd10d9d4b0afe3c1157e7af4b06
DIST openhab-4.3.1.tar.gz 111159001 BLAKE2B 5832cf26f5578361ce83c57a2ef28fffd948b5814abcfed460825c31474b35df3b5561b128f853f56087e94f75ab1d2d00ab5be40bdc6c19f0a1741e12f1cdbe SHA512 4bd38a8a4a8c1f6b3e201c0dd67ec5e85a6dea4c5bb77e0c4f92953f338604af9eb157ebd26fdddf06366dc299bdd7a0b5471bcc2d9153ad7d6fe2d1a4bb2c14
DIST openhab-4.3.2.tar.gz 111159370 BLAKE2B 9a95a0049e2afb9fedbd14300803f024a0a2849cee1dc9a7a39c015799b8f9b8ece9485d107f6e130c0678e568313f212a4a1601f7b159a9ff96d7f28cd166d7 SHA512 67804aad7cbfee516d6913a9dbc18d77dd826e46b62515406bd2b6177cefd46476a093512b90cce6fbb668e2c36ca9c8718245cf6686008183b1d6e3361f37e3
DIST openhab-4.3.3.tar.gz 111159608 BLAKE2B c8408039a1696e94e8049b3da7fb9813b0cbccacf80286fd7450290acb409edfadb7fbd289c3792b4ebbf104fef4e9233651db7e3b22d62f0bcb0952e71d10f3 SHA512 fbe7e1e077d3c63c3a03d73b74887c7375caa29ff20d7c385c3eef8c2874f213398a4046482e34b1a69a0440cce6cfb6f1fc047b705348ad0506e11004ff376c
DIST openhab-4.3.4.tar.gz 111168408 BLAKE2B 240610f53b60bef369ae8d7d25e9e693839f54011c81461145a923509b408eeef65410d05744d714da86569b1700403575b453cf03e01dcd18bfd8a93d5fb3e3 SHA512 859774f875321a3ad920f27feedaf209d1dc1307a6f43f27643c155445d702595736fdbd0b68fbce96f9d9bb421cf48d18b71c5de5c813cc4246cbd9a17d0e60
DIST openhab-cli-2024-01-14 8633 BLAKE2B 0b0999abcb884b779087b92f9f3e08fee3662753692392fbb30d218d0fc25fd1fca613c32b8193a3365764c55ac3525f8369aeea4edbf61223cd0219209c4cbf SHA512 bf24ae776d4362e8a60a0c71cb025834e5f645a24377a87484477f544026f2fdd996a1781f1082e62197fce33a9dadb5972df22ce3e4cd9f73d3088ec5bc0a98

View File

@@ -1,136 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo systemd tmpfiles
MY_PN=${PN%-bin}
MY_P=${MY_PN}-${PV}
MY_CLI_VER=2024-01-14
DESCRIPTION="An open-source automation software for your home"
HOMEPAGE="https://www.openhab.org/"
SRC_URI="
https://github.com/openhab/openhab-distro/releases/download/${PV}/${MY_P}.tar.gz
https://raw.githubusercontent.com/openhab/openhab-linuxpkg/10061acd36524afb12a033fea6dcf142b399bf56/resources/usr/bin/openhab-cli
-> openhab-cli-${MY_CLI_VER}
"
S="${WORKDIR}"
LICENSE="EPL-2.0"
SLOT="0"
KEYWORDS="amd64 arm64"
MY_JAVA_DEPEND=">=virtual/jre-17"
# app-arch/zip: used by "openhab-cli backup"
RDEPEND="
${MY_JAVA_DEPEND}
acct-user/openhab
app-arch/zip
dev-java/java-config
"
BDEPEND="app-arch/unzip"
src_compile() {
:
}
src_install() {
# We use move here to preserve the executable bit on the files under
# openhab/runtime/bin.
domove() {
local source="${1}"
local target="${2}"
local dest="${ED}/${target}"
mkdir -p "${dest}" || die "Failed to create ${dest}"
mv "${source}"/* "${dest}" || die "Failed to move"
}
domove runtime /usr/share/openhab/runtime
domove conf /etc/openhab
domove userdata /var/lib/openhab
fowners -R openhab:openhab /var/lib/openhab
local dirs=(
/usr/share/openhab/addons
/var/log/openhab
)
local d
for d in "${dirs[@]}"; do
keepdir "${d}"
fowners openhab:openhab "${d}"
done
newenvd "${FILESDIR}"/openhab.env 50openhab
systemd_dounit "${FILESDIR}"/openhab.service
newtmpfiles "${FILESDIR}"/openhab.tmpfiles openhab.conf
newbin - openhab <<EOF
#!/usr/bin/env bash
set -eu
if [[ -v JAVA_HOME_OVERRIDE ]]; then
JAVA_HOME="\${JAVA_HOME_OVERRIDE}"
else
if ! GENTOO_JAVA_VM="\$(depend-java-query --get-vm '${MY_JAVA_DEPEND}')"; then
>&2 echo "Could not find Java VM for ${MY_JAVA_DEPEND}"
exit 1
fi
if ! JAVA_HOME_ASSIGNMENT=\$(java-config -P \${GENTOO_JAVA_VM} | grep JAVA_HOME); then
>&2 echo "Could not retrieve JAVA_HOME of \${GENTOO_JAVA_VM}"
exit 1
fi
eval \${JAVA_HOME_ASSIGNMENT}
fi
export JAVA_HOME
exec /usr/share/openhab/runtime/bin/karaf "\$@"
EOF
newbin "${DISTDIR}"/openhab-cli-${MY_CLI_VER} openhab-cli
newinitd "${FILESDIR}"/openhab.initd openhab
}
pkg_postinst() {
tmpfiles_process openhab.conf
if [[ -z ${REPLACING_VERSIONS} && -z ${OPENHAB_POSTINST_UPDATE} ]]; then
return
fi
if [[ -d "${EROOT}"/run/systemd/system ]]; then
if systemctl is-active --quiet openhab; then
local openhab_service_active=1
einfo "Restarting OpenHAB service due to version update"
edob systemctl daemon-reload
edob systemctl stop openhab
fi
echo y | edob -m "Cleaning OpenHAB cache" \
openhab-cli clean-cache
assert "Failed to clean OpenHAB cache"
if [[ -v openhab_service_active ]]; then
edob systemctl start openhab
fi
elif [[ -d /run/openrc ]]; then
einfo "Follow these steps to complete the update of OpenHAB:"
einfo
einfo "1. Stop the OpenHAB's service"
einfo "$ rc-service openhab stop"
einfo "2. Clean OpenHAB's cache"
einfo "$ openahb-cli clean-cache"
einfo "3. Restart OpenHAB's service"
einfo "$ rc-service openhab start"
fi
}

View File

@@ -1,136 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo systemd tmpfiles
MY_PN=${PN%-bin}
MY_P=${MY_PN}-${PV}
MY_CLI_VER=2024-01-14
DESCRIPTION="An open-source automation software for your home"
HOMEPAGE="https://www.openhab.org/"
SRC_URI="
https://github.com/openhab/openhab-distro/releases/download/${PV}/${MY_P}.tar.gz
https://raw.githubusercontent.com/openhab/openhab-linuxpkg/10061acd36524afb12a033fea6dcf142b399bf56/resources/usr/bin/openhab-cli
-> openhab-cli-${MY_CLI_VER}
"
S="${WORKDIR}"
LICENSE="EPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
MY_JAVA_DEPEND=">=virtual/jre-17"
# app-arch/zip: used by "openhab-cli backup"
RDEPEND="
${MY_JAVA_DEPEND}
acct-user/openhab
app-arch/zip
dev-java/java-config
"
BDEPEND="app-arch/unzip"
src_compile() {
:
}
src_install() {
# We use move here to preserve the executable bit on the files under
# openhab/runtime/bin.
domove() {
local source="${1}"
local target="${2}"
local dest="${ED}/${target}"
mkdir -p "${dest}" || die "Failed to create ${dest}"
mv "${source}"/* "${dest}" || die "Failed to move"
}
domove runtime /usr/share/openhab/runtime
domove conf /etc/openhab
domove userdata /var/lib/openhab
fowners -R openhab:openhab /var/lib/openhab
local dirs=(
/usr/share/openhab/addons
/var/log/openhab
)
local d
for d in "${dirs[@]}"; do
keepdir "${d}"
fowners openhab:openhab "${d}"
done
newenvd "${FILESDIR}"/openhab.env 50openhab
systemd_dounit "${FILESDIR}"/openhab.service
newtmpfiles "${FILESDIR}"/openhab.tmpfiles openhab.conf
newbin - openhab <<EOF
#!/usr/bin/env bash
set -eu
if [[ -v JAVA_HOME_OVERRIDE ]]; then
JAVA_HOME="\${JAVA_HOME_OVERRIDE}"
else
if ! GENTOO_JAVA_VM="\$(depend-java-query --get-vm '${MY_JAVA_DEPEND}')"; then
>&2 echo "Could not find Java VM for ${MY_JAVA_DEPEND}"
exit 1
fi
if ! JAVA_HOME_ASSIGNMENT=\$(java-config -P \${GENTOO_JAVA_VM} | grep JAVA_HOME); then
>&2 echo "Could not retrieve JAVA_HOME of \${GENTOO_JAVA_VM}"
exit 1
fi
eval \${JAVA_HOME_ASSIGNMENT}
fi
export JAVA_HOME
exec /usr/share/openhab/runtime/bin/karaf "\$@"
EOF
newbin "${DISTDIR}"/openhab-cli-${MY_CLI_VER} openhab-cli
newinitd "${FILESDIR}"/openhab.initd openhab
}
pkg_postinst() {
tmpfiles_process openhab.conf
if [[ -z ${REPLACING_VERSIONS} && -z ${OPENHAB_POSTINST_UPDATE} ]]; then
return
fi
if [[ -d "${EROOT}"/run/systemd/system ]]; then
if systemctl is-active --quiet openhab; then
local openhab_service_active=1
einfo "Restarting OpenHAB service due to version update"
edob systemctl daemon-reload
edob systemctl stop openhab
fi
echo y | edob -m "Cleaning OpenHAB cache" \
openhab-cli clean-cache
assert "Failed to clean OpenHAB cache"
if [[ -v openhab_service_active ]]; then
edob systemctl start openhab
fi
elif [[ -d /run/openrc ]]; then
einfo "Follow these steps to complete the update of OpenHAB:"
einfo
einfo "1. Stop the OpenHAB's service"
einfo "$ rc-service openhab stop"
einfo "2. Clean OpenHAB's cache"
einfo "$ openahb-cli clean-cache"
einfo "3. Restart OpenHAB's service"
einfo "$ rc-service openhab start"
fi
}

View File

@@ -1,136 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo systemd tmpfiles
MY_PN=${PN%-bin}
MY_P=${MY_PN}-${PV}
MY_CLI_VER=2024-01-14
DESCRIPTION="An open-source automation software for your home"
HOMEPAGE="https://www.openhab.org/"
SRC_URI="
https://github.com/openhab/openhab-distro/releases/download/${PV}/${MY_P}.tar.gz
https://raw.githubusercontent.com/openhab/openhab-linuxpkg/10061acd36524afb12a033fea6dcf142b399bf56/resources/usr/bin/openhab-cli
-> openhab-cli-${MY_CLI_VER}
"
S="${WORKDIR}"
LICENSE="EPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
MY_JAVA_DEPEND=">=virtual/jre-17"
# app-arch/zip: used by "openhab-cli backup"
RDEPEND="
${MY_JAVA_DEPEND}
acct-user/openhab
app-arch/zip
dev-java/java-config
"
BDEPEND="app-arch/unzip"
src_compile() {
:
}
src_install() {
# We use move here to preserve the executable bit on the files under
# openhab/runtime/bin.
domove() {
local source="${1}"
local target="${2}"
local dest="${ED}/${target}"
mkdir -p "${dest}" || die "Failed to create ${dest}"
mv "${source}"/* "${dest}" || die "Failed to move"
}
domove runtime /usr/share/openhab/runtime
domove conf /etc/openhab
domove userdata /var/lib/openhab
fowners -R openhab:openhab /var/lib/openhab
local dirs=(
/usr/share/openhab/addons
/var/log/openhab
)
local d
for d in "${dirs[@]}"; do
keepdir "${d}"
fowners openhab:openhab "${d}"
done
newenvd "${FILESDIR}"/openhab.env 50openhab
systemd_dounit "${FILESDIR}"/openhab.service
newtmpfiles "${FILESDIR}"/openhab.tmpfiles openhab.conf
newbin - openhab <<EOF
#!/usr/bin/env bash
set -eu
if [[ -v JAVA_HOME_OVERRIDE ]]; then
JAVA_HOME="\${JAVA_HOME_OVERRIDE}"
else
if ! GENTOO_JAVA_VM="\$(depend-java-query --get-vm '${MY_JAVA_DEPEND}')"; then
>&2 echo "Could not find Java VM for ${MY_JAVA_DEPEND}"
exit 1
fi
if ! JAVA_HOME_ASSIGNMENT=\$(java-config -P \${GENTOO_JAVA_VM} | grep JAVA_HOME); then
>&2 echo "Could not retrieve JAVA_HOME of \${GENTOO_JAVA_VM}"
exit 1
fi
eval \${JAVA_HOME_ASSIGNMENT}
fi
export JAVA_HOME
exec /usr/share/openhab/runtime/bin/karaf "\$@"
EOF
newbin "${DISTDIR}"/openhab-cli-${MY_CLI_VER} openhab-cli
newinitd "${FILESDIR}"/openhab.initd openhab
}
pkg_postinst() {
tmpfiles_process openhab.conf
if [[ -z ${REPLACING_VERSIONS} && -z ${OPENHAB_POSTINST_UPDATE} ]]; then
return
fi
if [[ -d "${EROOT}"/run/systemd/system ]]; then
if systemctl is-active --quiet openhab; then
local openhab_service_active=1
einfo "Restarting OpenHAB service due to version update"
edob systemctl daemon-reload
edob systemctl stop openhab
fi
echo y | edob -m "Cleaning OpenHAB cache" \
openhab-cli clean-cache
assert "Failed to clean OpenHAB cache"
if [[ -v openhab_service_active ]]; then
edob systemctl start openhab
fi
elif [[ -d /run/openrc ]]; then
einfo "Follow these steps to complete the update of OpenHAB:"
einfo
einfo "1. Stop the OpenHAB's service"
einfo "$ rc-service openhab stop"
einfo "2. Clean OpenHAB's cache"
einfo "$ openahb-cli clean-cache"
einfo "3. Restart OpenHAB's service"
einfo "$ rc-service openhab start"
fi
}

View File

@@ -1,136 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo systemd tmpfiles
MY_PN=${PN%-bin}
MY_P=${MY_PN}-${PV}
MY_CLI_VER=2024-01-14
DESCRIPTION="An open-source automation software for your home"
HOMEPAGE="https://www.openhab.org/"
SRC_URI="
https://github.com/openhab/openhab-distro/releases/download/${PV}/${MY_P}.tar.gz
https://raw.githubusercontent.com/openhab/openhab-linuxpkg/10061acd36524afb12a033fea6dcf142b399bf56/resources/usr/bin/openhab-cli
-> openhab-cli-${MY_CLI_VER}
"
S="${WORKDIR}"
LICENSE="EPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
MY_JAVA_DEPEND=">=virtual/jre-17"
# app-arch/zip: used by "openhab-cli backup"
RDEPEND="
${MY_JAVA_DEPEND}
acct-user/openhab
app-arch/zip
dev-java/java-config
"
BDEPEND="app-arch/unzip"
src_compile() {
:
}
src_install() {
# We use move here to preserve the executable bit on the files under
# openhab/runtime/bin.
domove() {
local source="${1}"
local target="${2}"
local dest="${ED}/${target}"
mkdir -p "${dest}" || die "Failed to create ${dest}"
mv "${source}"/* "${dest}" || die "Failed to move"
}
domove runtime /usr/share/openhab/runtime
domove conf /etc/openhab
domove userdata /var/lib/openhab
fowners -R openhab:openhab /var/lib/openhab
local dirs=(
/usr/share/openhab/addons
/var/log/openhab
)
local d
for d in "${dirs[@]}"; do
keepdir "${d}"
fowners openhab:openhab "${d}"
done
newenvd "${FILESDIR}"/openhab.env 50openhab
systemd_dounit "${FILESDIR}"/openhab.service
newtmpfiles "${FILESDIR}"/openhab.tmpfiles openhab.conf
newbin - openhab <<EOF
#!/usr/bin/env bash
set -eu
if [[ -v JAVA_HOME_OVERRIDE ]]; then
JAVA_HOME="\${JAVA_HOME_OVERRIDE}"
else
if ! GENTOO_JAVA_VM="\$(depend-java-query --get-vm '${MY_JAVA_DEPEND}')"; then
>&2 echo "Could not find Java VM for ${MY_JAVA_DEPEND}"
exit 1
fi
if ! JAVA_HOME_ASSIGNMENT=\$(java-config -P \${GENTOO_JAVA_VM} | grep JAVA_HOME); then
>&2 echo "Could not retrieve JAVA_HOME of \${GENTOO_JAVA_VM}"
exit 1
fi
eval \${JAVA_HOME_ASSIGNMENT}
fi
export JAVA_HOME
exec /usr/share/openhab/runtime/bin/karaf "\$@"
EOF
newbin "${DISTDIR}"/openhab-cli-${MY_CLI_VER} openhab-cli
newinitd "${FILESDIR}"/openhab.initd openhab
}
pkg_postinst() {
tmpfiles_process openhab.conf
if [[ -z ${REPLACING_VERSIONS} && -z ${OPENHAB_POSTINST_UPDATE} ]]; then
return
fi
if [[ -d "${EROOT}"/run/systemd/system ]]; then
if systemctl is-active --quiet openhab; then
local openhab_service_active=1
einfo "Restarting OpenHAB service due to version update"
edob systemctl daemon-reload
edob systemctl stop openhab
fi
echo y | edob -m "Cleaning OpenHAB cache" \
openhab-cli clean-cache
assert "Failed to clean OpenHAB cache"
if [[ -v openhab_service_active ]]; then
edob systemctl start openhab
fi
elif [[ -d /run/openrc ]]; then
einfo "Follow these steps to complete the update of OpenHAB:"
einfo
einfo "1. Stop the OpenHAB's service"
einfo "$ rc-service openhab stop"
einfo "2. Clean OpenHAB's cache"
einfo "$ openahb-cli clean-cache"
einfo "3. Restart OpenHAB's service"
einfo "$ rc-service openhab start"
fi
}