debian/0000755000000000000000000000000012202204160007153 5ustar debian/watch0000644000000000000000000000031312202151205010202 0ustar # test this watch file using: # uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-svn # version=3 http://luaforge.net/frs/?group_id=289 /frs/download.php/\d+/luasvn-([\d\.]*).tar.gz debian/rules0000755000000000000000000000021712202151205010234 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua override_dh_auto_clean: rm -rf test/ test_repo/ debian/.subversion dh_auto_clean debian/compat0000644000000000000000000000000212202151205010352 0ustar 8 debian/source/0000755000000000000000000000000012202151205010454 5ustar debian/source/format0000644000000000000000000000001412202151205011662 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000760512202151205011036 0ustar lua-svn (0.4.0-9) unstable; urgency=low * Package moved to git * Remove transitional packages * Fix FTBFS (Closes: 719365) -- Enrico Tassi Fri, 22 Jun 2012 22:09:38 +0200 lua-svn (0.4.0-7) unstable; urgency=low * Remove build-dep on libserf (Closes: #678557) -- Enrico Tassi Fri, 11 May 2012 09:46:13 +0200 lua-svn (0.4.0-6) unstable; urgency=low * Update depends on liblua5.1-socket2 -> lua-socket -- Enrico Tassi Mon, 30 Apr 2012 13:08:21 +0200 lua-svn (0.4.0-5) unstable; urgency=low * bumped standards-version to 3.9.3, no changes needed * Packages renamed according to the new Lua policy * Switch to dh-lua * copyright format 1.0 * debian/compat set to 8 -- Enrico Tassi Mon, 30 Apr 2012 13:07:15 +0200 lua-svn (0.4.0-4) unstable; urgency=low * source format 3.0 (quilt) -- Enrico Tassi Fri, 22 Jul 2011 12:57:21 +0200 lua-svn (0.4.0-3) unstable; urgency=low * bumped standards-version to 3.9.2, no changes needed * multi-arch (dh >= 8.1.3, lua5.1-policy >= 32) -- Enrico Tassi Wed, 20 Jul 2011 23:32:44 +0200 lua-svn (0.4.0-2) unstable; urgency=low * correctly specify all libs needed for static linking (Closes: #555568) * depend on liblua5.1-policy-dev >= 26 * added README.source * bumped standards-version to 3.8.3 -- Enrico Tassi Fri, 13 Nov 2009 22:12:13 +0100 lua-svn (0.4.0-1) unstable; urgency=low * New upstream release -- Enrico Tassi Wed, 22 Jul 2009 11:20:42 +0200 lua-svn (0.3.0-5) unstable; urgency=low * added patch to include svn_utf8.h, kudos to Dann Frazier (Closes: #537957) -- Enrico Tassi Wed, 22 Jul 2009 11:07:25 +0200 lua-svn (0.3.0-4) unstable; urgency=low * changed lua to Lua in control * changed subversion in Subversion in control * build depend on lua5.1-policy-dev >= 22 * new patch apr to #include apr_xlate.h * bumped standards-version to 3.8.2, no changes needed -- Enrico Tassi Tue, 21 Jul 2009 15:06:32 +0200 lua-svn (0.3.0-3) unstable; urgency=low * Fixed build-depends according to libsvn1.5 (Closes: #489081) -- Enrico Tassi Thu, 10 Jul 2008 15:29:28 +0200 lua-svn (0.3.0-2) unstable; urgency=low * depend on policy >= 19 to have the test run with HOME set to an existing and writeable/readable directory * run test with shake -- Enrico Tassi Wed, 19 Mar 2008 16:42:48 +0100 lua-svn (0.3.0-1) unstable; urgency=low * New upstream release with backward compatible API changes * Bumped standards-version to 3.7.3, no changes needed * Added Vcs-Browser control field, removed XS-X-Vcs one * Documented test.dpatch to make lintian happy * Moved -dev package to section libdevel -- Enrico Tassi Sat, 15 Mar 2008 18:10:18 +0100 lua-svn (0.2.6-1) unstable; urgency=low * new upstream release * added Homepage field in control file -- Enrico Tassi Mon, 29 Oct 2007 12:48:33 +0100 lua-svn (0.2.5-1) unstable; urgency=low * New upstream release -- Enrico Tassi Fri, 05 Oct 2007 13:56:39 +0200 lua-svn (0.2-4) unstable; urgency=low * Added Conflics and Replaces fields in control file -- Enrico Tassi Fri, 05 Oct 2007 13:50:28 +0200 lua-svn (0.2-3) unstable; urgency=low * new upstream release * package name change, since all APIs changed too * fixed watch file * bumped soname -- Enrico Tassi Mon, 30 Jul 2007 11:38:16 +0200 lua-svn (0.1-1) unstable; urgency=low * Initial release. (Closes: #435234) -- Enrico Tassi Sun, 29 Jul 2007 19:17:22 +0200 debian/copyright0000644000000000000000000000241512202151205011111 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: luasvn Upstream-Contact: Sergio Madeiros. Source: http://luaforge.net/projects/luasvn/ Files: * Copyright: 2007 Sergio Medeiros 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/dh-lua.conf0000644000000000000000000000114312202151205011174 0ustar LUA_VERSION=5.1 PKG_NAME=svn CLIB_CFLAGS=-I /usr/include/subversion-1 $(shell pkg-config apr-1 --cflags) CLIB_LDFLAGS=-lsvn_client-1 $(shell pkg-config apr-1 --libs) CLIB_LDFLAGS_STATIC=-lsvn_client-1 -lsvn_ra-1 -lsvn_repos-1 -lsvn_subr-1 -lapr-1 $(shell pkg-config apr-1 --libs --static) CLIB_OBJS=src/luasvn.lo VERSION_INFO=1:0:0 LUA_MODNAME_CPART= LUA_HEADER= LUA_SOURCES= LUA_MODNAME=svn LUA_TEST=rm -rf test/ && @@LUA@@ /usr/bin/shake test.lua LUA_MODNAME_CPART= PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL= PKG_REQUIRES= PKG_CONFLICTS= debian/lua-svn-dev.docs0000644000000000000000000000000412202151205012161 0ustar doc debian/control0000644000000000000000000000242112202151205010556 0ustar Source: lua-svn Section: interpreters Priority: optional Maintainer: Enrico Tassi Build-Depends: debhelper (>= 8.1.3), dh-lua, libsvn-dev, shake (>= 1.0.2), libsasl2-dev, libneon27-gnutls-dev Standards-Version: 3.9.3 Homepage: http://luaforge.net/projects/luasvn/ Vcs-Git: git://git.debian.org/git/pkg-lua/lua-svn.git Vcs-Browser: http://git.debian.org/?p=pkg-lua/lua-svn.git Package: lua-svn Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends}, lua-expat, lua-socket Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: Subversion library for the Lua language This package contains a Lua module to interact with a Subversion repository Package: lua-svn-dev Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: lua-svn (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Section: libdevel Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: Development files for the Subversion library for the Lua language This package contains the development files of the Subversion lua bindings, useful to create a statically linked binary (like a C application or a standalone Lua interpreter). . Documentation is also shipped within this package. debian/patches/0000755000000000000000000000000012202151205010603 5ustar debian/patches/series0000644000000000000000000000004412202151205012016 0ustar test.patch apr.patch svn-utf8.patch debian/patches/test.patch0000644000000000000000000000236212202151205012606 0ustar Author: Enrico Tassi Description: test file to be run after compilation --- /dev/null +++ lua-svn-0.4.0/test.lua @@ -0,0 +1,45 @@ +svn = require "svn" + +repo_path = "test_repo" +repo_url = "file://"..os.getenv("PWD").."/test_repo" +test_path = "test" +file_name = "test.file" +dir_name = "trunk" + +dir = test_path.."/"..dir_name +file = dir .. "/" .. file_name +contents = { "content1", "content2" } +rev2content = {} + +svn.repos_create(repo_path) +assert(svn.checkout(repo_url, test_path), "unable to checkout") +svn.mkdir(dir) +f = io.open(file,"w") +f:write(contents[1]) +f:close() +svn.add(file) +t = svn.status(file) +assert(string.sub(t[file],1,1) == "A", "file not correctly added: "..t[file]) +r1 = svn.commit(test_path) +rev2content[r1] = contents[1] +f = io.open(file,"w") +f:write(contents[2]) +f:close() +t = svn.status(file) +assert(string.sub(t[file],1,1) == "M", "file not listed as modified") +r2 = svn.commit(file) +rev2content[r2]=contents[2] +t = svn.list(repo_url) +for k in pairs(t) do + print(k) +end +h = svn.log (file) +for rev, v in pairs(h) do + assert(svn.cat(file, rev) == rev2content[rev]) + print(rev) + for k,v in pairs(v) do + print(k,v) + end +end +svn.cleanup(test_path) +svn.repos_delete(repo_path) debian/patches/apr.patch0000644000000000000000000000045112202151205012406 0ustar Author: Enrico Tassi Description: No description. --- lua-svn-0.4.0.orig/src/luasvn.c +++ lua-svn-0.4.0/src/luasvn.c @@ -9,6 +9,8 @@ #include #include +#include + #include #include #include debian/patches/svn-utf8.patch0000644000000000000000000000043412202151205013317 0ustar Author: Enrico Tassi Description: No description. --- lua-svn-0.4.0.orig/src/luasvn.c +++ lua-svn-0.4.0/src/luasvn.c @@ -8,6 +8,7 @@ #include #include #include +#include #include