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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0EF5F158003 for ; Thu, 25 May 2023 12:59:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20B85E0784; Thu, 25 May 2023 12:59:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 0AC61E0784 for ; Thu, 25 May 2023 12:59:38 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 41960340E38 for ; Thu, 25 May 2023 12:59:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 67018A78 for ; Thu, 25 May 2023 12:59:35 +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: <1685019565.e51533a79a3de1f4b1183790cc777ef256d8ad5f.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_pre20230517.ebuild X-VCS-Directories: net-im/mautrix-slack/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: e51533a79a3de1f4b1183790cc777ef256d8ad5f X-VCS-Branch: dev Date: Thu, 25 May 2023 12:59:35 +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: f34b83d9-b6f8-40e7-93d3-c29cde3afb36 X-Archives-Hash: c2e82dced9fc72592a4ed37476c13e64 commit: e51533a79a3de1f4b1183790cc777ef256d8ad5f Author: Julien Roy jroy ca> AuthorDate: Thu May 25 12:59:25 2023 +0000 Commit: Julien Roy jroy ca> CommitDate: Thu May 25 12:59:25 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e51533a7 net-im/mautrix-slack: add 0_pre20230517 Signed-off-by: Julien Roy jroy.ca> net-im/mautrix-slack/Manifest | 2 + .../mautrix-slack-0_pre20230517.ebuild | 64 ++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/net-im/mautrix-slack/Manifest b/net-im/mautrix-slack/Manifest index d7a2ecbae..04730adc0 100644 --- a/net-im/mautrix-slack/Manifest +++ b/net-im/mautrix-slack/Manifest @@ -1,2 +1,4 @@ DIST mautrix-slack-0_pre20230414.gh.tar.gz 94370 BLAKE2B 56cb12269fb6695aaf6ed3485166732b5f526e00f6a0237b2c2d1fe7f36eda15bf2ba26560b31069cda3f1229645f64bb99c9e6ce88d6c8d441af4e338071875 SHA512 7374b87892c92ca7dd493d1886bc24a8916931951be8c3e5799d223931a18bbf2d7a93dc02e4c6714f53e1b3c9005272e278a60578859d48f8882b50488de52b DIST mautrix-slack-0_pre20230414.tar.xz 14805340 BLAKE2B 2fabcacf24edca667143c7dfac108932af7edfe8d991331eb9c06c52de1669184942600224907c4dfe690d85a0a19306398c62d6f3e6b8aba4b243dd72eaffc0 SHA512 0f121cf01565a14e1d692b8d646b83c20ecf0082b3c61300fbfeb8a6e5b8f0631ea7c2fc3a9e64e851abb7cf9ec53e1c8e5e20324cd43d71c7e72cb8275cba24 +DIST mautrix-slack-0_pre20230517.gh.tar.gz 94370 BLAKE2B 56cb12269fb6695aaf6ed3485166732b5f526e00f6a0237b2c2d1fe7f36eda15bf2ba26560b31069cda3f1229645f64bb99c9e6ce88d6c8d441af4e338071875 SHA512 7374b87892c92ca7dd493d1886bc24a8916931951be8c3e5799d223931a18bbf2d7a93dc02e4c6714f53e1b3c9005272e278a60578859d48f8882b50488de52b +DIST mautrix-slack-0_pre20230517.tar.xz 18026880 BLAKE2B 14623cbf2b3ed3a244f762fee4f816ab38bb2bd9f2d488e3bdd93419b838403e9c3eb50fb473c358c3391788383d382977db23ad3721138f38ad1e022cf18cd2 SHA512 bc9b8cb0b59ca2c196d555c49633f1b00305577e400f11b5430f843a6a166ce708ac62db9d06ea262d2b6e2e3b070395fc7dbe79de6467e6a46d89ae6e3ee5de diff --git a/net-im/mautrix-slack/mautrix-slack-0_pre20230517.ebuild b/net-im/mautrix-slack/mautrix-slack-0_pre20230517.ebuild new file mode 100644 index 000000000..a03a839bf --- /dev/null +++ b/net-im/mautrix-slack/mautrix-slack-0_pre20230517.ebuild @@ -0,0 +1,64 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +COMMIT="eb519c6407751b48001bb66bc55014100322b6c6" +DESCRIPTION="A Matrix-Slack puppeting bridge based on slack-go" +HOMEPAGE="https://github.com/mautrix/slack" +SRC_URI="https://github.com/mautrix/slack/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz + https://jroy.ca/dist/${P}.tar.xz +" +S="${WORKDIR}/slack-${COMMIT}" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-user/${PN} + dev-libs/olm +" +DEPEND="${RDEPEND}" + +src_compile() { + ego build +} + +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/" "example-config.yaml" || die + + insinto "/etc/mautrix" + newins "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" +}