Selaa lähdekoodia

Enable xmpp modules suggested by the Conversations app readme

Bob Mottram 9 vuotta sitten
vanhempi
commit
0e5f6daa80
No account linked to committer's email
1 muutettua tiedostoa jossa 16 lisäystä ja 4 poistoa
  1. 16
    4
      src/freedombone

+ 16
- 4
src/freedombone Näytä tiedosto

6987
 		cp $INSTALL_DIR/prosody-modules/mod_onions/mod_onions.lua /usr/lib/prosody/modules/mod_onions.lua
6987
 		cp $INSTALL_DIR/prosody-modules/mod_onions/mod_onions.lua /usr/lib/prosody/modules/mod_onions.lua
6988
 	fi
6988
 	fi
6989
 
6989
 
6990
-	# message archive management
6990
+	# XEP-0313 message archive management
6991
 	# https://modules.prosody.im/mod_mam.html
6991
 	# https://modules.prosody.im/mod_mam.html
6992
 	# Allows you to download your previous messages onto a new client
6992
 	# Allows you to download your previous messages onto a new client
6993
 	# This only applies if you are not using forward secret crypto
6993
 	# This only applies if you are not using forward secret crypto
6996
 		cp $INSTALL_DIR/prosody-modules/mod_mam/*.lua /usr/lib/prosody/modules
6996
 		cp $INSTALL_DIR/prosody-modules/mod_mam/*.lua /usr/lib/prosody/modules
6997
 	fi
6997
 	fi
6998
 
6998
 
6999
-	# Client State Indication
6999
+	# XEP-0352 Client State Indication
7000
 	# Notifies the server if the app is in the background or not
7000
 	# Notifies the server if the app is in the background or not
7001
 	if [ -d $INSTALL_DIR/prosody-modules/mod_csi ]; then
7001
 	if [ -d $INSTALL_DIR/prosody-modules/mod_csi ]; then
7002
 		cp $INSTALL_DIR/prosody-modules/mod_csi/*.lua /usr/lib/prosody/modules
7002
 		cp $INSTALL_DIR/prosody-modules/mod_csi/*.lua /usr/lib/prosody/modules
7003
 	fi
7003
 	fi
7004
 
7004
 
7005
-	# Message Carbons
7005
+	# XEP-0280 Message Carbons
7006
 	# Ensures all messages get delivered to all clients (if you have a mobile and desktop client)
7006
 	# Ensures all messages get delivered to all clients (if you have a mobile and desktop client)
7007
 	if [ -d $INSTALL_DIR/prosody-modules/mod_carbons ]; then
7007
 	if [ -d $INSTALL_DIR/prosody-modules/mod_carbons ]; then
7008
 		cp $INSTALL_DIR/prosody-modules/mod_carbons/*.lua /usr/lib/prosody/modules
7008
 		cp $INSTALL_DIR/prosody-modules/mod_carbons/*.lua /usr/lib/prosody/modules
7009
 	fi
7009
 	fi
7010
 
7010
 
7011
-	# Stream management
7011
+	# XEP-0198 Stream management
7012
 	# Helps mobile apps recover when a device switches networks.
7012
 	# Helps mobile apps recover when a device switches networks.
7013
 	if [ -d $INSTALL_DIR/prosody-modules/mod_smacks ]; then
7013
 	if [ -d $INSTALL_DIR/prosody-modules/mod_smacks ]; then
7014
 		cp $INSTALL_DIR/prosody-modules/mod_smacks/*.lua /usr/lib/prosody/modules
7014
 		cp $INSTALL_DIR/prosody-modules/mod_smacks/*.lua /usr/lib/prosody/modules
7016
 	if [ -d $INSTALL_DIR/prosody-modules/mod_smacks_offline ]; then
7016
 	if [ -d $INSTALL_DIR/prosody-modules/mod_smacks_offline ]; then
7017
 		cp $INSTALL_DIR/prosody-modules/mod_smacks_offline/*.lua /usr/lib/prosody/modules
7017
 		cp $INSTALL_DIR/prosody-modules/mod_smacks_offline/*.lua /usr/lib/prosody/modules
7018
 	fi
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
 function install_xmpp {
7029
 function install_xmpp {
7094
 		echo '  "smacks"; -- Stream management' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7102
 		echo '  "smacks"; -- Stream management' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7095
 		echo '  "smacks_offline"; -- Stream management' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7103
 		echo '  "smacks_offline"; -- Stream management' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7096
 		echo '  "pep"; -- Personal Eventing Protocol (to support OMEMO)' >> /etc/prosody/conf.avail/xmpp.cfg.lua
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
 		echo '}' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7109
 		echo '}' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7098
 		echo '' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7110
 		echo '' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7099
 		echo 'c2s_require_encryption = true' >> /etc/prosody/conf.avail/xmpp.cfg.lua
7111
 		echo 'c2s_require_encryption = true' >> /etc/prosody/conf.avail/xmpp.cfg.lua