From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1708589-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 7179F15813A
	for <garchives@archives.gentoo.org>; Sat, 11 Jan 2025 23:38:15 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3E04AE0801;
	Sat, 11 Jan 2025 23:38:14 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1ADB7E0801
	for <gentoo-commits@lists.gentoo.org>; Sat, 11 Jan 2025 23:38:14 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 2F501342FF8
	for <gentoo-commits@lists.gentoo.org>; Sat, 11 Jan 2025 23:38:13 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 74252202F
	for <gentoo-commits@lists.gentoo.org>; Sat, 11 Jan 2025 23:38:10 +0000 (UTC)
From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" <julien@jroy.ca>
Message-ID: <1736633971.5845395f738e0cccc6d14f84b6b86ee3cb163249.julien@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-im/mautrix-slack/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: net-im/mautrix-slack/Manifest net-im/mautrix-slack/mautrix-slack-0.1.4.ebuild
X-VCS-Directories: net-im/mautrix-slack/
X-VCS-Committer: julien
X-VCS-Committer-Name: Julien Roy
X-VCS-Revision: 5845395f738e0cccc6d14f84b6b86ee3cb163249
X-VCS-Branch: master
Date: Sat, 11 Jan 2025 23:38:10 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 6c658a78-cbfe-4e90-a384-368892980d38
X-Archives-Hash: 81ea195089cad87807b5646cb7874bfe
Message-ID: <20250111233810.llzEkqgnIkgA3VrmKuXqyVqW2w6fhJVTQlnLpX56tj8@z>

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"
+}