From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1612703-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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 89EFC158041 for <garchives@archives.gentoo.org>; Tue, 19 Mar 2024 22:06:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8266E29E0; Tue, 19 Mar 2024 22:06:39 +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 B5800E29D5 for <gentoo-commits@lists.gentoo.org>; Tue, 19 Mar 2024 22:06:39 +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 E2B7F33BEE9 for <gentoo-commits@lists.gentoo.org>; Tue, 19 Mar 2024 22:06:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CD0F1589 for <gentoo-commits@lists.gentoo.org>; Tue, 19 Mar 2024 22:06:36 +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: <1710884587.4cb681c146598905aaeca09fa30770db4c8f63e2.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_pre20240215.ebuild X-VCS-Directories: net-im/mautrix-slack/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 4cb681c146598905aaeca09fa30770db4c8f63e2 X-VCS-Branch: master Date: Tue, 19 Mar 2024 22:06:36 +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: 1b378f22-2c00-42fc-bd42-f909fa2c39c6 X-Archives-Hash: 9653f5c9636fe63cc21b2ba3edf474d8 Message-ID: <20240319220636.GC5PqKr13YmhCUcFrwTRykmpJBzk95TRwlvpTwaHHo0@z> commit: 4cb681c146598905aaeca09fa30770db4c8f63e2 Author: Julien Roy <julien <AT> jroy <DOT> ca> AuthorDate: Tue Mar 19 21:42:35 2024 +0000 Commit: Julien Roy <julien <AT> jroy <DOT> ca> CommitDate: Tue Mar 19 21:43:07 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4cb681c1 net-im/mautrix-slack: add 0_pre20240215 Signed-off-by: Julien Roy <julien <AT> jroy.ca> net-im/mautrix-slack/Manifest | 2 + .../mautrix-slack-0_pre20240215.ebuild | 64 ++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/net-im/mautrix-slack/Manifest b/net-im/mautrix-slack/Manifest index 16beacd7f2..02ef380e1a 100644 --- a/net-im/mautrix-slack/Manifest +++ b/net-im/mautrix-slack/Manifest @@ -2,3 +2,5 @@ DIST mautrix-slack-0_pre20230517.gh.tar.gz 94370 BLAKE2B 56cb12269fb6695aaf6ed34 DIST mautrix-slack-0_pre20230517.tar.xz 18026880 BLAKE2B 14623cbf2b3ed3a244f762fee4f816ab38bb2bd9f2d488e3bdd93419b838403e9c3eb50fb473c358c3391788383d382977db23ad3721138f38ad1e022cf18cd2 SHA512 bc9b8cb0b59ca2c196d555c49633f1b00305577e400f11b5430f843a6a166ce708ac62db9d06ea262d2b6e2e3b070395fc7dbe79de6467e6a46d89ae6e3ee5de 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 +DIST mautrix-slack-0_pre20240215.tar.xz 15847308 BLAKE2B e8f6b95899cbebab026fc90e76217c1c058baaa18146942feb75c34ca76a081f4d937ea270c076156d247de4e612bedc2eb4d2679d6dbc435723118d69a4000e SHA512 f4ef145e0514de0fb472e1b6bd8793dc6f9042b5ff6454a04ac631aef8f20fca6d5802707811f0bc3961d9b5d86839ec92298b1f87f69bec9ff49bec7a208dde diff --git a/net-im/mautrix-slack/mautrix-slack-0_pre20240215.ebuild b/net-im/mautrix-slack/mautrix-slack-0_pre20240215.ebuild new file mode 100644 index 0000000000..8cb51f3ee8 --- /dev/null +++ b/net-im/mautrix-slack/mautrix-slack-0_pre20240215.ebuild @@ -0,0 +1,64 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +COMMIT="a9ba2f9249bdc5df69a1349122d1769e7e48c9e1" +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" +}