From 8edf67c555681b333e20aef667dc09d086a0384f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 30 Nov 2008 19:31:43 +0000 Subject: 'install' libs to util before top-level make install --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 80b1c25a..53f81dd4 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,7 @@ INSTALLEDCONFIG = $(SYSCONFDIR) INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules INSTALLEDDATA = $(DATADIR) -all: prosody.install prosody.cfg.lua.install - $(MAKE) all -C util-src +all: prosody.install prosody.cfg.lua.install util/encodings.so util/hashes.so install: prosody.install prosody.cfg.lua.install util/encodings.so util/encodings.so install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA) -- cgit v1.2.3 From 464b5d6c0f2481c38c83874b165e3f7a07fcc883 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 30 Nov 2008 19:36:30 +0000 Subject: Use install to strip symbols --- util-src/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util-src/Makefile b/util-src/Makefile index 04f9d7cb..fdb689dd 100644 --- a/util-src/Makefile +++ b/util-src/Makefile @@ -12,8 +12,7 @@ OPENSSL_LIB?=crypto all: encodings.so hashes.so install: encodings.so hashes.so - strip *.so - cp *.so ../util/ + install -s *.so ../util/ clean: -- cgit v1.2.3 From 2751ce1517c863f99320d359edb064de8d43bc66 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 30 Nov 2008 19:58:22 +0000 Subject: Change sed usage back into one sed script for incompetent versions of sed --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 53f81dd4..0e17e1e4 100644 --- a/Makefile +++ b/Makefile @@ -40,12 +40,10 @@ util/hashes.so: $(MAKE) install -C util-src prosody.install: prosody - cp prosody prosody.install - sed -i "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|;" prosody.install - sed -i "s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;" prosody.install - sed -i "s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|;" prosody.install - # The trailing slash is intentional in this one - sed -i "s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" prosody.install + sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ + s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ + s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ + s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosody > prosody.install prosody.cfg.lua.install: sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' prosody.cfg.lua.dist > prosody.cfg.lua.install -- cgit v1.2.3 From c26a933765959c070785c3ce73c04f984cd566c5 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 30 Nov 2008 19:58:41 +0000 Subject: Fix debian ostype target --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 3b1898e0..4993526d 100755 --- a/configure +++ b/configure @@ -116,7 +116,9 @@ if [ "$OSTYPE_SET" = "yes" ] then if [ "$OSTYPE" = "debian" ] then LUA_SUFFIX="5.1"; + LUA_SUFFIX_SET=yes LUA_INCDIR=/usr/include/lua5.1; + LUA_INCDIR_SET=yes fi if [ "$OSTYPE" = "macosx" ] then LUA_INCDIR=/usr/local/include; -- cgit v1.2.3 From 83492949889032e73dee35facb246feae8cc807c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 30 Nov 2008 19:59:28 +0000 Subject: Fix macosx ostype target --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 4993526d..a647d910 100755 --- a/configure +++ b/configure @@ -122,7 +122,9 @@ then fi if [ "$OSTYPE" = "macosx" ] then LUA_INCDIR=/usr/local/include; + LUA_INCDIR_SET=yes LUA_LIBDIR=/usr/local/lib + LUA_LIBDIR_SET=yes CFLAGS="-bundle -Wl,-undefined,dynamic_lookup" fi fi -- cgit v1.2.3 From dde71f594106e0d575d0c4ac390bf24bb1bc2275 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 3 Dec 2008 13:02:23 +0000 Subject: lxmppd -> Prosody --- core/discomanager.lua | 2 +- plugins/mod_version.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/discomanager.lua b/core/discomanager.lua index ce0010d8..a733a834 100644 --- a/core/discomanager.lua +++ b/core/discomanager.lua @@ -10,7 +10,7 @@ local print = print; do helper:addDiscoInfoHandler("*host", function(reply, to, from, node) if hosts[to] then - reply:tag("identity", {category="server", type="im", name="lxmppd"}):up(); + reply:tag("identity", {category="server", type="im", name="Prosody"}):up(); return true; end end); diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua index 11278a53..3c0d045a 100644 --- a/plugins/mod_version.lua +++ b/plugins/mod_version.lua @@ -10,8 +10,8 @@ require "core.discomanager".set("version", xmlns_version); local function handle_version_request(session, stanza) if stanza.attr.type == "get" then session.send(st.reply(stanza):query(xmlns_version) - :tag("name"):text("lxmppd"):up() - :tag("version"):text("pre-alpha"):up() + :tag("name"):text("Prosody"):up() + :tag("version"):text("0.1"):up() :tag("os"):text("the best operating system ever!")); end end -- cgit v1.2.3 From ea64d41fdd7caae5511f02041bfecf74e1a3f8d6 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 3 Dec 2008 13:06:23 +0000 Subject: Fix port number in mod_console instructions --- prosody.cfg.lua.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosody.cfg.lua.dist b/prosody.cfg.lua.dist index 81d747c0..80f9e585 100644 --- a/prosody.cfg.lua.dist +++ b/prosody.cfg.lua.dist @@ -49,7 +49,7 @@ Host "*" "ping"; -- XMPP Ping "time"; -- Let others know the time here "uptime"; -- Uptime reporting - "console"; -- telnet to port 5528 (needs console_enabled = true) + "console"; -- telnet to port 5582 (needs console_enabled = true) }; -- These are the SSL/TLS-related settings. If you don't want -- cgit v1.2.3 From 0c5cc83112a2f474812ef334fd4be432d21b08d0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 3 Dec 2008 14:39:07 +0000 Subject: Insert copyright/license headers --- core/componentmanager.lua | 20 ++++++++++++++++++++ core/configmanager.lua | 20 ++++++++++++++++++++ core/discomanager.lua | 20 ++++++++++++++++++++ core/modulemanager.lua | 20 ++++++++++++++++++++ core/offlinemanager.lua | 20 ++++++++++++++++++++ core/offlinemessage.lua | 20 ++++++++++++++++++++ core/presencemanager.lua | 20 ++++++++++++++++++++ core/rostermanager.lua | 20 ++++++++++++++++++++ core/s2smanager.lua | 20 ++++++++++++++++++++ core/sessionmanager.lua | 20 ++++++++++++++++++++ core/stanza_router.lua | 20 ++++++++++++++++++++ core/usermanager.lua | 20 ++++++++++++++++++++ core/xmlhandlers.lua | 20 ++++++++++++++++++++ net/connlisteners.lua | 20 ++++++++++++++++++++ net/dns.lua | 20 ++++++++++++++++++++ net/server.lua | 20 ++++++++++++++++++++ net/xmppclient_listener.lua | 20 ++++++++++++++++++++ net/xmppserver_listener.lua | 20 ++++++++++++++++++++ plugins/mod_console.lua | 20 ++++++++++++++++++++ plugins/mod_dialback.lua | 20 ++++++++++++++++++++ plugins/mod_disco.lua | 20 ++++++++++++++++++++ plugins/mod_legacyauth.lua | 20 ++++++++++++++++++++ plugins/mod_ping.lua | 20 ++++++++++++++++++++ plugins/mod_private.lua | 20 ++++++++++++++++++++ plugins/mod_register.lua | 20 ++++++++++++++++++++ plugins/mod_roster.lua | 20 ++++++++++++++++++++ plugins/mod_saslauth.lua | 20 ++++++++++++++++++++ plugins/mod_selftests.lua | 20 ++++++++++++++++++++ plugins/mod_time.lua | 20 ++++++++++++++++++++ plugins/mod_tls.lua | 20 ++++++++++++++++++++ plugins/mod_uptime.lua | 20 ++++++++++++++++++++ plugins/mod_vcard.lua | 20 ++++++++++++++++++++ plugins/mod_version.lua | 20 ++++++++++++++++++++ prosody | 20 ++++++++++++++++++++ tests/test.lua | 20 ++++++++++++++++++++ tests/test_core_configmanager.lua | 20 ++++++++++++++++++++ tests/test_core_s2smanager.lua | 20 ++++++++++++++++++++ tests/test_core_stanza_router.lua | 20 ++++++++++++++++++++ tests/test_sasl.lua | 20 ++++++++++++++++++++ tests/test_util_jid.lua | 20 ++++++++++++++++++++ tools/ejabberd2prosody.lua | 20 ++++++++++++++++++++ tools/erlparse.lua | 20 ++++++++++++++++++++ tools/serialize.lua | 20 ++++++++++++++++++++ util/datamanager.lua | 20 ++++++++++++++++++++ util/datetime.lua | 20 ++++++++++++++++++++ util/dependencies.lua | 20 ++++++++++++++++++++ util/discohelper.lua | 20 ++++++++++++++++++++ util/import.lua | 20 ++++++++++++++++++++ util/jid.lua | 20 ++++++++++++++++++++ util/logger.lua | 20 ++++++++++++++++++++ util/sasl.lua | 15 ++++++++++++++- util/stanza.lua | 20 ++++++++++++++++++++ util/termcolours.lua | 20 ++++++++++++++++++++ util/uuid.lua | 20 ++++++++++++++++++++ util/ztact.lua | 20 ++++++++++++++++++++ 55 files changed, 1094 insertions(+), 1 deletion(-) diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 5b655435..d7791c4b 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local log = require "util.logger".init("componentmanager") diff --git a/core/configmanager.lua b/core/configmanager.lua index a4a24fad..6601fed6 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local _G = _G; local setmetatable, loadfile, pcall, rawget, rawset, io = diff --git a/core/discomanager.lua b/core/discomanager.lua index a733a834..16bf2227 100644 --- a/core/discomanager.lua +++ b/core/discomanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local helper = require "util.discohelper".new(); local hosts = hosts; diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 31059512..d5360037 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local plugin_dir = CFG_PLUGINDIR or "./plugins/"; diff --git a/core/offlinemanager.lua b/core/offlinemanager.lua index e71da446..c327f979 100644 --- a/core/offlinemanager.lua +++ b/core/offlinemanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local datamanager = require "util.datamanager"; local st = require "util.stanza"; diff --git a/core/offlinemessage.lua b/core/offlinemessage.lua index ebb357ba..9888f76d 100644 --- a/core/offlinemessage.lua +++ b/core/offlinemessage.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + require "util.datamanager" diff --git a/core/presencemanager.lua b/core/presencemanager.lua index bf62d78d..6e27752b 100644 --- a/core/presencemanager.lua +++ b/core/presencemanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local log = require "util.logger".init("presencemanager") diff --git a/core/rostermanager.lua b/core/rostermanager.lua index a08f989d..b5698fc5 100644 --- a/core/rostermanager.lua +++ b/core/rostermanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local log = require "util.logger".init("rostermanager"); diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 80e68ccc..0afb8805 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local hosts = hosts; local sessions = sessions; diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 24be2e69..d17a0357 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local tonumber, tostring = tonumber, tostring; local ipairs, pairs, print, next= ipairs, pairs, print, next; diff --git a/core/stanza_router.lua b/core/stanza_router.lua index ca35b38a..e5086b67 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local log = require "util.logger".init("stanzarouter") diff --git a/core/usermanager.lua b/core/usermanager.lua index a5229f38..2c02394f 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + require "util.datamanager" local datamanager = datamanager; diff --git a/core/xmlhandlers.lua b/core/xmlhandlers.lua index a97db8e9..ec3051b4 100644 --- a/core/xmlhandlers.lua +++ b/core/xmlhandlers.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + require "util.stanza" diff --git a/net/connlisteners.lua b/net/connlisteners.lua index a02dd2a6..9be144da 100644 --- a/net/connlisteners.lua +++ b/net/connlisteners.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local listeners_dir = (CFG_SOURCEDIR or ".").."/net/"; local server_add = require "net.server".add; diff --git a/net/dns.lua b/net/dns.lua index ea1d5d96..8cf092fb 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + -- public domain 20080404 lua@ztact.com diff --git a/net/server.lua b/net/server.lua index 40f37345..7548c735 100644 --- a/net/server.lua +++ b/net/server.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + --[[ server.lua by blastbeat of the luadch project diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index 369860e2..8ab3008c 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local logger = require "logger"; local lxp = require "lxp" diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index 3364f90b..20641998 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local logger = require "logger"; local lxp = require "lxp" diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua index 76272f03..4ac3c5fe 100644 --- a/plugins/mod_console.lua +++ b/plugins/mod_console.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local connlisteners_register = require "net.connlisteners".register; diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua index e7804962..ea0f9e91 100644 --- a/plugins/mod_dialback.lua +++ b/plugins/mod_dialback.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local format = string.format; local send_s2s = require "core.s2smanager".send_to_host; diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua index fd9f2836..36e18f75 100644 --- a/plugins/mod_disco.lua +++ b/plugins/mod_disco.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local discomanager_handle = require "core.discomanager".handle; diff --git a/plugins/mod_legacyauth.lua b/plugins/mod_legacyauth.lua index 81e2ff7f..1f1789a9 100644 --- a/plugins/mod_legacyauth.lua +++ b/plugins/mod_legacyauth.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza"; local t_concat = table.concat; diff --git a/plugins/mod_ping.lua b/plugins/mod_ping.lua index 8306078c..78bdb222 100644 --- a/plugins/mod_ping.lua +++ b/plugins/mod_ping.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza"; diff --git a/plugins/mod_private.lua b/plugins/mod_private.lua index dd717d8d..f1eee55e 100644 --- a/plugins/mod_private.lua +++ b/plugins/mod_private.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza" diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index 5769bd80..f9e85fff 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza"; local usermanager_user_exists = require "core.usermanager".user_exists; diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 0b52e43e..60d481ce 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza" diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index 616c5118..7cb93c46 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza"; local sm_bind_resource = require "core.sessionmanager".bind_resource; diff --git a/plugins/mod_selftests.lua b/plugins/mod_selftests.lua index 4d44d2fd..abfabc9b 100644 --- a/plugins/mod_selftests.lua +++ b/plugins/mod_selftests.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza"; local register_component = require "core.componentmanager".register_component; diff --git a/plugins/mod_time.lua b/plugins/mod_time.lua index 68224421..9a61d90c 100644 --- a/plugins/mod_time.lua +++ b/plugins/mod_time.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza"; local datetime = require "util.datetime".datetime; diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index d5f3157b..20cf7c3d 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza"; diff --git a/plugins/mod_uptime.lua b/plugins/mod_uptime.lua index 4b4c28d1..2f04fc6f 100644 --- a/plugins/mod_uptime.lua +++ b/plugins/mod_uptime.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza" diff --git a/plugins/mod_vcard.lua b/plugins/mod_vcard.lua index 844a2406..6b8ee23a 100644 --- a/plugins/mod_vcard.lua +++ b/plugins/mod_vcard.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + require "util.datamanager" local datamanager = datamanager; diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua index 3c0d045a..e16d8aa7 100644 --- a/plugins/mod_version.lua +++ b/plugins/mod_version.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local st = require "util.stanza"; diff --git a/prosody b/prosody index dd3cd068..3bd50a6d 100755 --- a/prosody +++ b/prosody @@ -1,4 +1,24 @@ #!/usr/bin/env lua +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + -- Config here -- diff --git a/tests/test.lua b/tests/test.lua index 47a66afe..0d69d08b 100644 --- a/tests/test.lua +++ b/tests/test.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + function run_all_tests() dotest "util.jid" diff --git a/tests/test_core_configmanager.lua b/tests/test_core_configmanager.lua index 099ff3c3..cabe3061 100644 --- a/tests/test_core_configmanager.lua +++ b/tests/test_core_configmanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + function get(get, config) config.set("example.com", "test", "testkey", 123); diff --git a/tests/test_core_s2smanager.lua b/tests/test_core_s2smanager.lua index 69715b26..2bbc6094 100644 --- a/tests/test_core_s2smanager.lua +++ b/tests/test_core_s2smanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + function compare_srv_priorities(csp) local r1 = { priority = 10, weight = 0 } local r2 = { priority = 100, weight = 0 } diff --git a/tests/test_core_stanza_router.lua b/tests/test_core_stanza_router.lua index a5185c29..5471e95c 100644 --- a/tests/test_core_stanza_router.lua +++ b/tests/test_core_stanza_router.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + function core_process_stanza(core_process_stanza) local s2sout_session = { to_host = "remotehost", from_host = "localhost", type = "s2sout" } diff --git a/tests/test_sasl.lua b/tests/test_sasl.lua index fd205af8..994823c3 100644 --- a/tests/test_sasl.lua +++ b/tests/test_sasl.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + --- WARNING! --- -- This file contains a mix of encodings below. -- Many editors will unquestioningly convert these for you. diff --git a/tests/test_util_jid.lua b/tests/test_util_jid.lua index 7a616008..b2cf5460 100644 --- a/tests/test_util_jid.lua +++ b/tests/test_util_jid.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + function split(split) function test(input_jid, expected_node, expected_server, expected_resource) diff --git a/tools/ejabberd2prosody.lua b/tools/ejabberd2prosody.lua index e36a6943..33f60c99 100755 --- a/tools/ejabberd2prosody.lua +++ b/tools/ejabberd2prosody.lua @@ -1,4 +1,24 @@ #!/usr/bin/env lua +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + require "erlparse"; require "serialize"; diff --git a/tools/erlparse.lua b/tools/erlparse.lua index 3fbb696f..b593b48d 100644 --- a/tools/erlparse.lua +++ b/tools/erlparse.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local file = nil; local last = nil; diff --git a/tools/serialize.lua b/tools/serialize.lua index 57e0eb42..77c05e1b 100644 --- a/tools/serialize.lua +++ b/tools/serialize.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local indent = function(i) return string.rep("\t", i); diff --git a/util/datamanager.lua b/util/datamanager.lua index 99eef9f3..62e22aa0 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local format = string.format; local setmetatable, type = setmetatable, type; local pairs, ipairs = pairs, ipairs; diff --git a/util/datetime.lua b/util/datetime.lua index 077cbb67..1c730e30 100644 --- a/util/datetime.lua +++ b/util/datetime.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + -- XEP-0082: XMPP Date and Time Profiles local os_date = os.date; diff --git a/util/dependencies.lua b/util/dependencies.lua index 682afd15..b7e6c616 100644 --- a/util/dependencies.lua +++ b/util/dependencies.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local fatal; local function softreq(...) local ok, lib = pcall(require, ...); if ok then return lib; else return nil; end end diff --git a/util/discohelper.lua b/util/discohelper.lua index 4ac8f227..4d3bc3f6 100644 --- a/util/discohelper.lua +++ b/util/discohelper.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local t_insert = table.insert; local jid_split = require "util.jid".split; diff --git a/util/import.lua b/util/import.lua index 6aab0d45..c7484d35 100644 --- a/util/import.lua +++ b/util/import.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local t_insert = table.insert; function import(module, ...) diff --git a/util/jid.lua b/util/jid.lua index 065f176f..6c387868 100644 --- a/util/jid.lua +++ b/util/jid.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local match = string.match; diff --git a/util/logger.lua b/util/logger.lua index 24950400..82a7e110 100644 --- a/util/logger.lua +++ b/util/logger.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local format, rep = string.format, string.rep; local io_write = io.write; diff --git a/util/sasl.lua b/util/sasl.lua index 76ddc263..7983a3c2 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -1,3 +1,16 @@ +-- sasl.lua v0.1 +-- Copyright (C) 2008 Tobias Markmann +-- +-- All rights reserved. +-- +-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +-- +-- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +-- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +-- * Neither the name of Tobias Markmann nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +-- +-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + local md5 = require "util.hashes".md5; local log = require "util.logger".init("sasl"); @@ -196,4 +209,4 @@ function new(mechanism, realm, password_handler) return object end -return _M; \ No newline at end of file +return _M; diff --git a/util/stanza.lua b/util/stanza.lua index df0d43ff..dceb0e73 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local t_insert = table.insert; local t_remove = table.remove; local s_format = string.format; diff --git a/util/termcolours.lua b/util/termcolours.lua index 5cf5b555..24cb0cbd 100644 --- a/util/termcolours.lua +++ b/util/termcolours.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local t_concat, t_insert = table.concat, table.insert; local char, format = string.char, string.format; local ipairs = ipairs; diff --git a/util/uuid.lua b/util/uuid.lua index e1c02c91..0039664f 100644 --- a/util/uuid.lua +++ b/util/uuid.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + local m_random = math.random; module "uuid" diff --git a/util/ztact.lua b/util/ztact.lua index 15bcffad..55e40211 100644 --- a/util/ztact.lua +++ b/util/ztact.lua @@ -1,3 +1,23 @@ +-- Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +-- + + -- public domain 20080410 lua@ztact.com -- cgit v1.2.3 From 72f6ff8408941b456137a29fe189af8af9a51530 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 3 Dec 2008 14:45:03 +0000 Subject: and the C files too --- util-src/encodings.c | 20 ++++++++++++++++++++ util-src/hashes.c | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/util-src/encodings.c b/util-src/encodings.c index 5fe2c805..48144204 100644 --- a/util-src/encodings.c +++ b/util-src/encodings.c @@ -1,3 +1,23 @@ +/* Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + + /* * encodings.c * Lua library for base64, stringprep and idna encodings diff --git a/util-src/hashes.c b/util-src/hashes.c index 41cf6f50..ec045c1d 100644 --- a/util-src/hashes.c +++ b/util-src/hashes.c @@ -1,3 +1,23 @@ +/* Prosody IM v0.1 +-- Copyright (C) 2008 Matthew Wild +-- Copyright (C) 2008 Waqas Hussain +-- +-- This program is free software; you can redistribute it and/or +-- modify it under the terms of the GNU General Public License +-- as published by the Free Software Foundation; either version 2 +-- of the License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + + /* * hashes.c * Lua library for sha1, sha256 and md5 hashes -- cgit v1.2.3 From 1c20002637bbd2c9cfaa951acd74ed95a0217e99 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 3 Dec 2008 14:59:27 +0000 Subject: Fix license (left some boilerplate in) --- AUTHORS | 2 -- COPYING | 60 ------------------------------------------------------------ 2 files changed, 62 deletions(-) diff --git a/AUTHORS b/AUTHORS index c6665db9..8fe161bb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -2,5 +2,3 @@ Matthew Wild (matthew AT heavy-horse.co.uk) Waqas Hussain (waqas20 AT gmail.com) -Tobias Markmann (tm AT ayena.de) -Paul-Sebastian Manole (brokenthorn AT gmail.com) diff --git a/COPYING b/COPYING index 8b325f53..0d650b3c 100644 --- a/COPYING +++ b/COPYING @@ -281,63 +281,3 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. -- cgit v1.2.3