debian/0000755000000000000000000000000012246142203007162 5ustar debian/lua5.2.md5.dh-lua.conf0000777000000000000000000000000012246142203016402 2lua5.1.md5.dh-lua.confustar debian/lua-md5-dev.install.in0000644000000000000000000000071712246142203013204 0ustar /usr/lib/@@DEB_HOST_MULTIARCH@@/liblua@@LUA_VERSION@@-des56.so /usr/lib/@@DEB_HOST_MULTIARCH@@/liblua@@LUA_VERSION@@-des56.a /usr/lib/@@DEB_HOST_MULTIARCH@@/liblua@@LUA_VERSION@@-md5.so /usr/lib/@@DEB_HOST_MULTIARCH@@/liblua@@LUA_VERSION@@-md5.a /usr/lib/@@DEB_HOST_MULTIARCH@@/pkgconfig/lua@@LUA_VERSION@@-des56.pc /usr/lib/@@DEB_HOST_MULTIARCH@@/pkgconfig/lua@@LUA_VERSION@@-md5.pc /usr/include/lua@@LUA_VERSION@@/ldes56.h /usr/include/lua@@LUA_VERSION@@/md5.h debian/lua-md5-dev.docs0000644000000000000000000000000412246142203012046 0ustar doc debian/watch0000644000000000000000000000031112246142203010206 0ustar # test this watch file using: # uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-md5 # version=3 http://github.com/keplerproject/md5/downloads /downloads/.*/.*md5-([\d\.]*).tar.gz debian/lua5.1.des56.dh-lua.conf0000644000000000000000000000057712246142203013145 0ustar PKG_NAME=des56 CLIB_CFLAGS= -I src CLIB_LDFLAGS= CLIB_OBJS=src/des56.lo src/ldes56.lo src/compat-5.2.lo LUA_HEADER=src/ldes56.h LUA_SOURCES= LUA_SOURCES_MANGLER= LUA_MODNAME= LUA_TEST=tests/test.lua des56 PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL=https://github.com/keplerproject/md5 PKG_REQUIRES= PKG_CONFLICTS= debian/rules0000755000000000000000000000007312246142203010242 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua debian/compat0000644000000000000000000000000212246142203010360 0ustar 8 debian/lua5.2.des56.dh-lua.conf0000777000000000000000000000000012246142203017104 2lua5.1.des56.dh-lua.confustar debian/source/0000755000000000000000000000000012246142203010462 5ustar debian/source/format0000644000000000000000000000001412246142203011670 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000363412246142203011042 0ustar lua-md5 (1.2+git+1+8d87fee-1) unstable; urgency=low * New upstream release (plus some commit to fix 5.2 support) * Refresh patch -- Enrico Tassi Fri, 29 Nov 2013 17:29:09 +0100 lua-md5 (1.1.2+gitdef7fa6-1) unstable; urgency=low * New upstream snapshot with lua5.2 support * Packaging moved to git * Transitional packages removed -- Enrico Tassi Wed, 25 Apr 2012 14:53:58 +0200 lua-md5 (1.1.2-6) unstable; urgency=low * Patch to fix test * Remove build-dependency on shake -- Enrico Tassi Wed, 25 Apr 2012 14:53:11 +0200 lua-md5 (1.1.2-5) unstable; urgency=low * Copyright updated to format 1.0 * Switch to dh-lua * Packages renamed according to the new Lua policy * Bump standards-version to 3.9.3, no changes * debian/compat set to 8 * Update watch file -- Enrico Tassi Wed, 25 Apr 2012 14:01:40 +0200 lua-md5 (1.1.2-4) unstable; urgency=low * source format 3.0 (quilt) -- Enrico Tassi Fri, 22 Jul 2011 12:24:08 +0200 lua-md5 (1.1.2-3) unstable; urgency=low * multi-arch (dh >= 8.1.3, lua5.1-policy-dev >= 32) * bump standards-version to 3.9.2, no changes * removed .la files -- Enrico Tassi Wed, 20 Jul 2011 23:03:57 +0200 lua-md5 (1.1.2-2) unstable; urgency=low * bump standards-version to 3.8.2, no changes * build-depend on lua5.1-policy-dev >= 22 -- Enrico Tassi Tue, 21 Jul 2009 16:43:38 +0200 lua-md5 (1.1.2-1) unstable; urgency=low * new upstream release (minor bugfixing) * removed patch stdint (integrated upstream) -- Enrico Tassi Wed, 14 May 2008 11:29:50 +0200 lua-md5 (1.1.1-1) unstable; urgency=low * Initial release. (Closes: #462222) -- Enrico Tassi Thu, 27 Dec 2007 17:33:24 +0100 debian/lua-md5.install.in0000644000000000000000000000043612246142203012426 0ustar /usr/lib/@@DEB_HOST_MULTIARCH@@/lua/@@LUA_VERSION@@/des56.so /usr/lib/@@DEB_HOST_MULTIARCH@@/lua/@@LUA_VERSION@@/md5/core.so /usr/lib/@@DEB_HOST_MULTIARCH@@/liblua@@LUA_VERSION@@-des56.so.* /usr/lib/@@DEB_HOST_MULTIARCH@@/liblua@@LUA_VERSION@@-md5.so.* /usr/share/lua/@@LUA_VERSION@@/* debian/copyright0000644000000000000000000000307512246142203011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: md5 Upstream-Contact: Fabio Mascarenhas Source: https://github.com/keplerproject/md5 Files: * Copyright: 2003-2013 PUC-Rio Comment: In the Lua community this license is better known as "MIT". Unfortunately other variants of this license are also known as "MIT". To obtain a machine intepretable copyright file Debian prefers to name this version of the MIT license using the non ambiguous term "Expat". License: Expat 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/control0000644000000000000000000000223712246142203010571 0ustar Source: lua-md5 Section: interpreters Priority: optional Maintainer: Enrico Tassi Build-Depends: debhelper (>= 8.1.3), dh-lua Standards-Version: 3.9.3 Homepage: https://github.com/keplerproject/md5 Vcs-Git: git://git.debian.org/git/pkg-lua/lua-md5.git Vcs-Browser: http://git.debian.org/?p=pkg-lua/lua-md5.git Package: lua-md5 Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends} Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Section: libs Description: MD5 library for the Lua language This package contains a small crypto library for Lua. It comprises the MD5 and the DES56 algorithms. Package: lua-md5-dev Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: lua-md5 (= ${binary:Version}), ${misc:Depends} Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Section: libdevel Description: MD5 library for the Lua language This package contains the development files of the Lua md5 library, 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/0000755000000000000000000000000012246142203010611 5ustar debian/patches/series0000644000000000000000000000006312246142203012025 0ustar 0001-split-test-into-two-parts-md5-and-des56.patch debian/patches/0001-split-test-into-two-parts-md5-and-des56.patch0000644000000000000000000000155212246142203021377 0ustar From: Enrico Tassi Date: Fri, 29 Nov 2013 17:37:39 +0100 Subject: split test into two parts: md5 and des56 --- tests/test.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test.lua b/tests/test.lua index 4f57aea..fcb5263 100755 --- a/tests/test.lua +++ b/tests/test.lua @@ -6,6 +6,7 @@ if string.find(_VERSION, "Lua 5.0") then LUA_PATH = "?;?.lua;/usr/local/share/lua/5.0/?.lua" string.gmatch = string.gfind end +if select(1,...) == 'md5' then local md5 = require"md5" @@ -84,6 +85,7 @@ assert(md5.crypt('a','a',seed) ~= md5.crypt('a','b',seed)) print"MD5 OK" +elseif select(1,...) == 'des56' then -- Testing DES 56 local des56 @@ -118,3 +120,9 @@ key = string.sub(ascii, 2) assert(des56.decrypt(des56.crypt(ascii, key), key) == ascii) print"DES56 OK" + +else + + error 'Specify an algorithm to test' + +end debian/lua5.1.md5.dh-lua.conf0000644000000000000000000000064712246142203012702 0ustar PKG_NAME=md5 CLIB_CFLAGS= -Isrc CLIB_LDFLAGS= CLIB_OBJS=src/md5.lo src/md5lib.lo src/compat-5.2.lo LUA_MODNAME_CPART=md5.core LUA_HEADER=src/md5.h LUA_SOURCES=src/md5.lua LUA_SOURCES_MANGLER=sed s?src/?? LUA_MODNAME= LUA_TEST=tests/test.lua md5 PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL=https://github.com/keplerproject/md5 PKG_REQUIRES= PKG_CONFLICTS=