Browse Source

Enable xmpp modules suggested by the Conversations app readme

Bob Mottram 9 years ago
parent
commit
0e5f6daa80
No account linked to committer's email
1 changed files with 16 additions and 4 deletions
  1. 16
    4
      src/freedombone

+ 16
- 4
src/freedombone View File

@@ -6987,7 +6987,7 @@ function update_prosody_modules {
6987 6987
 		cp $INSTALL_DIR/prosody-modules/mod_onions/mod_onions.lua /usr/lib/prosody/modules/mod_onions.lua
6988 6988
 	fi
6989 6989
 
6990
-	# message archive management
6990
+	# XEP-0313 message archive management
6991 6991
 	# https://modules.prosody.im/mod_mam.html
6992 6992
 	# Allows you to download your previous messages onto a new client
6993 6993
 	# This only applies if you are not using forward secret crypto
@@ -6996,19 +6996,19 @@ function update_prosody_modules {
6996 6996
 		cp $INSTALL_DIR/prosody-modules/mod_mam/*.lua /usr/lib/prosody/modules
6997 6997
 	fi
6998 6998
 
6999
-	# Client State Indication
6999
+	# XEP-0352 Client State Indication
7000 7000
 	# Notifies the server if the app is in the background or not
7001 7001
 	if [ -d $INSTALL_DIR/prosody-modules/mod_csi ]; then
7002 7002
 		cp $INSTALL_DIR/prosody-modules/mod_csi/*.lua /usr/lib/prosody/modules
7003 7003
 	fi
7004 7004
 
7005
-	# Message Carbons
7005
+	# XEP-0280 Message Carbons
7006 7006
 	# Ensures all messages get delivered to all clients (if you have a mobile and desktop client)
7007 7007
 	if [ -d $INSTALL_DIR/prosody-modules/mod_carbons ]; then
7008 7008
 		cp $INSTALL_DIR/prosody-modules/mod_carbons/*.lua /usr/lib/prosody/modules
7009 7009
 	fi
7010 7010
 
7011
-	# Stream management
7011
+	# XEP-0198 Stream management
7012 7012
 	# Helps mobile apps recover when a device switches networks.
7013 7013
 	if [ -d $INSTALL_DIR/prosody-modules/mod_smacks ]; then
7014 7014
 		cp $INSTALL_DIR/prosody-modules/mod_smacks/*.lua /usr/lib/prosody/modules
@@ -7016,6 +7016,14 @@ function update_prosody_modules {
7016 7016
 	if [ -d $INSTALL_DIR/prosody-modules/mod_smacks_offline ]; then
7017 7017
 		cp $INSTALL_DIR/prosody-modules/mod_smacks_offline/*.lua /usr/lib/prosody/modules
7018 7018
 	fi
7019
+
7020
+	# XEP-0191: blocking
7021
+	if [ -d $INSTALL_DIR/prosody-modules/mod_blocking ]; then
7022
+		cp $INSTALL_DIR/prosody-modules/mod_blocking/*.lua /usr/lib/prosody/modules
7023
+	fi
7024
+	if [ -d $INSTALL_DIR/prosody-modules/mod_privacy_lists ]; then
7025
+		cp $INSTALL_DIR/prosody-modules/mod_privacy_lists/*.lua /usr/lib/prosody/modules
7026
+	fi
7019 7027
 }
7020 7028
 
7021 7029
 function install_xmpp {
@@ -7094,6 +7102,10 @@ function install_xmpp {
7094 7102
 		echo '  "smacks"; -- Stream management' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7095 7103
 		echo '  "smacks_offline"; -- Stream management' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7096 7104
 		echo '  "pep"; -- Personal Eventing Protocol (to support OMEMO)' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7105
+		echo '  "privacy"; -- Privacy lists' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7106
+		echo '  "blocklist"; -- Blocklist' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7107
+		echo '  "blocking"; -- Blocking command' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7108
+		echo '  "roster"; -- Roster versioning' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7097 7109
 		echo '}' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7098 7110
 		echo '' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7099 7111
 		echo 'c2s_require_encryption = true' >> /etc/prosody/conf.avail/xmpp.cfg.lua