blob: dd41729b7c1a8b08ccba0f231f4fcca6cba6cb06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# Copyright (C) 2022 Wael Karram <wael@waelk.tech>
# SPDX-License-Identifier: CC0-1.0
# Maintainer: Parabola hackers <dev@lists.parabola.nu>
# The prosody-modules repository doesn't have tags that correspond to
# the prosody releases. In the prosody source code we have:
# $ hg tags | grep "^0.12.1"
# 0.12.1 12526:252ed01896dd
# $ hg log
# [...]
# changeset: 12543:cf29bdb74c15
# branch: 0.12
# parent: 12526:252ed01896dd
# user: Matthew Wild <mwild1@gmail.com>
# date: Thu Jun 09 12:42:57 2022 +0100
# summary: Added tag 0.12.1 for changeset 252ed01896dd
# [...]
# changeset: 12526:252ed01896dd
# branch: 0.12
# tag: 0.12.1
# user: Kim Alvefur <zash@zash.se>
# date: Fri May 27 14:45:35 2022 +0200
# summary: mod_smacks: Bounce unhandled stanzas from local origin (fix #1759)
# So we used the revision 4959:0989dea9b356
# and in prosody-modules we have:
# $ hg log
# changeset: 4960:59bedf167910
# user: Kim Alvefur <zash@zash.se>
# date: Mon Jun 13 14:25:39 2022 +0200
# summary: mod_muc_ping: Remove since Prosody mod_muc 0.11+ covers this natively
#
# changeset: 4959:0989dea9b356
# user: Kim Alvefur <zash@zash.se>
# date: Sun Jun 05 21:59:17 2022 +0200
# summary: mod_rest: Add various things to openapi spec
# So we used the commit right before June 09 to correspond to the prosody release
pkgname=prosody-modules
pkgver=0.12.1
pkgrel=1
pkgdesc="Prosody community modules, includes experimental ones."
arch=('any')
url="https://modules.prosody.im/"
license=('MIT')
depends=('prosody')
makedepends=('mercurial')
mksource=("${pkgname}-${pkgver}::hg+https://hg.prosody.im/prosody-modules/#revision=4959:0989dea9b356")
source=("https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}")
mksha1sums=('SKIP')
sha1sums=('SKIP')
mksource() {
cd "${srcdir}/${pkgname}-${pkgver}/"
# Clean up mercurial files.
rm -rf \.hg \.hgtags
# Seems to download external dependencies, needs inspection.
rm -rf mod_admin_web
# Unmaintained and shouldn't be used.
rm -rf mod_auth_external_insecure
# Connects to AWS.
rm -rf mod_aws_profile
# Depricated, might conflict with built-in module.
rm -rf mod_bookmarks
# Requires modification to prosody core.
rm -rf mod_captcha_registrations
# Unsafe and unmaintained.
rm -rf mod_compression_unsafe
# Relies on conversejs' CDN, free software though.
rm -rf mod_conversejs
# Seems abandoned.
rm -rf mod_couchdb
# Deprecated.
rm -rf mod_easy_invite
# Integrated into core prosody software.
rm -rf mod_graceful_shutdown
# Seems to include unlicensed code.
rm -rf mod_pubsub_feeds
# Relies on github network services.
rm -rf mod_pubsub_github
# relies on twitter network services and API.
rm -rf mod_pubsub_twitter
# Monkeysphere project seems to be defunct.
rm -rf mod_s2s_auth_monkeysphere
# Relies on nonfree network services.
rm -rf mod_s2s_auth_posh
# Relies on nonfree network services.
rm -rf mod_sentry
# relies on nonfree network services.
rm -rf mod_slack_webhooks
# Relies on nonfree network services.
rm -rf mod_sms_clickatel
# Relies on nonfree network services.
rm -rf mod_sms_free
# Relies on nonfree network services.
rm -rf mod_tweet_data
# Relies on nonfree network services and unfinished/unmaintained.
rm -rf mod_twitter
}
package() {
# Make sure that the modules path exists.
mkdir -p "${pkgdir}/usr/lib/prosody/modules/"
# Copy the modules.
cp -r "${srcdir}/${pkgname}-${pkgver}/" "${pkgdir}/usr/lib/prosody/modules/"
}
|