commit:     5845395f738e0cccc6d14f84b6b86ee3cb163249
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sat Jan 11 16:16:54 2025 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sat Jan 11 22:19:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5845395f

net-im/mautrix-slack: add 0.1.4

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 net-im/mautrix-slack/Manifest                   |  2 +
 net-im/mautrix-slack/mautrix-slack-0.1.4.ebuild | 66 +++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/net-im/mautrix-slack/Manifest b/net-im/mautrix-slack/Manifest
index a3b702e90..e1a920279 100644
--- a/net-im/mautrix-slack/Manifest
+++ b/net-im/mautrix-slack/Manifest
@@ -1,4 +1,6 @@
 DIST mautrix-slack-0.1.3-deps.tar.xz 30422444 BLAKE2B 
5a7cb539960b9a4facfc940d5ace829ec182e43af4c92d3d79ad8ced436293fbc74d29464f0e9c4e023b0ad2113ba57ddc93c8fac2d94f9c3a6aaad7bdccd472
 SHA512 
37bd80f215b5bcce647d4b0b9540fac30ecc149826f3fb800a5a21ccaf220e9ce767c2259f6577de30b079b3a9cf0ccac2613359d51dd929eedfae98e7850e5a
 DIST mautrix-slack-0.1.3.gh.tar.gz 98604 BLAKE2B 
a88d559a02547300085262178074a05cfb394c820068602444e0f91c8981e1e8dc8635f51592ff7e9d0fe0501895fd7c65826e49590ee91a86904b06957bbdb8
 SHA512 
c5a1620d6df80f1c2aae7f7390a31de1dc3dc962792a8582f910499aad89dd4951ac1b6c778388da1fe32ee86c13091f37fc4907847f4ed8d4a01241654ac780
+DIST mautrix-slack-0.1.4-deps.tar.xz 30124992 BLAKE2B 
e2166b78c2e255b2613268d9c9466b9dcce4854d1ee4d6c6aeb4861bb1255ddb5015ca9abad4f83ae129e023a8de9ed9d960c89cf821c7bce2a35f4a4f5b31c3
 SHA512 
e68ca6c2d0cc6e31fa5d77338c043c73a256a99d7a5121c856404b51b7f0b4de7be8605b7006b108d889a6f1926ef1ea430d42cb9c0d2b7c16613991df1cf488
+DIST mautrix-slack-0.1.4.gh.tar.gz 98761 BLAKE2B 
021f9b8724f65e052305a062ec1feb9b075753ec3dfffead3d4a8e60b6fa01c5a71af28b78a6e521edcebbc9865294d76bf62d006bca6868051a4d31b5e0363a
 SHA512 
56a288e0ae97da1a5e022e901e82b95c7e4855241b7b4db1a08855a03766238cea7e42322f41bd32447693b6ef78042c71c25e2a8b04a7108f23f8d2cd5ddc30
 DIST mautrix-slack-0_pre20240215.gh.tar.gz 98878 BLAKE2B 
1c2fe565990d2ab0a1cb39c72b4bd3c8b9fcbb18978e785a1ad6f994d01a59b047f127db4c1dfa291dfae97d81f82c64200d1ccb10b5ade27391fdde40794529
 SHA512 
68636ee04a41f152f4a7d75e9ad6937ded86da84327031a04a17fdf9260422a2717f133fc6b1c25dc3364877d5f08e8915420a5f1e19a51957d6dcd6d364c697
 DIST mautrix-slack-0_pre20240215.tar.xz 15847308 BLAKE2B 
e8f6b95899cbebab026fc90e76217c1c058baaa18146942feb75c34ca76a081f4d937ea270c076156d247de4e612bedc2eb4d2679d6dbc435723118d69a4000e
 SHA512 
f4ef145e0514de0fb472e1b6bd8793dc6f9042b5ff6454a04ac631aef8f20fca6d5802707811f0bc3961d9b5d86839ec92298b1f87f69bec9ff49bec7a208dde

diff --git a/net-im/mautrix-slack/mautrix-slack-0.1.4.ebuild 
b/net-im/mautrix-slack/mautrix-slack-0.1.4.ebuild
new file mode 100644
index 000000000..726329b0d
--- /dev/null
+++ b/net-im/mautrix-slack/mautrix-slack-0.1.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+DESCRIPTION="A Matrix-Slack puppeting bridge based on slack-go"
+HOMEPAGE="https://github.com/mautrix/slack";
+SRC_URI="https://github.com/mautrix/slack/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz
+       https://jroy.ca/dist/${P}-deps.tar.xz
+"
+S="${WORKDIR}/slack-${PV}"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       acct-user/${PN}
+       dev-libs/olm
+"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+       ego build "${S}"/cmd/"${PN}"
+}
+
+src_install() {
+       dobin mautrix-slack
+
+       keepdir /var/log/mautrix/slack
+       fowners -R root:mautrix /var/log/mautrix
+       fperms -R 770 /var/log/mautrix
+
+       insinto "/etc/mautrix"
+       newins "${S}/pkg/connector/example-config.yaml" "${PN/-/_}.yaml"
+
+       newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+       systemd_dounit "${FILESDIR}/${PN}.service"
+
+       keepdir /etc/mautrix
+       fowners -R root:mautrix /etc/mautrix
+       fperms -R 770 /etc/mautrix
+}
+
+pkg_postinst() {
+       einfo
+       elog ""
+       elog "Before you can use ${PN}, you must configure it correctly"
+       elog "To generate the configuration file, use the following command:"
+       elog "mautrix-signal -e"
+       elog "Then move the config.yaml file to /etc/mautrix/${PN/-/_}.yaml"
+       elog "Configure the file according to your homeserver"
+       elog "When done, run the following command: emerge --config 
${CATEGORY}/${PN}"
+       elog "Then, you must register the bridge with your homeserver"
+       elog "Refer your homeserver's documentation for instructions"
+       elog "The registration file is located at 
/var/lib/${PN/-/\/}/registration.yaml"
+       elog "Finally, you may start the ${PN} daemon"
+       einfo
+}
+
+pkg_config() {
+       su - "${PN}" -s /bin/sh -c \
+          "/usr/bin/${PN} -c /etc/mautrix/${PN/-/_}.yaml -g -r 
/var/lib/${PN/-/\/}/registration.yaml"
+}

Reply via email to