public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/prosody-modules/
Date: Tue, 21 Feb 2023 20:03:17 +0000 (UTC)	[thread overview]
Message-ID: <1677009784.85d123709dfdcba647c2d0a9d5c3edf53bab283c.conikost@gentoo> (raw)

commit:     85d123709dfdcba647c2d0a9d5c3edf53bab283c
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 21 19:12:14 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Feb 21 20:03:04 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85d12370

net-im/prosody-modules: add 0_pre20230221

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-im/prosody-modules/Manifest                    |  1 +
 .../prosody-modules-0_pre20230221.ebuild           | 55 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/net-im/prosody-modules/Manifest b/net-im/prosody-modules/Manifest
index 10ff3c2864a9..6cbe5910d92c 100644
--- a/net-im/prosody-modules/Manifest
+++ b/net-im/prosody-modules/Manifest
@@ -1 +1,2 @@
 DIST prosody-modules-0_pre20220319.tar.xz 1221828 BLAKE2B bb9482a60b15fd456125b512017ee93223bd139ed5b664236db4313b65985729ad4f5b8adb5d76bb9099ff4de816457fffd1277b7d36c556d00ce789d8ecf15f SHA512 a288d082e3bc2f9450c0b09e4f02816322d0db073134b315b2fa19be4d176037b399d763854c6c9a006eef85153c7bbbabddf5da85225d599082bfc7c0101450
+DIST prosody-modules-0_pre20230221.tar.xz 1243536 BLAKE2B d9bf42acf22f94ab0e3a530ca09e3cdac066c46f8b3e443b1c6e0768e6e0a516175452f673edf85832e527e0533c7ab65f51f328af4f01883d02d91e45880c84 SHA512 b49f4e05ed7b2dbac319380a929240366b2da559bd612838ab447b2b705a962b5d006f1a087d3bbd9df0b6ab307030811747fb2cc78fa2d2e1ab6c8020767c84

diff --git a/net-im/prosody-modules/prosody-modules-0_pre20230221.ebuild b/net-im/prosody-modules/prosody-modules-0_pre20230221.ebuild
new file mode 100644
index 000000000000..9b0ba076aa2b
--- /dev/null
+++ b/net-im/prosody-modules/prosody-modules-0_pre20230221.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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 ~arm64 ~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
+
+	save_config prosody-modules.conf
+
+	einstalldocs
+}
+
+pkg_postinst() {
+	savedconfig_pkg_postinst
+
+	einfo "In order to use the community modules on an existing instance, you have to add"
+	einfo "'/usr/$(get_libdir)/prosody/community-modules' into 'plugin_paths'"
+	einfo "into your prosody configuration file '/etc/jabber/prosody.cfg.lua.'"
+	einfo ""
+	einfo "Example: plugin_paths = { \"/usr/$(get_libdir)/prosody/modules\", \"/usr/$(get_libdir)/prosody/community-modules\" };"
+}


             reply	other threads:[~2023-02-21 20:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21 20:03 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-31 18:35 [gentoo-commits] repo/gentoo:master commit in: net-im/prosody-modules/ Conrad Kostecki
2023-08-05 22:41 Conrad Kostecki
2023-08-05 22:41 Conrad Kostecki
2023-02-21 20:03 Conrad Kostecki
2022-03-19 18:24 Conrad Kostecki
2022-03-19 18:24 Conrad Kostecki
2021-10-29 22:01 Conrad Kostecki
2021-10-29 22:01 Conrad Kostecki
2021-10-29 22:01 Conrad Kostecki
2021-09-01 20:28 Conrad Kostecki
2021-09-01 20:28 Conrad Kostecki
2021-05-15  0:02 Conrad Kostecki
2021-05-14 23:00 Conrad Kostecki
2021-05-14 23:00 Conrad Kostecki
2021-01-05 22:17 Conrad Kostecki
2021-01-05 22:17 Conrad Kostecki
2020-10-12 11:40 Conrad Kostecki
2020-10-07 21:41 Conrad Kostecki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1677009784.85d123709dfdcba647c2d0a9d5c3edf53bab283c.conikost@gentoo \
    --to=conikost@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox