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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4A01C138359 for ; Wed, 7 Oct 2020 21:41:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9620CE083E; Wed, 7 Oct 2020 21:41:30 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6D76DE083E for ; Wed, 7 Oct 2020 21:41:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2899D33BEAE for ; Wed, 7 Oct 2020 21:41:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 928762CC for ; Wed, 7 Oct 2020 21:41:27 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1602106772.7421df2888ed102b5b905b393301333c112403e9.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/prosody-modules/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/prosody-modules/Manifest net-im/prosody-modules/metadata.xml net-im/prosody-modules/prosody-modules-0_pre20201004.ebuild net-im/prosody-modules/prosody-modules-9999.ebuild X-VCS-Directories: net-im/prosody-modules/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 7421df2888ed102b5b905b393301333c112403e9 X-VCS-Branch: master Date: Wed, 7 Oct 2020 21:41:27 +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: 3406b778-a5e6-4322-8d1a-a27e121b8976 X-Archives-Hash: 7ff69cc31f3aee47d354f12c719bedd7 commit: 7421df2888ed102b5b905b393301333c112403e9 Author: Conrad Kostecki gentoo org> AuthorDate: Wed Oct 7 21:39:32 2020 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Wed Oct 7 21:39:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7421df28 net-im/prosody-modules: new package Prosody can be customized extensively using modules (plugins) to change its default behaviour and to add new features and functionality. This package contains all modules, which are provided and supported by the prosody community for all prosody users. This package supports 'savedconfig', so not all modules have to be installed, it not wished. Closes: https://bugs.gentoo.org/358969 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Conrad Kostecki gentoo.org> net-im/prosody-modules/Manifest | 1 + net-im/prosody-modules/metadata.xml | 16 +++++++ .../prosody-modules-0_pre20201004.ebuild | 55 ++++++++++++++++++++++ net-im/prosody-modules/prosody-modules-9999.ebuild | 55 ++++++++++++++++++++++ 4 files changed, 127 insertions(+) diff --git a/net-im/prosody-modules/Manifest b/net-im/prosody-modules/Manifest new file mode 100644 index 00000000000..18c71611ce9 --- /dev/null +++ b/net-im/prosody-modules/Manifest @@ -0,0 +1 @@ +DIST prosody-modules-0_pre20201004.tar.xz 1152400 BLAKE2B 66170cbeea156d8843aad2ace62294a40b6168170cd3da3b59cf660aa9d6aab743a7bfe1a5d313e83a69336ef7165a4a45ac27da9afa239a7f97413f275883fe SHA512 b4201c108b6ba5ed2404d65efa3fbb50ca1493e204b6cfe55893c19fe22a01bcb23244fa35f2c03cf52ecabdac1354aa388740fc62b5516cb2a85fdd753e9efc diff --git a/net-im/prosody-modules/metadata.xml b/net-im/prosody-modules/metadata.xml new file mode 100644 index 00000000000..fdabf81a3e5 --- /dev/null +++ b/net-im/prosody-modules/metadata.xml @@ -0,0 +1,16 @@ + + + + + conikost@gentoo.org + Conrad Kostecki + + + Prosody can be customized extensively using modules (plugins) to change + its default behaviour and to add new features and functionality. + + Please note that each module is in a different state of development. + Some are proof-of-concept, others are quite stable and ready for production use. + Be sure to read the documentation page of any module before installing it on your server. + + diff --git a/net-im/prosody-modules/prosody-modules-0_pre20201004.ebuild b/net-im/prosody-modules/prosody-modules-0_pre20201004.ebuild new file mode 100644 index 00000000000..949393ac4e6 --- /dev/null +++ b/net-im/prosody-modules/prosody-modules-0_pre20201004.ebuild @@ -0,0 +1,55 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit savedconfig + +DESCRIPTION="A collection of community-maintained modules for Prosody" +HOMEPAGE="https://modules.prosody.im" +SRC_URI="https://dev.gentoo.org/~conikost/distfiles/${P}.tar.xz" +S="${WORKDIR}/${PN}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +RDEPEND="net-im/prosody" + +src_prepare() { + default + + # Exclude 'misc' folder from install, since it does not provide any modules. + echo "# Remove all modules from this list, which you don't want to install." > prosody-modules.conf || die + find * -maxdepth 0 -type d ! -name misc >> prosody-modules.conf || die + + use savedconfig && restore_config prosody-modules.conf +} + +src_install() { + insinto "/usr/$(get_libdir)/prosody/community-modules" + while read prosody_module; do + if ! [[ "${prosody_module}" = \#* ]]; then + if [[ -f "${prosody_module}/README.markdown" ]]; then + newdoc "${prosody_module}/README.markdown" "README.${prosody_module}" + rm "${prosody_module}/README.markdown" || die + fi + + doins -r "${prosody_module}" + fi + done prosody-modules.conf || die + find * -maxdepth 0 -type d ! -name misc >> prosody-modules.conf || die + + use savedconfig && restore_config prosody-modules.conf +} + +src_install() { + insinto "/usr/$(get_libdir)/prosody/community-modules" + while read prosody_module; do + if ! [[ "${prosody_module}" = \#* ]]; then + if [[ -f "${prosody_module}/README.markdown" ]]; then + newdoc "${prosody_module}/README.markdown" "README.${prosody_module}" + rm "${prosody_module}/README.markdown" || die + fi + + doins -r "${prosody_module}" + fi + done