From a6876a0fd25e84e69b01ff0ed57c0aabd1759a01 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 24 Jun 2026 10:57:08 +0200 Subject: [PATCH] app-misc/openhab-bin: drop 5.1.1, 5.1.2 Signed-off-by: Florian Schmaus --- app-misc/openhab-bin/Manifest | 2 - app-misc/openhab-bin/openhab-bin-5.1.1.ebuild | 136 ------------------ app-misc/openhab-bin/openhab-bin-5.1.2.ebuild | 136 ------------------ 3 files changed, 274 deletions(-) delete mode 100644 app-misc/openhab-bin/openhab-bin-5.1.1.ebuild delete mode 100644 app-misc/openhab-bin/openhab-bin-5.1.2.ebuild diff --git a/app-misc/openhab-bin/Manifest b/app-misc/openhab-bin/Manifest index fc0bc918b0217..8c1f795166e86 100644 --- a/app-misc/openhab-bin/Manifest +++ b/app-misc/openhab-bin/Manifest @@ -1,5 +1,3 @@ -DIST openhab-5.1.1.tar.gz 121148601 BLAKE2B 0f98afe583debeb61a42c7beeffd9c4637ebacc67dc5e19d70b27a3e79e41fa4732d788e2ddf898c5435ab25d3a45b41cc94264d569667dfc226bff428569a74 SHA512 cb171b63f9d35981466f603cd733bfb771f1f63b8e07a8f7e5f2775a05f50b309dd320564d52d684a89c1865def1b496a27acc23ac2298e17d1010f30ff0646c -DIST openhab-5.1.2.tar.gz 121075742 BLAKE2B 4d88d8277ceb6ae3922b602d94e6626ae3a89a17580c682f469b218e6e283249350d9c24227358dca340ddf58fb52115e9485d98ab51d1c2cb4d16b87c54c252 SHA512 9c56fd1c14fb8be95a9a02331f7294ae29aa2bab33e7073a06c15c420d4b59dce614409625cc883fa67c16df42af6b68bb7de6c2b3c3650a927524ccaace60f2 DIST openhab-5.1.3.tar.gz 121107971 BLAKE2B c2304ba9179b337670a8ec105948d0b4026cdfff1efa8169402b896945b0056d75361f160be7f32693e81d90befb5c4936191cd8c6804bf3881094c08edfd348 SHA512 bc3f15fffa01abee96aa7cc3e303a3bf35773ba1b9d72e81196f77055f9c269017e31975a6f4f9f6d6671a4eb6003b13c3832d796f7043525a94a01b71f876c2 DIST openhab-5.1.4.tar.gz 121105550 BLAKE2B 400d68439335a90ef77b0c16669d02ff528802d8b084e0f72415a7afe59cb7f8928c48652864583349ece5af8a2331135d3e7af395480fc2e9b989eab557aa48 SHA512 c9f18277eeea1750373243e456eec4d8dd56513f6c73a35fa30ef44e5e49b5690a2f852a3f596ad47ccbec231f7c400eb0eb49021e97be6f93c82cf671c99990 DIST openhab-cli-2024-01-14 8633 BLAKE2B 0b0999abcb884b779087b92f9f3e08fee3662753692392fbb30d218d0fc25fd1fca613c32b8193a3365764c55ac3525f8369aeea4edbf61223cd0219209c4cbf SHA512 bf24ae776d4362e8a60a0c71cb025834e5f645a24377a87484477f544026f2fdd996a1781f1082e62197fce33a9dadb5972df22ce3e4cd9f73d3088ec5bc0a98 diff --git a/app-misc/openhab-bin/openhab-bin-5.1.1.ebuild b/app-misc/openhab-bin/openhab-bin-5.1.1.ebuild deleted file mode 100644 index a3bac642e0455..0000000000000 --- a/app-misc/openhab-bin/openhab-bin-5.1.1.ebuild +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright 1999-2026 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:21" - -# 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 <&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 -} diff --git a/app-misc/openhab-bin/openhab-bin-5.1.2.ebuild b/app-misc/openhab-bin/openhab-bin-5.1.2.ebuild deleted file mode 100644 index f63db4479aea5..0000000000000 --- a/app-misc/openhab-bin/openhab-bin-5.1.2.ebuild +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright 1999-2026 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:21" - -# 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 <&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 -}