Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net-im/prosody/Makefile,v retrieving revision 1.10 diff -u -r1.10 Makefile --- Makefile 14 Mar 2011 08:40:05 -0000 1.10 +++ Makefile 10 Apr 2011 11:49:38 -0000 @@ -6,8 +6,7 @@ # PORTNAME= prosody -PORTVERSION= 0.7.0 -PORTREVISION= 1 +PORTVERSION= 0.8.0 CATEGORIES= net-im MASTER_SITES= http://prosody.im/downloads/source/ \ http://redundancy.redundancy.org/mirror/ @@ -37,7 +36,7 @@ pre-install: ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - ${REINPLACE_CMD} -e 's|/usr/bin/env lua|${LUA_CMD}|' ${WRKSRC}/prosody.install ${WRKSRC}/prosodyctl.install + ${REINPLACE_CMD} -e 's|/usr/bin/env lua|${LUA_CMD}|' ${WRKSRC}/prosody ${WRKSRC}/prosodyctl post-install: ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL Index: distinfo =================================================================== RCS file: /home/pcvs/ports/net-im/prosody/distinfo,v retrieving revision 1.4 diff -u -r1.4 distinfo --- distinfo 4 Dec 2010 01:19:43 -0000 1.4 +++ distinfo 10 Apr 2011 11:49:38 -0000 @@ -1,2 +1,2 @@ -SHA256 (prosody-0.7.0.tar.gz) = a8b826805dd55282706c5683c2028899b3721eb0f84d3e35c0509a6c1bc32390 -SIZE (prosody-0.7.0.tar.gz) = 177412 +SHA256 (prosody-0.8.0.tar.gz) = 0b9e39a6b555b4c848af288f27107e99b1480d9733556a2c9b3a9f249eba602d +SIZE (prosody-0.8.0.tar.gz) = 210945 Index: pkg-plist =================================================================== RCS file: /home/pcvs/ports/net-im/prosody/pkg-plist,v retrieving revision 1.5 diff -u -r1.5 pkg-plist --- pkg-plist 4 Dec 2010 01:19:43 -0000 1.5 +++ pkg-plist 10 Apr 2011 11:49:38 -0000 @@ -12,24 +12,30 @@ @dirrmtry etc/prosody/certs @dirrmtry etc/prosody 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/mod_admin_adhoc.lua +lib/prosody/modules/mod_admin_telnet.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_motd.lua +lib/prosody/modules/mod_offline.lua +lib/prosody/modules/mod_storage_internal.lua +lib/prosody/modules/mod_storage_sql.lua lib/prosody/modules/mod_announce.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 @@ -57,6 +63,8 @@ lib/prosody/modules/mod_welcome.lua lib/prosody/modules/muc/mod_muc.lua lib/prosody/modules/muc/muc.lib.lua +lib/prosody/modules/adhoc/adhoc.lib.lua +lib/prosody/modules/adhoc/mod_adhoc.lua lib/prosody/net/adns.lua lib/prosody/net/connlisteners.lua lib/prosody/net/dns.lua @@ -91,6 +99,12 @@ lib/prosody/util/pluginloader.lua lib/prosody/util/pposix.so lib/prosody/util/prosodyctl.lua +lib/prosody/util/caps.lua +lib/prosody/util/filters.lua +lib/prosody/util/httpstream.lua +lib/prosody/util/json.lua +lib/prosody/util/template.lua +lib/prosody/util/xmppstream.lua lib/prosody/util/sasl.lua lib/prosody/util/sasl/anonymous.lua lib/prosody/util/sasl/digest-md5.lua @@ -105,10 +119,10 @@ lib/prosody/util/timer.lua lib/prosody/util/uuid.lua lib/prosody/util/xmlrpc.lua -lib/prosody/util/ztact.lua @dirrm lib/prosody/util/sasl @dirrm lib/prosody/util @dirrm lib/prosody/net +@dirrm lib/prosody/modules/adhoc @dirrm lib/prosody/modules/muc @dirrm lib/prosody/modules @dirrm lib/prosody/core Index: files/patch-Makefile =================================================================== RCS file: /home/pcvs/ports/net-im/prosody/files/patch-Makefile,v retrieving revision 1.3 diff -u -r1.3 patch-Makefile --- files/patch-Makefile 4 Dec 2010 01:19:43 -0000 1.3 +++ files/patch-Makefile 10 Apr 2011 16:10:22 -0000 @@ -1,5 +1,5 @@ ---- Makefile.orig 2010-06-12 17:23:01.000000000 -0700 -+++ Makefile 2010-11-24 11:29:05.873218722 -0800 +--- ./Makefile.orig 2011-04-05 15:47:05.000000000 +0200 ++++ ./Makefile 2011-04-10 18:09:24.000000000 +0200 @@ -6,7 +6,7 @@ MODULES = $(DESTDIR)$(PREFIX)/lib/prosody/modules SOURCE = $(DESTDIR)$(PREFIX)/lib/prosody @@ -9,14 +9,15 @@ INSTALLEDSOURCE = $(PREFIX)/lib/prosody INSTALLEDCONFIG = $(SYSCONFDIR) -@@ -33,10 +33,11 @@ +@@ -33,11 +33,12 @@ install -m644 plugins/*.lua $(MODULES) install -d $(MODULES)/muc install -m644 plugins/muc/* $(MODULES)/muc - install -m644 certs/* $(CONFIG)/certs + install -m644 certs/localhost.cert $(CONFIG)/certs/localhost.cert.sample + install -m644 certs/localhost.key $(CONFIG)/certs/localhost.key.sample - 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 + install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua.sample Index: files/patch-configure =================================================================== RCS file: /home/pcvs/ports/net-im/prosody/files/patch-configure,v retrieving revision 1.3 diff -u -r1.3 patch-configure --- files/patch-configure 4 Dec 2010 01:19:43 -0000 1.3 +++ files/patch-configure 10 Apr 2011 16:10:22 -0000 @@ -1,89 +1,10 @@ ---- configure.orig 2010-06-12 17:23:01.000000000 -0700 -+++ configure 2010-11-24 11:15:06.435111085 -0800 -@@ -2,20 +2,19 @@ +--- ./configure.orig 2011-04-05 15:47:05.000000000 +0200 ++++ ./configure 2011-04-10 18:09:24.000000000 +0200 +@@ -2,7 +2,6 @@ # Defaults -PREFIX=/usr/local -+#PREFIX=/usr/local SYSCONFDIR="$PREFIX/etc/prosody" DATADIR="$PREFIX/var/lib/prosody" --LUA_SUFFIX="" --LUA_DIR="/usr" --LUA_BINDIR="/usr/bin" --LUA_INCDIR="/usr/include" --LUA_LIBDIR="/usr/lib" -+LUA_DIR="$PREFIX" -+LUA_BINDIR="$PREFIX/bin" -+#LUA_INCDIR="/usr/include" -+#LUA_LIBDIR="/usr/lib" - IDN_LIB=idn - OPENSSL_LIB=crypto --CC=gcc -+#CC=gcc - LD=gcc - --CFLAGS="-fPIC -Wall" -+#CFLAGS="-fPIC -Wall" - LDFLAGS="-shared" - - # Help -@@ -26,7 +25,7 @@ - - --help This help. - --ostype=OS Use one of the OS presets. -- May be one of: debian, macosx, linux -+ May be one of: debian, macosx, linux, freebsd - --prefix=DIR Prefix where Prosody should be installed. - Default is $PREFIX - --sysconfdir=DIR Location where the config file should be installed. -@@ -142,22 +141,24 @@ - LUA_INCDIR=/usr/include/lua5.1; - LUA_INCDIR_SET=yes - fi -- if [ "$OSTYPE" = "macosx" ] -- then LUA_INCDIR=/usr/local/include; -+ if [ "$OSTYPE" = "linux" ] -+ then LUA_INCDIR=/usr/local/include; -+ LUA_INCDIR_SET=yes -+ LUA_LIBDIR=/usr/local/lib -+ LUA_LIBDIR_SET=yes -+ CFLAGS="-Wall -fPIC" -+ LDFLAGS="-shared" -+ fi -+ -+ if [ "$OSTYPE" = "freebsd" ] -+ then - LUA_INCDIR_SET=yes -- LUA_LIBDIR=/usr/local/lib - LUA_LIBDIR_SET=yes -- CFLAGS="-Wall" -- LDFLAGS="-bundle -undefined dynamic_lookup" -+ CFLAGS="-fPIC -D_POSIX_SOURCE -I${LOCALBASE}/include" -+ LFLAGS="-lm -shared -L${LOCALBASE}/lib" -+ LUA_SUFFIX_SET=yes -+ LUA_LIB=lua - fi -- if [ "$OSTYPE" = "linux" ] -- then LUA_INCDIR=/usr/local/include; -- LUA_INCDIR_SET=yes -- LUA_LIBDIR=/usr/local/lib -- LUA_LIBDIR_SET=yes -- CFLAGS="-Wall -fPIC" -- LDFLAGS="-shared" -- fi - fi - - if [ "$PREFIX_SET" = "yes" -a ! "$SYSCONFDIR_SET" = "yes" ] -@@ -306,9 +307,9 @@ - REQUIRE_CONFIG=$REQUIRE_CONFIG - IDN_LIB=$IDN_LIB - OPENSSL_LIB=$OPENSSL_LIB --CFLAGS=$CFLAGS -+CFLAGS+=$CFLAGS - LDFLAGS=$LDFLAGS --CC=$CC -+CC?=$CC - LD=$LD - - EOF + LUA_SUFFIX="" Index: files/patch-prosody =================================================================== RCS file: files/patch-prosody diff -N files/patch-prosody --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-prosody 10 Apr 2011 16:10:22 -0000 @@ -0,0 +1,34 @@ +--- ./prosody.orig 2011-04-05 15:47:06.000000000 +0200 ++++ ./prosody 2011-04-10 18:10:01.000000000 +0200 +@@ -47,12 +47,6 @@ + local prosody = { events = require "util.events".new(); }; + _G.prosody = prosody; + +--- Check dependencies +-local dependencies = require "util.dependencies"; +-if not dependencies.check_dependencies() then +- os.exit(1); +-end +- + -- Load the config-parsing module + config = require "core.configmanager" + +@@ -123,10 +117,6 @@ + require "core.loggingmanager" + end + +-function log_dependency_warnings() +- dependencies.log_warnings(); +-end +- + function sandbox_require() + -- Replace require() with one that doesn't pollute _G, required + -- for neat sandboxing of modules +@@ -469,7 +459,6 @@ + init_global_state(); + read_version(); + log("info", "Hello and welcome to Prosody version %s", prosody.version); +-log_dependency_warnings(); + load_secondary_libraries(); + init_data_store(); + init_global_protection(); Index: files/patch-prosodyctl =================================================================== RCS file: files/patch-prosodyctl diff -N files/patch-prosodyctl --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-prosodyctl 10 Apr 2011 16:10:22 -0000 @@ -0,0 +1,23 @@ +--- ./prosodyctl.orig 2011-04-05 15:47:06.000000000 +0200 ++++ ./prosodyctl 2011-04-10 18:10:17.000000000 +0200 +@@ -53,11 +53,6 @@ + }; + _G.prosody = prosody; + +-local dependencies = require "util.dependencies"; +-if not dependencies.check_dependencies() then +- os.exit(1); +-end +- + config = require "core.configmanager" + + do +@@ -121,8 +116,6 @@ + + require "core.loggingmanager" + +-dependencies.log_warnings(); +- + -- Switch away from root and into the prosody user -- + local switched_user, current_uid; + Index: files/patch-util-src-Makefile =================================================================== RCS file: files/patch-util-src-Makefile diff -N files/patch-util-src-Makefile --- files/patch-util-src-Makefile 6 Dec 2010 20:43:17 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ ---- util-src/Makefile.orig 2010-12-06 12:33:26.434094017 -0800 -+++ util-src/Makefile 2010-12-06 12:33:39.599095155 -0800 -@@ -16,7 +16,7 @@ - - .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) -L${LOCALBASE}/lib -llua$(LUA_SUFFIX) -lidn -lcrypto - - all: encodings.so hashes.so pposix.so signal.so -