From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 0C5F415807B for ; Sat, 16 Nov 2024 20:20:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AC50E0972; Sat, 16 Nov 2024 20:20:21 +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 3F10BE0972 for ; Sat, 16 Nov 2024 20:20:21 +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 5065E33BED4 for ; Sat, 16 Nov 2024 20:20:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6966F1F41 for ; Sat, 16 Nov 2024 20:20:17 +0000 (UTC) From: "Julien Roy" 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" Message-ID: <1731788396.6760193886a86dc09a28004613bf55de0fbaa2ae.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev 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.3.ebuild X-VCS-Directories: net-im/mautrix-slack/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 6760193886a86dc09a28004613bf55de0fbaa2ae X-VCS-Branch: dev Date: Sat, 16 Nov 2024 20:20:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 258e984e-a7b8-42db-a9cf-bde6c19251ce X-Archives-Hash: 017359fc42147b6b9d03f212fda0b958 commit: 6760193886a86dc09a28004613bf55de0fbaa2ae Author: Julien Roy jroy ca> AuthorDate: Sat Nov 16 18:14:25 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sat Nov 16 20:19:56 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=67601938 net-im/mautrix-slack: add 0.1.3 Signed-off-by: Julien Roy jroy.ca> net-im/mautrix-slack/Manifest | 2 + net-im/mautrix-slack/mautrix-slack-0.1.3.ebuild | 63 +++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/net-im/mautrix-slack/Manifest b/net-im/mautrix-slack/Manifest index 4585ca204..a8e76c306 100644 --- a/net-im/mautrix-slack/Manifest +++ b/net-im/mautrix-slack/Manifest @@ -1,3 +1,5 @@ +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_pre20230925.gh.tar.gz 98793 BLAKE2B 3172f0b274da2f95897cec163bd82090668de0ee8d8a4dfc2e20ec65cf764d8a6270a3801a72efc0b16cef6275c4b767e2728715736878354533de475fb23ea0 SHA512 d2bd2b4a52233d2ce59c7fde956ae253c97c6e28913b479fd64708759fceae8154dc71d54dadb8d515fccf6a5a43c0b77a94d0938e4c2a8333a18ac9b7965a7f DIST mautrix-slack-0_pre20230925.tar.xz 15741728 BLAKE2B 8f107120e688fedf925a219fc317afaa7f19b97951dc48ba9de75596d3866d549775d169eeaaa4747151f82bdb101b901018430d1f29907e66c122892ce8f908 SHA512 59d1879ac30feee322dc17af04a651db193ecf688aba2308411ee4534c3c0d824cbce199315c1345f296c7e787d35fc19bc8cf9447169947c889f0fd2d1dd219 DIST mautrix-slack-0_pre20240215.gh.tar.gz 98878 BLAKE2B 1c2fe565990d2ab0a1cb39c72b4bd3c8b9fcbb18978e785a1ad6f994d01a59b047f127db4c1dfa291dfae97d81f82c64200d1ccb10b5ade27391fdde40794529 SHA512 68636ee04a41f152f4a7d75e9ad6937ded86da84327031a04a17fdf9260422a2717f133fc6b1c25dc3364877d5f08e8915420a5f1e19a51957d6dcd6d364c697 diff --git a/net-im/mautrix-slack/mautrix-slack-0.1.3.ebuild b/net-im/mautrix-slack/mautrix-slack-0.1.3.ebuild new file mode 100644 index 000000000..9aa9e4269 --- /dev/null +++ b/net-im/mautrix-slack/mautrix-slack-0.1.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 2022-2024 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 + sed -i -e "s/\.\/logs/\/var\/log\/mautrix\/slack/" "${S}/pkg/connector/example-config.yaml" || die + + insinto "/etc/mautrix" + newins "${S}/pkg/connector/example-config.yaml" "${PN/-/_}.yaml" + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + 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 "The configuration file is located at \"/etc/mautrix/${PN/-/_}.yaml\"" + 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" +} From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 61E6F15807B for ; Sat, 16 Nov 2024 20:24:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 13C0AE0969; Sat, 16 Nov 2024 20:24:17 +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 EB409E0969 for ; Sat, 16 Nov 2024 20:24:16 +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 162F1342F9F for ; Sat, 16 Nov 2024 20:24:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8A7A41F45 for ; Sat, 16 Nov 2024 20:24:13 +0000 (UTC) From: "Julien Roy" 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" Message-ID: <1731788396.6760193886a86dc09a28004613bf55de0fbaa2ae.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.3.ebuild X-VCS-Directories: net-im/mautrix-slack/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 6760193886a86dc09a28004613bf55de0fbaa2ae X-VCS-Branch: master Date: Sat, 16 Nov 2024 20:24:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c4e6b9fb-016e-4f83-9b81-d5394327e3ce X-Archives-Hash: 8fc350db7940e6f9257acae1847cbabf Message-ID: <20241116202413.PWSHKt-Erb-BOGVGaDkRNsKzAFP3OAXzC-UedJYpGLI@z> commit: 6760193886a86dc09a28004613bf55de0fbaa2ae Author: Julien Roy jroy ca> AuthorDate: Sat Nov 16 18:14:25 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sat Nov 16 20:19:56 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=67601938 net-im/mautrix-slack: add 0.1.3 Signed-off-by: Julien Roy jroy.ca> net-im/mautrix-slack/Manifest | 2 + net-im/mautrix-slack/mautrix-slack-0.1.3.ebuild | 63 +++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/net-im/mautrix-slack/Manifest b/net-im/mautrix-slack/Manifest index 4585ca204..a8e76c306 100644 --- a/net-im/mautrix-slack/Manifest +++ b/net-im/mautrix-slack/Manifest @@ -1,3 +1,5 @@ +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_pre20230925.gh.tar.gz 98793 BLAKE2B 3172f0b274da2f95897cec163bd82090668de0ee8d8a4dfc2e20ec65cf764d8a6270a3801a72efc0b16cef6275c4b767e2728715736878354533de475fb23ea0 SHA512 d2bd2b4a52233d2ce59c7fde956ae253c97c6e28913b479fd64708759fceae8154dc71d54dadb8d515fccf6a5a43c0b77a94d0938e4c2a8333a18ac9b7965a7f DIST mautrix-slack-0_pre20230925.tar.xz 15741728 BLAKE2B 8f107120e688fedf925a219fc317afaa7f19b97951dc48ba9de75596d3866d549775d169eeaaa4747151f82bdb101b901018430d1f29907e66c122892ce8f908 SHA512 59d1879ac30feee322dc17af04a651db193ecf688aba2308411ee4534c3c0d824cbce199315c1345f296c7e787d35fc19bc8cf9447169947c889f0fd2d1dd219 DIST mautrix-slack-0_pre20240215.gh.tar.gz 98878 BLAKE2B 1c2fe565990d2ab0a1cb39c72b4bd3c8b9fcbb18978e785a1ad6f994d01a59b047f127db4c1dfa291dfae97d81f82c64200d1ccb10b5ade27391fdde40794529 SHA512 68636ee04a41f152f4a7d75e9ad6937ded86da84327031a04a17fdf9260422a2717f133fc6b1c25dc3364877d5f08e8915420a5f1e19a51957d6dcd6d364c697 diff --git a/net-im/mautrix-slack/mautrix-slack-0.1.3.ebuild b/net-im/mautrix-slack/mautrix-slack-0.1.3.ebuild new file mode 100644 index 000000000..9aa9e4269 --- /dev/null +++ b/net-im/mautrix-slack/mautrix-slack-0.1.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 2022-2024 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 + sed -i -e "s/\.\/logs/\/var\/log\/mautrix\/slack/" "${S}/pkg/connector/example-config.yaml" || die + + insinto "/etc/mautrix" + newins "${S}/pkg/connector/example-config.yaml" "${PN/-/_}.yaml" + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + 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 "The configuration file is located at \"/etc/mautrix/${PN/-/_}.yaml\"" + 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" +}