debian/0000755000000000000000000000000012203127260007161 5ustar debian/watch0000644000000000000000000000032212203127260010207 0ustar # test this watch file using: # uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-soap # version=3 https://github.com/tomasguisasola/luasoap/downloads /downloads/.*/luasoap-([\d\.]*).tar.gz debian/lua5.1.dh-lua.conf0000644000000000000000000000064712203127260012215 0ustar PKG_NAME=soap CLIB_CFLAGS= CLIB_LDFLAGS= CLIB_OBJS= LUA_MODNAME_CPART= LUA_HEADER= LUA_SOURCES=$(wildcard src/*.lua) $(wildcard src/client/*.lua) LUA_SOURCES_MANGLER=sed -e s?src/?soap/? -e s?soap/soap.lua?soap.lua? LUA_TEST=tests/test.lua PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL=http://tomasguisasola.github.com/luasoap/ PKG_REQUIRES= PKG_CONFLICTS= debian/rules0000755000000000000000000000022712203127260010242 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua override_dh_auto_configure: chmod -R a-x src/*.lua src/*/*.lua doc/*/* dh_auto_configure debian/compat0000644000000000000000000000000212203127260010357 0ustar 8 debian/source/0000755000000000000000000000000012203127260010461 5ustar debian/source/format0000644000000000000000000000001412203127260011667 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000453212203127260011037 0ustar lua-soap (3.0+git91419a7-1) unstable; urgency=low * New upstream bugfix snapshot * Packageing moved to git * nsitional packages removed -- Enrico Tassi Thu, 10 May 2012 16:11:55 +0200 lua-soap (3.0-3) unstable; urgency=low * Update dependency: liblua5.1-socket2 -> lua-socket -- Enrico Tassi Fri, 27 Apr 2012 18:59:46 +0200 lua-soap (3.0-2) unstable; urgency=low * Provide transitional package for the -dev package too -- Enrico Tassi Fri, 27 Apr 2012 18:57:53 +0200 lua-soap (3.0-1) unstable; urgency=low * New upstream release, including https support * Switch to dh-lua * Packages renamed according to the new lua policy * debian/compat set to 8 * bumped standards-version to 3.9.3, no changes * Removed all patches, no more needed * Copyright format 1.0 -- Enrico Tassi Fri, 27 Apr 2012 10:15:55 +0200 lua-soap (1.0b-7) unstable; urgency=low * source format 3.0 (quilt) * bumped standards-version to 3.9.2, no changes -- Enrico Tassi Fri, 22 Jul 2011 23:32:03 +0200 lua-soap (1.0b-6) unstable; urgency=low * bumped standards-version to 3.8.2, no changes * added Homepage field in source stanza of control * fixed Vcs fields in control * build depend on lua5.1-policy-dev >= 22 * put the -dev packages in libdevel -- Enrico Tassi Tue, 21 Jul 2009 17:39:12 +0200 lua-soap (1.0b-5) unstable; urgency=low * Fixed FTBFS caused by missing build dependency on liblua5.1-expat-dev, thats is used during the test phase -- Enrico Tassi Sun, 29 Jul 2007 16:15:17 +0200 lua-soap (1.0b-4) unstable; urgency=low * Renamed deprecated CDBS variable in rules file -- Enrico Tassi Sat, 28 Jul 2007 16:42:31 +0200 lua-soap (1.0b-3) unstable; urgency=low * fixed date in copyright file -- Enrico Tassi Sat, 28 Jul 2007 16:41:38 +0200 lua-soap (1.0b-2) unstable; urgency=low * -dev package is arch all not arch any -- Enrico Tassi Sat, 28 Jul 2007 16:13:43 +0200 lua-soap (1.0b-1) unstable; urgency=low * Initial release. (Closes: #434335) -- Enrico Tassi Sat, 21 Jul 2007 18:43:48 +0200 debian/lua-soap.docs0000644000000000000000000000000512203127260011547 0ustar doc/ debian/copyright0000644000000000000000000000244112203127260011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: luasoap Upstream-Contact: info@keplerproject.org Source: https://github.com/tomasguisasola/luasoap Files: * Copyright: 2003-2011 The Kepler Project. License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000120012203127260010555 0ustar Source: lua-soap Section: interpreters Priority: optional Maintainer: Enrico Tassi Build-Depends: debhelper (>= 8), dh-lua, lua-expat Standards-Version: 3.9.3 Homepage: http://tomasguisasola.github.com/luasoap/ Vcs-Git: git://git.debian.org/git/pkg-lua/lua-soap.git Vcs-Browser: http://git.debian.org/?p=pkg-lua/lua-soap.git Package: lua-soap Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, lua-expat, lua-socket Recommends: lua5.1-sec Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: SOAP library for the Lua language This package contains the Lua SOAP facility library. debian/patches/0000755000000000000000000000000012203127260010610 5ustar debian/patches/series0000644000000000000000000000000012203127260012013 0ustar debian/patches/socket.patch0000644000000000000000000000240412203127260013121 0ustar Author: Enrico Tassi Description: No description. --- lua-soap-1.0b.orig/http.lua +++ lua-soap-1.0b/http.lua @@ -4,7 +4,8 @@ -- $Id: http.lua,v 1.1 2004/03/24 19:27:37 tomas Exp $ --------------------------------------------------------------------- -require"luasocket" +require"socket.http" +require"ltn12" require"soap" local post = socket.http.post @@ -17,17 +18,23 @@ -- @param namespace --------------------------------------------------------------------- function soap.http.call (url, namespace, method, entries, headers) - local body, headers, code, err = post { + local body = {} + local data = soap.encode (namespace, method, entries, headers) + local rc, code, headers = socket.http.request { url = url, - body = soap.encode (namespace, method, entries, headers), + method = "POST", + source = ltn12.source.string(data), headers = { ["Content-type"] = "text/xml", ["SOAPAction"] = '"'..method..'"', + ["Content-length"] = tostring(string.len(data)), }, + sink = ltn12.sink.table(body) } - if tonumber (code) == 200 then + body = table.concat(body) + if rc == 1 and tonumber (code) == 200 then return soap.decode (body) else - error ((err or code).."\n\n"..body) + error (code.."\n\n"..body) end end