1 |
commit: fa72ef00ab576e9364e81282eb230e89977f3cb6 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 14 22:58:17 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 14 22:58:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa72ef00 |
7 |
|
8 |
net-im/prosody-modules: bump to newest snapshot 20210515 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
net-im/prosody-modules/Manifest | 1 + |
14 |
.../prosody-modules-0_pre20210515.ebuild | 55 ++++++++++++++++++++++ |
15 |
2 files changed, 56 insertions(+) |
16 |
|
17 |
diff --git a/net-im/prosody-modules/Manifest b/net-im/prosody-modules/Manifest |
18 |
index 7ae3229da7b..1ef11d7f399 100644 |
19 |
--- a/net-im/prosody-modules/Manifest |
20 |
+++ b/net-im/prosody-modules/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST prosody-modules-0_pre20210105.tar.xz 1166992 BLAKE2B 02bf4ea4521194db51716c2716370e1b38e747da000dc8d27ce93b5f81d53b9e0367e96f3e18aee74c858ae86474bcaccb0ef944325f508337882acf3cd9e960 SHA512 c0739a309b66c958e205989988c6e7118c0385156d7ebc2a4825646af366fe5665ff6e7e98aab24cf3cc5530fe40c8e9a3440afff196a96624242c00861a308e |
23 |
+DIST prosody-modules-0_pre20210515.tar.xz 1196276 BLAKE2B 66e9dddeba1e139b16ecc1ea0b786a85cb9181e0bfa0123a9c9ce99f1aa64cc12ba92ffa6b83d63cbc0f45962a13ac8ec508030d99c5e58d645c708a1078dab3 SHA512 1cd48cfa66e72de843db2a593a524636aaa0f36cb5b848e19238d4c2951525882fb30a354e503d71e0fb4b6c8efe0aa09acc16285ac3357d4c8d353a2f48b120 |
24 |
|
25 |
diff --git a/net-im/prosody-modules/prosody-modules-0_pre20210515.ebuild b/net-im/prosody-modules/prosody-modules-0_pre20210515.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..ff13c951991 |
28 |
--- /dev/null |
29 |
+++ b/net-im/prosody-modules/prosody-modules-0_pre20210515.ebuild |
30 |
@@ -0,0 +1,55 @@ |
31 |
+# Copyright 2020-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit savedconfig |
37 |
+ |
38 |
+DESCRIPTION="A collection of community-maintained modules for Prosody" |
39 |
+HOMEPAGE="https://modules.prosody.im" |
40 |
+SRC_URI="https://dev.gentoo.org/~conikost/distfiles/${P}.tar.xz" |
41 |
+S="${WORKDIR}/${PN}" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
46 |
+ |
47 |
+RDEPEND="net-im/prosody" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ |
52 |
+ # Exclude 'misc' folder from install, since it does not provide any modules. |
53 |
+ echo "# Remove all modules from this list, which you don't want to install." > prosody-modules.conf || die |
54 |
+ find * -maxdepth 0 -type d ! -name misc >> prosody-modules.conf || die |
55 |
+ |
56 |
+ use savedconfig && restore_config prosody-modules.conf |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ insinto "/usr/$(get_libdir)/prosody/community-modules" |
61 |
+ while read prosody_module; do |
62 |
+ if ! [[ "${prosody_module}" = \#* ]]; then |
63 |
+ if [[ -f "${prosody_module}/README.markdown" ]]; then |
64 |
+ newdoc "${prosody_module}/README.markdown" "README.${prosody_module}" |
65 |
+ rm "${prosody_module}/README.markdown" || die |
66 |
+ fi |
67 |
+ |
68 |
+ doins -r "${prosody_module}" |
69 |
+ fi |
70 |
+ done <prosody-modules.conf |
71 |
+ |
72 |
+ save_config prosody-modules.conf |
73 |
+ |
74 |
+ einstalldocs |
75 |
+} |
76 |
+ |
77 |
+pkg_postinst() { |
78 |
+ savedconfig_pkg_postinst |
79 |
+ |
80 |
+ einfo "In order to use the community modules on an existing instance, you have to add" |
81 |
+ einfo "'/usr/$(get_libdir)/prosody/community-modules' into 'plugin_paths'" |
82 |
+ einfo "into your prosody configuration file '/etc/jabber/prosody.cfg.lua.'" |
83 |
+ einfo "" |
84 |
+ einfo "Example: plugin_paths = { /usr/$(get_libdir)/prosody/community-modules };" |
85 |
+} |