debian/0000755000000000000000000000000012205673042007167 5ustar debian/lua-pty-dev.docs0000644000000000000000000000001312205673042012202 0ustar doc/README debian/lua5.1.dh-lua.conf0000644000000000000000000000011412205673042012210 0ustar PKG_NAME=lpty CLIB_OBJS=lpty.lo LUA_TEST=cd samples && @@LUA@@ lptytest.lua debian/rules0000755000000000000000000000007312205673042010247 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua debian/compat0000644000000000000000000000000212205673042010365 0ustar 9 debian/lua5.2.dh-lua.conf0000777000000000000000000000000012205673042015237 2lua5.1.dh-lua.confustar debian/source/0000755000000000000000000000000012205673042010467 5ustar debian/source/format0000644000000000000000000000001412205673042011675 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000032412205673042011040 0ustar lua-lpty (1.0.1-1) unstable; urgency=low * Initial release. (Closes: #719795) * Patch to fix test (used to fail if redirected) -- Enrico Tassi Thu, 15 Aug 2013 15:00:29 +0200 debian/copyright0000644000000000000000000000305712205673042011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Gunnar Zötl Upstream-Contact: gz@tset.de Source: http://www.tset.de/lpty/ Files: * Copyright: 2010-2013 Gunnar Zötl 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/control0000644000000000000000000000217312205673042010575 0ustar Source: lua-lpty Section: interpreters Priority: optional Maintainer: Enrico Tassi Build-Depends: debhelper (>= 9), dh-lua Standards-Version: 3.9.3 Homepage: http://www.tset.de/lpty/ Vcs-Git: git://git.debian.org/git/pkg-lua/lua-lpty.git Vcs-Browser: http://git.debian.org/?p=pkg-lua/lua-lpty.git Package: lua-lpty Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends} Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: PTY library for the Lua language This package gives the Language access to the pseudo terminal interface. Package: lua-lpty-dev Section: libdevel Multi-Arch: same Pre-Depends: multiarch-support Architecture: any Depends: lua-lpty (= ${binary:Version}), ${misc:Depends} Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: PTY library for the Lua language - development files This package contains the development files of the lpty 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/0000755000000000000000000000000012205673042010616 5ustar debian/patches/series0000644000000000000000000000007212205673042012032 0ustar 0001-Fix-test.patch 0002-flush-output-of-testclient.patch debian/patches/0001-Fix-test.patch0000644000000000000000000000105112205673042013715 0ustar From: Enrico Tassi Date: Fri, 23 Aug 2013 16:22:45 +0200 Subject: Fix test --- samples/lptytest.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/lptytest.lua b/samples/lptytest.lua index b9256d7..ba19025 100644 --- a/samples/lptytest.lua +++ b/samples/lptytest.lua @@ -196,6 +196,7 @@ end -- 16 announce("sending data to no_local_echo pty then checking for data, should return false") ok, val = pcall(lpty.send, pn, "abc\n") +while pn:readok() do pn:read() end if not ok then fail(tostring(val)) else debian/patches/0002-flush-output-of-testclient.patch0000644000000000000000000000071612205673042017457 0ustar From: Enrico Tassi Date: Fri, 23 Aug 2013 16:47:32 +0200 Subject: flush output of testclient --- samples/testclient.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/testclient.lua b/samples/testclient.lua index 59ea79c..46e8f1d 100644 --- a/samples/testclient.lua +++ b/samples/testclient.lua @@ -11,5 +11,6 @@ while true do s = io.read() print("+"..s.."+") + io.flush() if s == "quit" then os.exit() end end