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 6523C15808B for ; Sun, 18 Feb 2024 01:35:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1201FE2A03; Sun, 18 Feb 2024 01:35:16 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 EDBAFE2A03 for ; Sun, 18 Feb 2024 01:35:15 +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 ED2A7335C7E for ; Sun, 18 Feb 2024 01:35:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7BA451065 for ; Sun, 18 Feb 2024 01:35:12 +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: <1708220076.d9ffb78f236179cfcbf4a0ec6cbee64f2a866081.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-im/mautrix-discord/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-im/mautrix-discord/Manifest net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild X-VCS-Directories: net-im/mautrix-discord/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: d9ffb78f236179cfcbf4a0ec6cbee64f2a866081 X-VCS-Branch: dev Date: Sun, 18 Feb 2024 01:35:12 +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: 5f0bd212-df02-43a9-954d-d8696a5d8a46 X-Archives-Hash: c23594795ea8f52fdb28c5d64e11d6f7 commit: d9ffb78f236179cfcbf4a0ec6cbee64f2a866081 Author: Julien Roy jroy ca> AuthorDate: Sun Feb 18 01:34:36 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sun Feb 18 01:34:36 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d9ffb78f net-im/mautrix-discord: add 0.6.5 Signed-off-by: Julien Roy jroy.ca> net-im/mautrix-discord/Manifest | 2 + .../mautrix-discord/mautrix-discord-0.6.5.ebuild | 65 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/net-im/mautrix-discord/Manifest b/net-im/mautrix-discord/Manifest index e78cb7750a..02789a3150 100644 --- a/net-im/mautrix-discord/Manifest +++ b/net-im/mautrix-discord/Manifest @@ -2,3 +2,5 @@ DIST mautrix-discord-0.6.3.gh.tar.gz 113655 BLAKE2B a9570c2b0cbba9f1d82efffe729c DIST mautrix-discord-0.6.3.tar.xz 117364608 BLAKE2B 4619146a6180898a11ba396e535a8320b5a51fa70bb72a5dd16f67edd4e7240004c9186e768c3081fb4f5c18e5fdee1af94ee731501417e443c9b0137e8e969c SHA512 168d7279752bc6f4b3682e3909ff58f45b81057b421ec9635a3963d88083507f9dbfef4057fad5012bea91f283bacff201241dc7355b0cd17414774029204666 DIST mautrix-discord-0.6.4.gh.tar.gz 113804 BLAKE2B 164c5cc5d0504bf0d78df8b6926a124ef52157a5a1467ad8b4a76e6cef5285736cc223889f69c7f573018f2590394c637eaade54ff734353e8bd0cbcd0f7abad SHA512 cfcb5653d002c33f3498a65d7f6e507c1465b8ef767b672db770f44eaf59887246896e2f4149164e610a91af1418646eca77e571a85b0fdaeddc3131e589429e DIST mautrix-discord-0.6.4.tar.xz 61805824 BLAKE2B 49b26ec6d450e8ab5e29bead54346cc94e376646f298bc8f6f45c7d6f593fbca2c65b7b019b18242521a253d577b2ab1b38a78455d1b17c2ef2d48ee823a144d SHA512 72c8cae6a7f6188b75708db8663397aa66279a1059be40a735c066ae7ac49128fdee1040847141e827875860327df429f290bd8a9ecabb40919d644e55e01ae9 +DIST mautrix-discord-0.6.5.gh.tar.gz 114044 BLAKE2B 70d713da28ac80593678df357ae69540a7c6069943d369ddba749e2182b5810ce76fbc072f75f94edc9aaac70d744eac799d8b82fc58162ad5adc727941d2307 SHA512 b52bc3a963c52970a6af334e985b959efc04e3181cac6d2c1f404b06ee94d19a2ed4a7edfcbe2248eb2ee5196e19f917c9451326593fc5b95724bdc7dd6fd936 +DIST mautrix-discord-0.6.5.tar.xz 61963904 BLAKE2B 5de1b7b7020c4eb42aa8a6b98519f98afeee29f9307108343a7fcdf99399cd84af4bad015f186ed21d55cb8bdac22cbd96f7fdbc935c6827f87c65021516fa31 SHA512 29b16e01fc5c0d4913be7b3263d4560be88c027b55eb7ea48b291706f6a56d8188977ff566bd674e501bd14d1271fa5cdd0d4549fac0fa6fa60eb0442bafc64d diff --git a/net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild b/net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild new file mode 100644 index 0000000000..c282376a5d --- /dev/null +++ b/net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +DESCRIPTION="A Matrix-Discord puppeting bridge" +HOMEPAGE="https://github.com/mautrix/discord" +SRC_URI="https://github.com/mautrix/discord/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://jroy.ca/dist/${P}.tar.xz +" +S="${WORKDIR}/discord-${PV}" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-user/${PN} + dev-libs/olm + dev-util/lottieconverter +" +DEPEND="${RDEPEND}" +BDEPEND=">=dev-lang/go-1.20.0" + +src_compile() { + ego build +} + +src_install() { + dobin mautrix-discord + + keepdir /var/log/mautrix/discord + fowners -R root:mautrix /var/log/mautrix + fperms -R 770 /var/log/mautrix + sed -i -e "s/\.\/logs/\/var\/log\/${PN/-/\\\/}/" "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" +} 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 E217315808B for ; Sun, 18 Feb 2024 01:42:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ECA57E29DA; Sun, 18 Feb 2024 01:42:43 +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 BC766E29DA for ; Sun, 18 Feb 2024 01:42:43 +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 C16D633BEFF for ; Sun, 18 Feb 2024 01:42:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B6021065 for ; Sun, 18 Feb 2024 01:42:40 +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: <1708220076.d9ffb78f236179cfcbf4a0ec6cbee64f2a866081.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: net-im/mautrix-discord/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-im/mautrix-discord/Manifest net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild X-VCS-Directories: net-im/mautrix-discord/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: d9ffb78f236179cfcbf4a0ec6cbee64f2a866081 X-VCS-Branch: master Date: Sun, 18 Feb 2024 01:42:40 +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: 1b5fbe3b-4c6b-4005-a93f-eb781a0726b1 X-Archives-Hash: 515e327684977ae5ecaf9d02b4aaf10b Message-ID: <20240218014240.jopxgZ5jKSsIL8Gz9GU-yEjunrh4my1ZdaFsH2LTkeg@z> commit: d9ffb78f236179cfcbf4a0ec6cbee64f2a866081 Author: Julien Roy jroy ca> AuthorDate: Sun Feb 18 01:34:36 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sun Feb 18 01:34:36 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d9ffb78f net-im/mautrix-discord: add 0.6.5 Signed-off-by: Julien Roy jroy.ca> net-im/mautrix-discord/Manifest | 2 + .../mautrix-discord/mautrix-discord-0.6.5.ebuild | 65 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/net-im/mautrix-discord/Manifest b/net-im/mautrix-discord/Manifest index e78cb7750a..02789a3150 100644 --- a/net-im/mautrix-discord/Manifest +++ b/net-im/mautrix-discord/Manifest @@ -2,3 +2,5 @@ DIST mautrix-discord-0.6.3.gh.tar.gz 113655 BLAKE2B a9570c2b0cbba9f1d82efffe729c DIST mautrix-discord-0.6.3.tar.xz 117364608 BLAKE2B 4619146a6180898a11ba396e535a8320b5a51fa70bb72a5dd16f67edd4e7240004c9186e768c3081fb4f5c18e5fdee1af94ee731501417e443c9b0137e8e969c SHA512 168d7279752bc6f4b3682e3909ff58f45b81057b421ec9635a3963d88083507f9dbfef4057fad5012bea91f283bacff201241dc7355b0cd17414774029204666 DIST mautrix-discord-0.6.4.gh.tar.gz 113804 BLAKE2B 164c5cc5d0504bf0d78df8b6926a124ef52157a5a1467ad8b4a76e6cef5285736cc223889f69c7f573018f2590394c637eaade54ff734353e8bd0cbcd0f7abad SHA512 cfcb5653d002c33f3498a65d7f6e507c1465b8ef767b672db770f44eaf59887246896e2f4149164e610a91af1418646eca77e571a85b0fdaeddc3131e589429e DIST mautrix-discord-0.6.4.tar.xz 61805824 BLAKE2B 49b26ec6d450e8ab5e29bead54346cc94e376646f298bc8f6f45c7d6f593fbca2c65b7b019b18242521a253d577b2ab1b38a78455d1b17c2ef2d48ee823a144d SHA512 72c8cae6a7f6188b75708db8663397aa66279a1059be40a735c066ae7ac49128fdee1040847141e827875860327df429f290bd8a9ecabb40919d644e55e01ae9 +DIST mautrix-discord-0.6.5.gh.tar.gz 114044 BLAKE2B 70d713da28ac80593678df357ae69540a7c6069943d369ddba749e2182b5810ce76fbc072f75f94edc9aaac70d744eac799d8b82fc58162ad5adc727941d2307 SHA512 b52bc3a963c52970a6af334e985b959efc04e3181cac6d2c1f404b06ee94d19a2ed4a7edfcbe2248eb2ee5196e19f917c9451326593fc5b95724bdc7dd6fd936 +DIST mautrix-discord-0.6.5.tar.xz 61963904 BLAKE2B 5de1b7b7020c4eb42aa8a6b98519f98afeee29f9307108343a7fcdf99399cd84af4bad015f186ed21d55cb8bdac22cbd96f7fdbc935c6827f87c65021516fa31 SHA512 29b16e01fc5c0d4913be7b3263d4560be88c027b55eb7ea48b291706f6a56d8188977ff566bd674e501bd14d1271fa5cdd0d4549fac0fa6fa60eb0442bafc64d diff --git a/net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild b/net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild new file mode 100644 index 0000000000..c282376a5d --- /dev/null +++ b/net-im/mautrix-discord/mautrix-discord-0.6.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +DESCRIPTION="A Matrix-Discord puppeting bridge" +HOMEPAGE="https://github.com/mautrix/discord" +SRC_URI="https://github.com/mautrix/discord/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://jroy.ca/dist/${P}.tar.xz +" +S="${WORKDIR}/discord-${PV}" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-user/${PN} + dev-libs/olm + dev-util/lottieconverter +" +DEPEND="${RDEPEND}" +BDEPEND=">=dev-lang/go-1.20.0" + +src_compile() { + ego build +} + +src_install() { + dobin mautrix-discord + + keepdir /var/log/mautrix/discord + fowners -R root:mautrix /var/log/mautrix + fperms -R 770 /var/log/mautrix + sed -i -e "s/\.\/logs/\/var\/log\/${PN/-/\\\/}/" "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" +}