commit:     f23bb6f991f79cbbdda83e342e149b62f8297239
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 24 22:18:55 2015 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Mon Aug 24 22:18:55 2015 +0000
URL:        https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=f23bb6f9

net-im/prosody-modules: Add new module, install docs.

 net-im/prosody-modules/prosody-modules-9999.ebuild | 17 +++++++++++------
 profiles/desc/prosody_modules.desc                 |  1 +
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/net-im/prosody-modules/prosody-modules-9999.ebuild 
b/net-im/prosody-modules/prosody-modules-9999.ebuild
index 59e988a..22c95c7 100644
--- a/net-im/prosody-modules/prosody-modules-9999.ebuild
+++ b/net-im/prosody-modules/prosody-modules-9999.ebuild
@@ -26,11 +26,11 @@ PROSODY_MODULES="
        block_registrations block_s2s_subscriptions block_strangers
        block_subscribes block_subscriptions broadcast c2s_conn_throttle
        c2s_limit_sessions candy captcha_registration carbons carbons_adhoc
-       carbons_copies checkcerts client_certs compact_resource compat_bind
-       compat_muc_admin compat_vcard component_client component_roundrobin
-       conformance_restricted couchdb csi csi_compat data_access
-       default_bookmarks default_vcard delegation disable_tls discoitems
-       dwd email_pass extdisco filter_chatstates firewall flash_policy
+       carbons_copies checkcerts client_certs cloud_notify compact_resource 
+       compat_bind compat_muc_admin compat_vcard component_client 
+       component_roundrobin conformance_restricted couchdb csi csi_compat 
+       data_access default_bookmarks default_vcard delegation disable_tls 
+       discoitems dwd email_pass extdisco filter_chatstates firewall 
flash_policy
        group_bookmarks host_blacklist host_guard http_altconnect
        http_dir_listing http_favicon http_index http_muc_log
        http_user_count idlecompat incidents_handling ipcheck isolate_host
@@ -67,7 +67,8 @@ PROSODY_MODULES="
 # storage_mongodb proctitle storage_lmdb
 
 for x in ${PROSODY_MODULES}; do
-       IUSE="${IUSE} ${x//[^+]/}prosody_modules_${x/+}"
+       # Allow to enable modules by default
+       IUSE+=" ${x//[^+]/}prosody_modules_${x/+}"
 done
 
 DEPEND=">=net-im/prosody-0.9"
@@ -171,6 +172,10 @@ REQUIRED_USE="
 src_install() {
        for m in ${PROSODY_MODULES}; do
                if use prosody_modules_${m}; then
+                       if [[ -e mod_${m}/README.wiki ]]; then
+                               newdoc mod_${m}/README.wiki mod_${m}_README.wiki
+                               rm mod_${m}/README.wiki || die
+                       fi
                        insinto /usr/$(get_libdir)/prosody/modules;
                        doins -r "mod_${m}"
                fi

diff --git a/profiles/desc/prosody_modules.desc 
b/profiles/desc/prosody_modules.desc
index 6ac92d4..3b5f083 100644
--- a/profiles/desc/prosody_modules.desc
+++ b/profiles/desc/prosody_modules.desc
@@ -47,6 +47,7 @@ carbons - This module implements XEP-0280: Message Carbons, 
allowing users to ma
 carbons_adhoc - This module will add an Adhoc-command by which a user can see 
if Message Carbons (XEP-0280) are generated for his clients and also which 
version is used for the individual client. Clients which receive copies as per 
mod_carbons_copies will be listed as Version 0 carbons.
 carbons_copies - Enable v0 style carbons for clients which are not 
carbons-capable yet. This will not interfere with clients which have support 
for regular Message Carbons (XEP-0280).
 checkcerts - This module periodically checks your certificate to see if it is 
about to expire soon.  The time before expiry is printed in the logs.  About a 
week before a certificate expires, reminder messages will be sent to admins.
+cloud_notify - XEP-0357: Cloud push notifications
 client_certs - XEP-0257 specifies a protocol for clients to store and manage 
client side certificates. When a client presents a stored client side 
certificate during the TLS handshake, it can log in without supplying a 
password (using SASL EXTERNAL). This makes it possible to have multiple devices 
accessing an account, without any of them needing to know the password, and 
makes it easier to revoke access for a single device.
 compact_resource - Enforces short random resources
 compat_bind - Compatibility with clients that set 'to' on resource bind 
requests.

Reply via email to