--- lua-soap-1.0b.orig/debian/Makefile.Debian.conf
+++ lua-soap-1.0b/debian/Makefile.Debian.conf
@@ -0,0 +1,39 @@
+### $Id: Makefile.Debian.conf.sample 390 2007-06-19 09:36:07Z gareuselesinge $
+
+### mandatory fields
+PKG_NAME=soap
+
+### things relative to the C library part
+CLIB_CFLAGS=
+CLIB_LDFLAGS=
+CLIB_OBJS=
+VERSION_INFO=0:0:0
+LUA_MODNAME_CPART=
+
+### things relative to the lua library part
+LUA_HEADER=
+LUA_SOURCES=soap
+LUA_TEST=test.lua
+
+### this part is relative to pkg-config
+PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1)
+PKG_LIBS_PRIVATE=
+PKG_URL=
+PKG_REQUIRES=
+PKG_CONFLICTS=
+
+### this part is relative to debian libs naming policy
+DEB_EXTRA_DASH=
+
+### In addition, to gather flexibility, you can set these hooks
+### (called in this order)
+pre-all-hook::
+ mkdir -p soap
+ mv soap.lua http.lua soap/
+ cd soap; ln -s soap.lua init.lua
+pre-test-hook::
+ ln -s soap/soap.lua soap.lua
+post-clean-hook::
+ [ -e soap/soap.lua ] && rm soap.lua
+ mv soap/soap.lua soap/http.lua .
+ rm -rf soap
--- lua-soap-1.0b.orig/debian/changelog
+++ lua-soap-1.0b/debian/changelog
@@ -0,0 +1,40 @@
+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 <gareuselesinge@debian.org> 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 <gareuselesinge@debian.org> 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 <gareuselesinge@debian.org> Sat, 28 Jul 2007 16:42:31 +0200
+
+lua-soap (1.0b-3) unstable; urgency=low
+
+ * fixed date in copyright file
+
+ -- Enrico Tassi <gareuselesinge@debian.org> 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 <gareuselesinge@debian.org> Sat, 28 Jul 2007 16:13:43 +0200
+
+lua-soap (1.0b-1) unstable; urgency=low
+
+ * Initial release. (Closes: #434335)
+
+ -- Enrico Tassi <gareuselesinge@debian.org> Sat, 21 Jul 2007 18:43:48 +0200
--- lua-soap-1.0b.orig/debian/watch
+++ lua-soap-1.0b/debian/watch
@@ -0,0 +1,5 @@
+# test this watch file using:
+# uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-soap
+#
+version=3
+http://luaforge.net/frs/?group_id=15 /frs/download.php/\d+/luasoap-([\d\.a-z]*).tar.gz
--- lua-soap-1.0b.orig/debian/copyright
+++ lua-soap-1.0b/debian/copyright
@@ -0,0 +1,26 @@
+This package was debianized by Enrico Tassi <gareuselesinge@debian.org>
+Thu Jul 21 16:24:45 CEST 2007.
+
+It was downloaded from http://luaforge.net/projects/luasoap/.
+
+
+Copyright © 2003-2007 The Kepler Project.
+
+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.
+
--- lua-soap-1.0b.orig/debian/liblua5.1-soap-dev.docs
+++ lua-soap-1.0b/debian/liblua5.1-soap-dev.docs
@@ -0,0 +1,2 @@
+luasoap.png
+manual.html
--- lua-soap-1.0b.orig/debian/rules
+++ lua-soap-1.0b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/class/lua.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
--- lua-soap-1.0b.orig/debian/control
+++ lua-soap-1.0b/debian/control
@@ -0,0 +1,22 @@
+Source: lua-soap
+Section: interpreters
+Priority: optional
+Maintainer: Enrico Tassi <gareuselesinge@debian.org>
+Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5), dpatch, lua5.1-policy-dev (>= 22), liblua5.1-expat-dev
+Standards-Version: 3.8.2
+Vcs-Svn: svn://svn.debian.org/pkg-lua/packages/lua-soap
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-lua/packages/lua-soap
+Homepage: http://www.keplerproject.org/luasoap/
+
+Package: liblua5.1-soap0
+Architecture: all
+Depends: ${shlibs:Depends}, liblua5.1-expat0, liblua5.1-socket2
+Description: SOAP library for the Lua language version 5.1
+ This package contains the Lua SOAP facility library.
+
+Package: liblua5.1-soap-dev
+Architecture: all
+Depends: liblua5.1-soap0 (= ${source:Version})
+Section: libdevel
+Description: Documentation files for the SOAP library for the Lua language version 5.1
+ This package contains the documentation for the Lua 5.1 SOAP library.
--- lua-soap-1.0b.orig/debian/patches/test.dpatch
+++ lua-soap-1.0b/debian/patches/test.dpatch
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## test.dpatch by Enrico Tassi <gareuselesinge@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad trunk~/test.lua trunk/test.lua
+--- trunk~/test.lua 2004-12-02 18:39:36.000000000 +0100
++++ trunk/test.lua 2007-07-21 18:54:36.000000000 +0200
+@@ -4,9 +4,11 @@
+ -- $Id: test.lua,v 1.3 2004/03/24 19:27:38 tomas Exp $
+ ---------------------------------------------------------------------
+
+-require"lxp/lom"
++require"lxp.lom"
+ require"soap"
+
++local lom = lxp.lom
++
+ function table.equal (t1, t2)
+ assert (type(t1) == type(t2), string.format ("%s (%s) ~= %s (%s)", type(t1),
+ tostring(t1), type(t2), tostring(t2)))
--- lua-soap-1.0b.orig/debian/patches/00dpatch.conf
+++ lua-soap-1.0b/debian/patches/00dpatch.conf
@@ -0,0 +1,2 @@
+conf_debianonly=1
+conf_origtargzpath=../tarballs/
--- lua-soap-1.0b.orig/debian/patches/module.dpatch
+++ lua-soap-1.0b/debian/patches/module.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## module.dpatch by Enrico Tassi <gareuselesinge@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad trunk~/soap.lua trunk/soap.lua
+--- trunk~/soap.lua 2004-12-02 18:39:36.000000000 +0100
++++ trunk/soap.lua 2007-07-21 18:46:34.000000000 +0200
+@@ -12,7 +12,7 @@
+ local max = math.max
+ local parse = lxp.lom.parse
+
+-module (arg and arg[1])
++module ("soap")
+
+ _COPYRIGHT = "Copyright (C) 2004 Kepler Project"
+ _DESCRIPTION = "LuaSOAP provides a very simple API that convert Lua tables to and from XML documents"
--- lua-soap-1.0b.orig/debian/patches/socket.dpatch
+++ lua-soap-1.0b/debian/patches/socket.dpatch
@@ -0,0 +1,48 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## module.dpatch by Enrico Tassi <gareuselesinge@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad trunk~/http.lua trunk/http.lua
+--- trunk~/http.lua 2004-12-02 18:39:36.000000000 +0100
++++ trunk/http.lua 2007-07-21 18:50:03.000000000 +0200
+@@ -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
--- lua-soap-1.0b.orig/debian/patches/00list
+++ lua-soap-1.0b/debian/patches/00list
@@ -0,0 +1,3 @@
+module.dpatch
+socket.dpatch
+test.dpatch