Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/mrueg:master commit in: net-im/prosody-modules/
Date: Sun, 28 Jun 2015 00:36:30
Message-Id: 1435451725.3f75baba8c8ebf77c2db88f5c10b522c0a27c839.mrueg@gentoo
1 commit: 3f75baba8c8ebf77c2db88f5c10b522c0a27c839
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 28 00:35:25 2015 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 28 00:35:25 2015 +0000
6 URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=3f75baba
7
8 [net-im/prosody-modules] Ebuild taken from lua-overlay by Vadim A. Misbakh-Soloviov. Update modules, fix libdir, drop redundant directory change.
9
10 Package-Manager: portage-2.2.20
11
12 net-im/prosody-modules/metadata.xml | 13 ++
13 net-im/prosody-modules/prosody-modules-9999.ebuild | 182 +++++++++++++++++++++
14 2 files changed, 195 insertions(+)
15
16 diff --git a/net-im/prosody-modules/metadata.xml b/net-im/prosody-modules/metadata.xml
17 new file mode 100644
18 index 0000000..fc852c2
19 --- /dev/null
20 +++ b/net-im/prosody-modules/metadata.xml
21 @@ -0,0 +1,13 @@
22 +<?xml version="1.0" encoding="UTF-8"?>
23 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
24 +<pkgmetadata>
25 +<maintainer>
26 + <email>mrueg@g.o</email>
27 + <name>Manuel Rüger</name>
28 +</maintainer>
29 +<longdescription>Community-writen modules for Prosody IM Server</longdescription>
30 +<use>
31 + <flag name='luajit'>Use dev-lang/luajit instead of dev-lang/lua</flag>
32 + <flag name='misc'>Install misc files.</flag>
33 +</use>
34 +</pkgmetadata>
35
36 diff --git a/net-im/prosody-modules/prosody-modules-9999.ebuild b/net-im/prosody-modules/prosody-modules-9999.ebuild
37 new file mode 100644
38 index 0000000..914f2dd
39 --- /dev/null
40 +++ b/net-im/prosody-modules/prosody-modules-9999.ebuild
41 @@ -0,0 +1,182 @@
42 +# Copyright 1999-2015 Gentoo Foundation
43 +# Distributed under the terms of the GNU General Public License v2
44 +# $Header: $
45 +
46 +EAPI=5
47 +
48 +inherit eutils multilib mercurial
49 +
50 +DESCRIPTION="Add-on modules for Prosody IM Server written in Lua"
51 +HOMEPAGE="https://prosody-modules.googlecode.com/"
52 +EHG_REPO_URI="https://hg.prosody.im/prosody-modules"
53 +
54 +LICENSE="MIT"
55 +SLOT="0"
56 +KEYWORDS=""
57 +
58 +IUSE="misc luajit"
59 +
60 +PROSODY_MODULES="
61 + addressing adhoc_account_management adhoc_blacklist admin_blocklist
62 + admin_message admin_probe admin_web auth_any auth_ccert
63 + auth_custom_http auth_dovecot auth_ha1 auth_http_async auth_imap
64 + auth_internal_yubikey auth_joomla auth_ldap auth_ldap2 auth_pam
65 + auth_phpbb3 auth_sql auth_wordpress auto_accept_subscriptions
66 + auto_activate_hosts benchmark_storage bidi blocking
67 + block_registrations block_s2s_subscriptions block_strangers
68 + block_subscribes block_subscriptions broadcast c2s_conn_throttle
69 + c2s_limit_sessions candy captcha_registration carbons carbons_adhoc
70 + carbons_copies checkcerts client_certs compact_resource compat_bind
71 + compat_muc_admin compat_vcard component_client component_roundrobin
72 + conformance_restricted couchdb csi csi_compat data_access
73 + default_bookmarks default_vcard delegation disable_tls discoitems
74 + dwd email_pass extdisco filter_chatstates firewall flash_policy
75 + group_bookmarks host_blacklist host_guard http_altconnect
76 + http_dir_listing http_favicon http_index http_muc_log
77 + http_user_count idlecompat incidents_handling ipcheck isolate_host
78 + jid_prep json_streams lastlog latex lib_ldap limit_auth limits
79 + list_inactive listusers log_auth log_events log_messages_sql
80 + log_rate log_sasl_mech log_slow_events mam mam_adhoc mam_archive
81 + mam_muc mam_muc_sql mam_sql mamsub manifesto measure_cpu
82 + measure_memory message_logging motd_sequential muc_ban_ip
83 + muc_config_restrict muc_intercom muc_limits muc_log muc_log_http
84 + muc_restrict_rooms munin net_dovecotauth offline_email onhold onions
85 + openid password_policy pastebin pep_vcard_avatar post_msg
86 + privacy_lists private_adhoc profile proxy65_whitelist
87 + pubsub_eventsource pubsub_feeds pubsub_github pubsub_googlecode
88 + pubsub_hub pubsub_mqtt pubsub_pivotaltracker pubsub_post
89 + pubsub_twitter privilege query_client_ver rawdebug
90 + readonly register_json register_redirect register_web reload_modules
91 + remote_roster require_otr roster_allinall roster_command
92 + s2s_auth_compat s2s_auth_dane s2s_auth_fingerprint
93 + s2s_auth_monkeysphere s2s_blacklist s2s_idle_timeout s2s_keepalive
94 + s2s_keysize_policy s2s_log_certs s2s_never_encrypt_blacklist
95 + s2soutinjection s2s_reload_newcomponent s2s_whitelist saslauth_muc
96 + saslname seclabels secure_interfaces server_contact_info
97 + server_status service_directories sift smacks sms_clickatell
98 + srvinjection sslv3_warn stanza_counter statistics statistics_auth
99 + statistics_cputotal statistics_mem statistics_statsd statsd
100 + storage_gdbm storage_ldap storage_memory storage_mongodb
101 + storage_muc_log storage_multi storage_xmlarchive streamstats
102 + strict_https support_contact swedishchef tcpproxy telnet_tlsinfo
103 + throttle_presence tls_policy turncredentials twitter uptime_presence
104 + vjud watchuntrusted webpresence
105 + "
106 +# Missing modules because of missing deps:
107 +# auth_internal_yubikey auth_external inotify_reload statistics
108 +# storage_mongodb proctitle storage_lmdb
109 +
110 +for x in ${PROSODY_MODULES}; do
111 + IUSE="${IUSE} ${x//[^+]/}prosody_modules_${x/+}"
112 +done
113 +
114 +DEPEND=">=net-im/prosody-0.9"
115 +RDEPEND="
116 + ${DEPEND}
117 + prosody_modules_auth_joomla? (
118 + dev-lua/luadbi
119 + )
120 + prosody_modules_lib_ldap? (
121 + dev-lua/lualdap
122 + )
123 + prosody_modules_client_certs? (
124 + dev-lua/luasec
125 + )
126 + prosody_modules_listusers? (
127 + dev-lua/luasocket
128 + dev-lua/luafilesystem
129 + )
130 + prosody_modules_pubsub_pivotaltracker? (
131 + dev-lua/luaexpat
132 + )
133 + prosody_modules_auth_phpbb3? (
134 + dev-lua/luadbi
135 + )
136 + prosody_modules_log_messages_sql? (
137 + dev-lua/luadbi
138 + )
139 + prosody_modules_message_logging? (
140 + dev-lua/luafilesystem
141 + )
142 + prosody_modules_onions? (
143 + virtual/lua[bit]
144 + )
145 + prosody_modules_couchdb? (
146 + dev-lua/luasocket
147 + )
148 + prosody_modules_auth_custom_http? (
149 + dev-lua/luasocket
150 + )
151 + prosody_modules_mam_muc_sql? (
152 + dev-lua/luasocket
153 + dev-lua/luadbi
154 + )
155 + prosody_modules_checkcerts? (
156 + dev-lua/luasec
157 + )
158 + prosody_modules_auth_dovecot? (
159 + dev-lua/luasocket
160 + )
161 + prosody_modules_storage_ldap? (
162 + dev-lua/luasocket
163 + )
164 + prosody_modules_http_dir_listing? (
165 + dev-lua/luasocket
166 + dev-lua/luafilesystem
167 + )
168 + prosody_modules_mam_sql? (
169 + dev-lua/luasocket
170 + dev-lua/luadbi
171 + )
172 + prosody_modules_offline_email? (
173 + dev-lua/luasocket
174 + )
175 + prosody_modules_auth_wordpress? (
176 + dev-lua/luadbi
177 + )
178 + prosody_modules_muc_log_http? (
179 + dev-lua/luafilesystem
180 + dev-lua/luaexpat
181 + )
182 + prosody_modules_component_client? (
183 + dev-lua/luasocket
184 + )
185 + prosody_modules_auth_sql? (
186 + dev-lua/luadbi
187 + )
188 +"
189 +# prosody_modules_auth_internal_yubikey? (
190 +# virtual/lua[bit,luajit=]
191 +# dev-lua/yubikey-lua
192 +# )
193 +# prosody_modules_auth_external? (
194 +# dev-lua/lpc
195 +# )
196 +# prosody_modules_inotify_reload? (
197 +# dev-lua/linotify
198 +# )
199 +# prosody_modules_statistics? (
200 +# dev-lua/luaposix[ncurses
201 +# )
202 +# prosody_modules_storage_mongodb? (
203 +# dev-lua/luamongo
204 +# )
205 +# proctitle https://github.com/hoelzro/lua-proctitle
206 +# storage_lmdb https://github.com/shmul/lightningdbm
207 +REQUIRED_USE="
208 + prosody_modules_auth_ldap? ( prosody_modules_lib_ldap )
209 + prosody_modules_auth_ldap2? ( prosody_modules_lib_ldap )
210 +"
211 +
212 +src_install() {
213 + for m in ${PROSODY_MODULES}; do
214 + if use prosody_modules_${m}; then
215 + insinto /usr/$(get_libdir)/prosody/modules;
216 + doins -r "mod_${m}"
217 + fi
218 + done
219 + use misc && (
220 + insinto /usr/$(get_libdir)/prosody/modules
221 + doins -r misc
222 + )
223 +}