summaryrefslogtreecommitdiff
path: root/chat/prosody
diff options
context:
space:
mode:
authorschnoebe <schnoebe@pkgsrc.org>2011-06-06 14:41:48 +0000
committerschnoebe <schnoebe@pkgsrc.org>2011-06-06 14:41:48 +0000
commit2d44972f2a0c803ea46ef469b08ecabf33445a07 (patch)
treea6b53cc20dd49d78dee270531a32de2f6f453831 /chat/prosody
parent9c8e41708f2dcb9d5a77357614e9838e7a6b5b4e (diff)
downloadpkgsrc-2d44972f2a0c803ea46ef469b08ecabf33445a07.tar.gz
Update to prosody 0.8.1.
A security and bug fix release. The security aspect is to mitigate the "billion laughs" denial-of-service attack against XML parsers and XMPP servers. Other changes: - Reject XML DTDs, comments and processing instructions, preventing the "billion laughs" attack - Switch to MEDIUMTEXT in the schema for MySQL to avoid truncating large data (such as large avatars) Prosody automatically upgrades the table in-place if possible, see: http://prosody.im/doc/mysql - Fix for endless loop when parsing certain invalid JSON - Fix PostgreSQL compatibility in prosody-migrator - Fix timestamp parsing for DST (affecting MUC scrollback retrieval) - mod_legacyauth now correctly disabled for unencrypted connections by default - Components properly inherit SSL settings and certificates from their 'parent' hosts - Prevent startup with no VirtualHost entries in the config file
Diffstat (limited to 'chat/prosody')
-rw-r--r--chat/prosody/Makefile7
-rw-r--r--chat/prosody/PLIST29
-rw-r--r--chat/prosody/distinfo15
-rw-r--r--chat/prosody/patches/patch-aa17
-rw-r--r--chat/prosody/patches/patch-ab31
-rw-r--r--chat/prosody/patches/patch-ac14
-rw-r--r--chat/prosody/patches/patch-ad25
7 files changed, 65 insertions, 73 deletions
diff --git a/chat/prosody/Makefile b/chat/prosody/Makefile
index 81cf5ee1062..d3ea8b2f068 100644
--- a/chat/prosody/Makefile
+++ b/chat/prosody/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2011/04/22 13:43:07 obache Exp $
+# $NetBSD: Makefile,v 1.3 2011/06/06 14:41:48 schnoebe Exp $
#
-DISTNAME= prosody-0.7.0
-PKGREVISION= 1
+DISTNAME= prosody-0.8.1
CATEGORIES= chat
MASTER_SITES= http://prosody.im/downloads/source/
@@ -14,7 +13,7 @@ LICENSE= mit
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= lua-filesystem>=1.0:../../devel/lua-filesystem
-DEPENDS+= lua-expat>=1.1:../../textproc/lua-expat
+DEPENDS+= lua-expat>=1.2:../../textproc/lua-expat
DEPENDS+= lua-sec>=0.3.3:../../security/lua-sec
DEPENDS+= lua-socket>=2.0:../../net/lua-socket
diff --git a/chat/prosody/PLIST b/chat/prosody/PLIST
index 9b57f7303c1..4fbefb41b16 100644
--- a/chat/prosody/PLIST
+++ b/chat/prosody/PLIST
@@ -1,25 +1,29 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/21 11:01:22 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.2 2011/06/06 14:41:48 schnoebe Exp $
bin/prosody
bin/prosodyctl
lib/prosody/core/certmanager.lua
-lib/prosody/core/componentmanager.lua
lib/prosody/core/configmanager.lua
-lib/prosody/core/eventmanager.lua
lib/prosody/core/hostmanager.lua
lib/prosody/core/loggingmanager.lua
lib/prosody/core/modulemanager.lua
-lib/prosody/core/offlinemanager.lua
lib/prosody/core/rostermanager.lua
lib/prosody/core/s2smanager.lua
lib/prosody/core/sessionmanager.lua
lib/prosody/core/stanza_router.lua
+lib/prosody/core/storagemanager.lua
lib/prosody/core/usermanager.lua
-lib/prosody/core/xmlhandlers.lua
+lib/prosody/modules/adhoc/adhoc.lib.lua
+lib/prosody/modules/adhoc/mod_adhoc.lua
+lib/prosody/modules/mod_admin_adhoc.lua
+lib/prosody/modules/mod_admin_telnet.lua
lib/prosody/modules/mod_announce.lua
+lib/prosody/modules/mod_auth_anonymous.lua
+lib/prosody/modules/mod_auth_cyrus.lua
+lib/prosody/modules/mod_auth_internal_hashed.lua
+lib/prosody/modules/mod_auth_internal_plain.lua
lib/prosody/modules/mod_bosh.lua
lib/prosody/modules/mod_component.lua
lib/prosody/modules/mod_compression.lua
-lib/prosody/modules/mod_console.lua
lib/prosody/modules/mod_dialback.lua
lib/prosody/modules/mod_disco.lua
lib/prosody/modules/mod_groups.lua
@@ -28,6 +32,8 @@ lib/prosody/modules/mod_iq.lua
lib/prosody/modules/mod_lastactivity.lua
lib/prosody/modules/mod_legacyauth.lua
lib/prosody/modules/mod_message.lua
+lib/prosody/modules/mod_motd.lua
+lib/prosody/modules/mod_offline.lua
lib/prosody/modules/mod_pep.lua
lib/prosody/modules/mod_ping.lua
lib/prosody/modules/mod_posix.lua
@@ -38,6 +44,8 @@ lib/prosody/modules/mod_proxy65.lua
lib/prosody/modules/mod_register.lua
lib/prosody/modules/mod_roster.lua
lib/prosody/modules/mod_saslauth.lua
+lib/prosody/modules/mod_storage_internal.lua
+lib/prosody/modules/mod_storage_sql.lua
lib/prosody/modules/mod_time.lua
lib/prosody/modules/mod_tls.lua
lib/prosody/modules/mod_uptime.lua
@@ -64,18 +72,22 @@ lib/prosody/net/xmppserver_listener.lua
lib/prosody/prosody.version
lib/prosody/util/array.lua
lib/prosody/util/broadcast.lua
+lib/prosody/util/caps.lua
lib/prosody/util/dataforms.lua
lib/prosody/util/datamanager.lua
lib/prosody/util/datetime.lua
lib/prosody/util/dependencies.lua
lib/prosody/util/encodings.so
lib/prosody/util/events.lua
+lib/prosody/util/filters.lua
lib/prosody/util/hashes.so
lib/prosody/util/helpers.lua
lib/prosody/util/hmac.lua
+lib/prosody/util/httpstream.lua
lib/prosody/util/import.lua
lib/prosody/util/iterators.lua
lib/prosody/util/jid.lua
+lib/prosody/util/json.lua
lib/prosody/util/logger.lua
lib/prosody/util/multitable.lua
lib/prosody/util/pluginloader.lua
@@ -91,12 +103,15 @@ lib/prosody/util/serialization.lua
lib/prosody/util/set.lua
lib/prosody/util/signal.so
lib/prosody/util/stanza.lua
+lib/prosody/util/template.lua
lib/prosody/util/termcolours.lua
lib/prosody/util/timer.lua
lib/prosody/util/uuid.lua
lib/prosody/util/xmlrpc.lua
-lib/prosody/util/ztact.lua
+lib/prosody/util/xmppstream.lua
man/man1/prosodyctl.1
+share/examples/prosody/certs/Makefile
share/examples/prosody/certs/localhost.cert
share/examples/prosody/certs/localhost.key
+share/examples/prosody/certs/openssl.cnf
share/examples/prosody/prosody.cfg.lua
diff --git a/chat/prosody/distinfo b/chat/prosody/distinfo
index 9f5333240b0..0f5bc91bd9c 100644
--- a/chat/prosody/distinfo
+++ b/chat/prosody/distinfo
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2010/09/21 11:01:22 fhajny Exp $
+$NetBSD: distinfo,v 1.2 2011/06/06 14:41:48 schnoebe Exp $
-SHA1 (prosody-0.7.0.tar.gz) = 3f3a6c4f262a062a9c027cc843cd6827104fb8ba
-RMD160 (prosody-0.7.0.tar.gz) = 2e40b4f807b6120971c611f52d4df3264a82cbb9
-Size (prosody-0.7.0.tar.gz) = 177412 bytes
-SHA1 (patch-aa) = 5bb7fb62cc367e075b4213b7cc85661fece0cf23
-SHA1 (patch-ab) = 687ee0ad43074c36c0f1a7fa7bb3cd4575fcae54
-SHA1 (patch-ac) = 3463fffe6884326a8f39f22216f9c94f35ad5cd7
-SHA1 (patch-ad) = d0fc4133bc2027c5f5b3a690bfca4c76a70f48fc
+SHA1 (prosody-0.8.1.tar.gz) = 7de714c019eca35346300c61d609ad2ce999b692
+RMD160 (prosody-0.8.1.tar.gz) = d0b357fb0a9e8ba77b0f45f6342172e262ec018b
+Size (prosody-0.8.1.tar.gz) = 211970 bytes
+SHA1 (patch-aa) = 241c01dbd8de2821c0988032db50b01cc61c548c
+SHA1 (patch-ab) = e8816af363cc452d43dd860f161f1735e6d2e301
+SHA1 (patch-ad) = 5cd22cb93895b6f60b4f910d6aab09e6f1f22712
diff --git a/chat/prosody/patches/patch-aa b/chat/prosody/patches/patch-aa
index 652d5a178a3..fd50e94ae6d 100644
--- a/chat/prosody/patches/patch-aa
+++ b/chat/prosody/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.1.1.1 2010/09/21 11:01:22 fhajny Exp $
+$NetBSD: patch-aa,v 1.2 2011/06/06 14:41:48 schnoebe Exp $
Fix installation directories and scripts
---- Makefile.orig 2010-06-13 00:23:01.000000000 +0000
+--- Makefile.orig 2011-06-03 15:31:32.000000000 +0000
+++ Makefile
@@ -3,10 +3,11 @@ include config.unix
@@ -16,7 +16,7 @@ Fix installation directories and scripts
INSTALLEDSOURCE = $(PREFIX)/lib/prosody
INSTALLEDCONFIG = $(SYSCONFDIR)
-@@ -17,27 +18,31 @@ all: prosody.install prosodyctl.install
+@@ -17,28 +18,33 @@ all: prosody.install prosodyctl.install
$(MAKE) -C util-src install
install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so util/signal.so
@@ -37,17 +37,18 @@ Fix installation directories and scripts
- install -d $(MODULES)/muc
- install -m644 plugins/muc/* $(MODULES)/muc
- install -m644 certs/* $(CONFIG)/certs
-- install -m644 plugins/*.lua $(MODULES)
+- install -d $(MODULES)/adhoc
+- install -m644 plugins/adhoc/*.lua $(MODULES)/adhoc
- install -m644 man/prosodyctl.man $(MAN)/man1/prosodyctl.1
- test -e $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua
- test -e prosody.version && install prosody.version $(SOURCE)/prosody.version || true
-+ $(BSD_INSTALL_SCRIPT_DIR) $(BIN)
++ $(BSD_INSTALL_SCRIPT_DIR) $(BIN)
+ $(BSD_INSTALL_DATA_DIR) $(EGDIR)
+ $(BSD_INSTALL_DATA_DIR) $(MODULES)
+ $(BSD_INSTALL_DATA_DIR) $(SOURCE)
+ $(BSD_INSTALL_DATA_DIR) -m 750 $(DATA)
+ $(BSD_INSTALL_MAN_DIR) $(MAN)/man1
-+ $(BSD_INSTALL_LIB_DIR) $(SOURCE)/core
++ $(BSD_INSTALL_LIB_DIR) $(SOURCE)/core
+ $(BSD_INSTALL_LIB_DIR) $(SOURCE)/net
+ $(BSD_INSTALL_LIB_DIR) $(SOURCE)/util
+ $(BSD_INSTALL_SCRIPT) ./prosody.install $(BIN)/prosody
@@ -59,10 +60,12 @@ Fix installation directories and scripts
+ $(BSD_INSTALL_LIB_DIR) $(SOURCE)/util/sasl
+ $(BSD_INSTALL_DATA) util/sasl/* $(SOURCE)/util/sasl
+ $(BSD_INSTALL_DATA) plugins/*.lua $(MODULES)
-+ $(BSD_INSTALL_DATA_DIR) $(MODULES)/muc
++ $(BSD_INSTALL_LIB_DIR) $(MODULES)/muc
+ $(BSD_INSTALL_DATA) plugins/muc/* $(MODULES)/muc
+ $(BSD_INSTALL_DATA_DIR) $(EGDIR)/certs
+ $(BSD_INSTALL_DATA) certs/* $(EGDIR)/certs
++ $(BSD_INSTALL_LIB_DIR) $(MODULES)/adhoc
++ $(BSD_INSTALL_DATA) plugins/adhoc/*.lua $(MODULES)/adhoc
+ $(BSD_INSTALL_MAN) man/prosodyctl.man $(MAN)/man1/prosodyctl.1
+ $(BSD_INSTALL_DATA) prosody.cfg.lua.install $(EGDIR)/prosody.cfg.lua
+ $(BSD_INSTALL_DATA) prosody.version $(SOURCE)/prosody.version
diff --git a/chat/prosody/patches/patch-ab b/chat/prosody/patches/patch-ab
index dc72c8f1cb5..fdc465fd2f5 100644
--- a/chat/prosody/patches/patch-ab
+++ b/chat/prosody/patches/patch-ab
@@ -1,24 +1,31 @@
-$NetBSD: patch-ab,v 1.1.1.1 2010/09/21 11:01:22 fhajny Exp $
+$NetBSD: patch-ab,v 1.2 2011/06/06 14:41:48 schnoebe Exp $
-Enable POSIX functionality by default
---- prosody.cfg.lua.dist.orig 2010-06-13 00:23:02.000000000 +0000
+enable POSIX functionality by default
+set the logging paths
+set up the pid files
+
+--- prosody.cfg.lua.dist.orig 2011-06-03 15:31:34.000000000 +0000
+++ prosody.cfg.lua.dist
-@@ -54,7 +54,7 @@ modules_enabled = {
- "register"; -- Allow users to register on this server using a client and change passwords
+@@ -59,7 +59,7 @@ modules_enabled = {
+ --"admin_telnet"; -- Opens telnet console interface on localhost port 5582
-- Other specific functionality
- --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
-+ "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
- --"console"; -- Opens admin telnet interface on localhost port 5582
++ posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
--"httpserver"; -- Serve static files from a directory over HTTP
-@@ -90,9 +90,12 @@ ssl = {
-
+ --"groups"; -- Shared roster support
+@@ -123,12 +123,15 @@ authentication = "internal_plain"
-- Logging configuration
-- For advanced logging see http://prosody.im/doc/logging
--log = "prosody.log";
-+log = "@PROSODY_LOG@/prosody.log";
- debug = false; -- Log debug messages?
+ log = {
+- info = "prosody.log"; -- Change 'info' to 'debug' for verbose logging
+- error = "prosody.err";
++ info = "@PROSODY_LOG@/prosody.log"; -- Change 'info' to 'debug' for verbose logging
++ error = "@PROSODY_LOG@/prosody.err";
+ -- "*syslog"; -- Uncomment this for logging to syslog
+ -- "*console"; -- Log to the console, useful for debugging with daemonize=false
+ }
+-- Enable PID file by default
+pidfile = "@PROSODY_RUN@/prosody.pid";
diff --git a/chat/prosody/patches/patch-ac b/chat/prosody/patches/patch-ac
deleted file mode 100644
index 418e293bb97..00000000000
--- a/chat/prosody/patches/patch-ac
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-ac,v 1.1.1.1 2010/09/21 11:01:22 fhajny Exp $
-
-Add runtime search path to linking phase
---- util-src/Makefile.orig 2010-06-13 00:23:02.000000000 +0000
-+++ util-src/Makefile
-@@ -16,7 +16,7 @@ LD?=gcc
-
- .o.so:
- MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
-- $(LD) $(LDFLAGS) -o $@ $< -L$(LUA_LIBDIR) -llua$(LUA_SUFFIX) -lidn -lcrypto
-+ $(LD) $(LDFLAGS) -o $@ $< -L$(LUA_LIBDIR) -R$(LUA_LIBDIR) -llua$(LUA_SUFFIX) -lidn -lcrypto
-
- all: encodings.so hashes.so pposix.so signal.so
-
diff --git a/chat/prosody/patches/patch-ad b/chat/prosody/patches/patch-ad
index 6edb799d362..1e53f1699ba 100644
--- a/chat/prosody/patches/patch-ad
+++ b/chat/prosody/patches/patch-ad
@@ -1,7 +1,8 @@
-$NetBSD: patch-ad,v 1.1.1.1 2010/09/21 11:01:22 fhajny Exp $
+$NetBSD: patch-ad,v 1.2 2011/06/06 14:41:48 schnoebe Exp $
-Fix POSIX logic for BSD systems
---- util-src/signal.c.orig 2010-06-13 00:23:02.000000000 +0000
+Include <sys/param.h> when on UNIX
+
+--- util-src/signal.c.orig 2011-06-03 15:31:34.000000000 +0000
+++ util-src/signal.c
@@ -29,6 +29,10 @@
#include <signal.h>
@@ -14,21 +15,3 @@ Fix POSIX logic for BSD systems
#include "lua.h"
#include "lauxlib.h"
-@@ -326,7 +330,7 @@ static int l_raise(lua_State *L)
- return 1;
- }
-
--#if defined _POSIX_SOURCE || (defined(sun) || defined(__sun))
-+#ifdef __unix__
-
- /* define some posix only functions */
-
-@@ -373,7 +377,7 @@ static int l_kill(lua_State *L)
- static const struct luaL_Reg lsignal_lib[] = {
- {"signal", l_signal},
- {"raise", l_raise},
--#if defined _POSIX_SOURCE || (defined(sun) || defined(__sun))
-+#ifdef __unix__
- {"kill", l_kill},
- #endif
- {NULL, NULL}