summaryrefslogtreecommitdiff
path: root/app-misc
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/rmqtt/Manifest2
-rw-r--r--app-misc/rmqtt/files/rmqtt-vendor-config5
-rw-r--r--app-misc/rmqtt/rmqtt-0.17.1.ebuild43
-rw-r--r--app-misc/zigbee2mqtt/Manifest3
-rw-r--r--app-misc/zigbee2mqtt/zigbee2mqtt-2.6.3.ebuild48
5 files changed, 101 insertions, 0 deletions
diff --git a/app-misc/rmqtt/Manifest b/app-misc/rmqtt/Manifest
new file mode 100644
index 0000000..d7046c9
--- /dev/null
+++ b/app-misc/rmqtt/Manifest
@@ -0,0 +1,2 @@
+DIST rmqtt-0.17.1-vendor.tar.xz 63674316 BLAKE2B 7502c38010bb81933e4527b621e09498e238dd7a53b77e12719aa5ccd514fe8be21ebb77af3fb859820458fe0b8f40f4fa939f1be86d510747bf03b9adc2b5c5 SHA512 c486f266d59f231f5d6791cb716b18f022510495d0423827d2ea6957f03b32405419dbae5eaf5d24492c768c0d7016c9238b976f70c6adb6fa6e2a7173362605
+DIST rmqtt-0.17.1.tar.gz 589844 BLAKE2B e8cdec5118a62c4ecab81d8829086a491bf54abdaa8ec781fe3975954abe635c81a89b9e188e601f858dc1127764b38049b08f8c64802183651694d43157285a SHA512 997adcb249e33b3e97956bca39c371296bb9f6bf7bb52b9780047c695a41e56f9e5afe4465d9cef6f22d206361e3f5e0e211027d7b15842123e9f7ca754ab061
diff --git a/app-misc/rmqtt/files/rmqtt-vendor-config b/app-misc/rmqtt/files/rmqtt-vendor-config
new file mode 100644
index 0000000..0236928
--- /dev/null
+++ b/app-misc/rmqtt/files/rmqtt-vendor-config
@@ -0,0 +1,5 @@
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "vendor"
diff --git a/app-misc/rmqtt/rmqtt-0.17.1.ebuild b/app-misc/rmqtt/rmqtt-0.17.1.ebuild
new file mode 100644
index 0000000..1bc7106
--- /dev/null
+++ b/app-misc/rmqtt/rmqtt-0.17.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=" "
+RUST_MIN_VER="1.89.0"
+inherit cargo
+
+DESCRIPTION="A scalable distributed MQTT broker."
+HOMEPAGE="https://github.com/rmqtt/rmqtt"
+SRC_URI="https://github.com/rmqtt/rmqtt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+RDEPEND="
+ dev-libs/openssl:=
+ virtual/zlib:=
+"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ cargo_src_unpack
+ mkdir "${S}"/{vendor,.cargo} || die
+ ln -s "${WORKDIR}/vendor/"* "${S}"/vendor || die
+ cp "${FILESDIR}"/"${PN}-vendor-config" "${S}"/.cargo/config.toml || die
+}
+
+src_configure() {
+ export OPENSSL_NO_VENDOR=true
+ cargo_src_configure --offline --no-default-features
+}
+
+src_compile() {
+ cargo_src_compile -p rmqttd
+}
+
+src_install() {
+ cargo_src_install --path rmqtt-bin
+}
diff --git a/app-misc/zigbee2mqtt/Manifest b/app-misc/zigbee2mqtt/Manifest
new file mode 100644
index 0000000..748a973
--- /dev/null
+++ b/app-misc/zigbee2mqtt/Manifest
@@ -0,0 +1,3 @@
+DIST zigbee2mqtt-2.6.3-deps.tar.xz 11037756 BLAKE2B e037978334e925dad178fb39a346f31f914df669a1c84e9b8cf710af01c701c14a415ed6dc5c48d6d10cf1da49cbc6f2dd89fb2de570509717e579d433b2a921 SHA512 4c7a05c515ce01525c94c36fb4783b0d458b6c91467c32706558f6d680862612c4030951757d4fbc09d6f69434b6e8eed601277693176d91f2c9958cdd5b5a0d
+DIST zigbee2mqtt-2.6.3-dist.tar.xz 166664 BLAKE2B 47cf9a62467eb15a642b37a749d0098f1d0f2ca86568e835ca03d0eef7e5e3d38543ec16468167a6ec4cd2845b96e61677e2674b0da0103be32ef16b594d0cb3 SHA512 16851b3843380765434cae349668c9c351adc070819f358d77f8a0db67668f0be1000107cb8e6052d318ed5dc4ca2ecdc63ad1acb058c781d2ca075f8f7975a9
+DIST zigbee2mqtt-2.6.3.tar.gz 926925 BLAKE2B 61803be7e026c284efd05539e87dc514484a6af92f0dd64324acab4119ce3ccc9de407e84e5528d21586367a8875b8fe6301898ac160efab084c12b801ae360c SHA512 74ddf2be8735c581eaa25b97f26c33b1a550855705fb4761b3bc7a93cef7e212f419d4c5df639458626b97f33dfce86ae478d1e885e9f980aaff9e01b0a4e625
diff --git a/app-misc/zigbee2mqtt/zigbee2mqtt-2.6.3.ebuild b/app-misc/zigbee2mqtt/zigbee2mqtt-2.6.3.ebuild
new file mode 100644
index 0000000..a38c593
--- /dev/null
+++ b/app-misc/zigbee2mqtt/zigbee2mqtt-2.6.3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Zigbee to MQTT bridge"
+HOMEPAGE="https://github.com/Koenkk/zigbee2mqtt"
+SRC_URI="https://github.com/Koenkk/zigbee2mqtt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+="
+ https://share.terinstock.com/${P}-deps.tar.xz
+ https://share.terinstock.com/${P}-dist.tar.xz
+"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+RDEPEND="net-libs/nodejs"
+
+src_install() {
+ local find_dirs=(
+ -iwholename '*.github' -o
+ -iwholename '*.idea' -o
+ -iwholename '*.tscache' -o
+ -iwholename '*/man' -o
+ -iwholename '*/test' -o
+ -iwholename '*/scripts' -o
+ -iwholename '*/git-hooks' -o
+ -iwholename '*/android-arm' -o
+ -iwholename '*/android-arm64' -o
+ -iwholename '*/linux-armvy' -o
+ -iwholename '*/linux-armv7' -o
+ -iwholename '*/linux-arm' -o
+ -iwholename '*/win32-arm64' -o
+ -iwholename '*/win32-ia32' -o
+ -iwholename '*/win32-x64' -o
+ -iwholename '*/darwin-x64+arm64'
+ )
+
+ find "${WORKDIR}"/node_modules -type d \( "${find_dirs[@]}" \) -exec rm -rvf {} +
+
+ insinto "/usr/share/${PN}"
+ doins -r "${WORKDIR}"/node_modules "${WORKDIR}"/dist index.js package.json
+ exeinto "/usr/share/${PN}"
+ exeopts -m755
+ doexe cli.js
+ dosym -r "/usr/share/${PN}/cli.js" "/usr/bin/zigbee2mqtt"
+}