summaryrefslogtreecommitdiff
path: root/app-misc/openhab-bin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-10 21:02:07 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-10 21:02:07 +0000
commit0ca3f86640e2f1f361da895b997c43bac22090a1 (patch)
tree029b42e7b1425ce16f4299635e5caad713501ead /app-misc/openhab-bin
parentbe94ae04eee564451203d45977c2ef7c7ace1580 (diff)
gentoo auto-resync : 10:11:2024 - 21:02:06
Diffstat (limited to 'app-misc/openhab-bin')
-rw-r--r--app-misc/openhab-bin/Manifest4
-rw-r--r--app-misc/openhab-bin/openhab-bin-4.2.0-r1.ebuild135
-rw-r--r--app-misc/openhab-bin/openhab-bin-4.2.2.ebuild2
3 files changed, 2 insertions, 139 deletions
diff --git a/app-misc/openhab-bin/Manifest b/app-misc/openhab-bin/Manifest
index a6d66ff0c0e1..1a254b3c169d 100644
--- a/app-misc/openhab-bin/Manifest
+++ b/app-misc/openhab-bin/Manifest
@@ -2,11 +2,9 @@ AUX openhab.env 167 BLAKE2B 6e67342c7eb05fb4f3b2e57769ad51d0db195ad707719caa4adf
AUX openhab.initd 257 BLAKE2B 79ba1215667579b116a4b8b7ab6252546b79562ae5b64e5bd7f21304ee6071e2cdababa35c27063e984955afca768777339a60a1c67d66950ef04b852fcc931f SHA512 5c00a12810c0166ed853c0414c402ea6e5b79b27a91ea13ad875adef563d9d8349a986a428344cfa2d10af5b8b66ff30412764e4a133a9615bd00bb018f279e2
AUX openhab.service 518 BLAKE2B f00b13946a588b1b2b9f94775d5ef281cac777888426bd97a87b72eed39fe23a609a51e819e690ebaae1c5ca5c4a37bb7874a64a52d39a305012602905be9e52 SHA512 e07cc1465bb8eee24cd1435b468279fcb2f95acbf44866306b0637e2d7e46c0aef50bb3ce9e22cafe5140d4b534df77bfcbdc7d7e697def9db94a0207f2e1dd3
AUX openhab.tmpfiles 352 BLAKE2B 23bab4c007c924cdfaa602654f19030d702b855f3baf62aaa016d944c8caf4f93252ae3ab9b3442ff6a8a528fcdd7a12f9767c29bfed7837c8f2cc2594955c26 SHA512 cb7cc7483915512f65664a9439b07c25b15c3066f321c8087cece2803e937392f9f0888a5c836949632c9b0974fb2d6cc577d8f785423cd42aa6ba575ba8fcc2
-DIST openhab-4.2.0.tar.gz 110566875 BLAKE2B 25f07801258b958d3845cc43360eac9707416c424d61a8a2eeda55d522735bbf2690c989588cd40dee09ce72aee7aa53e2704d048645190981101cd293c5090b SHA512 83cc0c171de303bcc01198a94963933a7fde93f84a8ccf3cb27511de680576e14d03482d13abc0c0fdcbda6069a6d6f46dee44cb85f597aea2a8641c6693337a
DIST openhab-4.2.1.tar.gz 110592664 BLAKE2B 6c1ef4ff6a25904a6bd56c5bbb5d6c08163e14723a61966930ffb96183a5890f86ddc73d316d8b48712b262eae80b7e086cdf53510d5a1a09a596b591fe3d037 SHA512 1d8b4b6b7ef4f76ecaee0355842b5bbfce9c422915bdc345e974bfe7d1c275dc4f8bc317f3e53ed6778d7875c7e7757bb3d26e68e016c1d3fbf1009a6a1e070d
DIST openhab-4.2.2.tar.gz 110594562 BLAKE2B de7f67f8891ede0eb197188740d1b8b040a8adcbcd8b505518aef9290debfa7f97a5a894fd22072fa46dbaae7e9286da2fa41afa56b54c1011f9640db171535b SHA512 0c9367780e34f8a59f74d8edf18e2a503c71cc3af0f17aaca75888243b02393eb2c6188b84e5a04c3ca63b88e80cc0eb5a6db3603e348e10ab09e9b922ac2a64
DIST openhab-cli-2024-01-14 8633 BLAKE2B 0b0999abcb884b779087b92f9f3e08fee3662753692392fbb30d218d0fc25fd1fca613c32b8193a3365764c55ac3525f8369aeea4edbf61223cd0219209c4cbf SHA512 bf24ae776d4362e8a60a0c71cb025834e5f645a24377a87484477f544026f2fdd996a1781f1082e62197fce33a9dadb5972df22ce3e4cd9f73d3088ec5bc0a98
-EBUILD openhab-bin-4.2.0-r1.ebuild 3174 BLAKE2B eb4ea8c6d94eced9c31332fd7afc344a772c786bdafa12b144ec3fbb01fe6d0b6785411c487f3606052edd079e069e838c6961e5b72449c8147e055a110015c8 SHA512 20d13d2f21aa55d9f4d03a0c92093fc418ea8dddfde13d47b7932e9c1f9ca68565cb379c7071dfa50d0d35e3f9847e555b7b14c883f6ff731d5f88df8e048828
EBUILD openhab-bin-4.2.1.ebuild 3174 BLAKE2B eb4ea8c6d94eced9c31332fd7afc344a772c786bdafa12b144ec3fbb01fe6d0b6785411c487f3606052edd079e069e838c6961e5b72449c8147e055a110015c8 SHA512 20d13d2f21aa55d9f4d03a0c92093fc418ea8dddfde13d47b7932e9c1f9ca68565cb379c7071dfa50d0d35e3f9847e555b7b14c883f6ff731d5f88df8e048828
-EBUILD openhab-bin-4.2.2.ebuild 3204 BLAKE2B 7a0ece2883a709214845bad36f725bb8152fb9a56fa77966b0331d4a1b537f3d8219ccc4a24a6cb503dc3ee0251ec114d2133476ea90bfd26dabc4f6a30d66ea SHA512 39ff168e348b59598aa89284fb0eab01f82383334a0c85b10dddf5a4ae17f401be08991f98a042b1cd54c4b0f2b66e0b39f5e3d361c1b11f4fc7b0d314431cc5
+EBUILD openhab-bin-4.2.2.ebuild 3202 BLAKE2B e4e676b483bdccd50f52511a1094ba64949d1f6b3af7309237fd5e47d018a73ac57f6a6d33b2e23bfabda8d8574b72c076aede54ab67e3924e583a7c7d638cd5 SHA512 8562b57955a394678757c03e20bc0143cefd1d81df4d5c7a8fa42b8841a655a65d26ff1949ca0a077d31c784d82e48c60f956754eb25b08efd42f05f7a537298
MISC metadata.xml 356 BLAKE2B c21186f077dc0f799f5d65133e691fd2acc098326a19714e1561a83429bcd09df460e4ad0e7f168c374de12c0bfab51bb8da46877f8f2fb13565327a39d5fa7b SHA512 c9cd771ff2115a885331dd88a950288b540d8ca441f37946c405ead781292f7b4660d8f1ed98d66ae3c7350f7e98fb590b61d5290607dbfb754d554cc621ce6f
diff --git a/app-misc/openhab-bin/openhab-bin-4.2.0-r1.ebuild b/app-misc/openhab-bin/openhab-bin-4.2.0-r1.ebuild
deleted file mode 100644
index 683f79d8f3fa..000000000000
--- a/app-misc/openhab-bin/openhab-bin-4.2.0-r1.ebuild
+++ /dev/null
@@ -1,135 +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}
-
-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-2024-01-14
-"
-
-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-2024-01-14 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-4.2.2.ebuild b/app-misc/openhab-bin/openhab-bin-4.2.2.ebuild
index 751af46f93e1..6d3cd9cf94c1 100644
--- a/app-misc/openhab-bin/openhab-bin-4.2.2.ebuild
+++ b/app-misc/openhab-bin/openhab-bin-4.2.2.ebuild
@@ -21,7 +21,7 @@ S="${WORKDIR}"
LICENSE="EPL-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="amd64 arm64"
MY_JAVA_DEPEND=">=virtual/jre-17"