debian/0000755000000000000000000000000012201730260007157 5ustar debian/01-fcgi.dh-lua.conf0000644000000000000000000000063112201730260012325 0ustar LUA_VERSION=5.1 PKG_NAME=wsapi.fcgi CLIB_CFLAGS= CLIB_LDFLAGS=-lfcgi CLIB_OBJS=src/fastcgi/lfcgi.lo LUA_MODNAME_CPART=lfcgi LUA_HEADER= LUA_SOURCES= LUA_MODNAME= LUA_TEST= PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL=http://keplerproject.github.com/wsapi/index.html PKG_REQUIRES= PKG_CONFLICTS= # retrocompatibility stuff VERSION_INFO=1:0:0 debian/lua-wsapi.install.in0000644000000000000000000000023012201730260013051 0ustar /usr/bin/wsapi.cgi test -z "@@LUA_SOURCES@@" || for X in @@LUA_SOURCES@@; do echo usr/share/lua/@@LUA_VERSION@@/`echo $X|@@LUA_SOURCES_MANGLER@@`; done debian/watch0000644000000000000000000000030312201730260010204 0ustar # test this watch file using: # uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-wsapi # version=3 https://github.com/keplerproject/wsapi/downloads .*/wsapi-([\d\.]*).tar.gz debian/wsapi.fcgi.1.txt0000644000000000000000000000170512201730260012114 0ustar NAME wsapi.fcgi - fast cgi wrapper for wsapi based dynamic pages SYNOPSIS FCGIWrapper wsapi.fcgi .lua DESCRIPTION If you are using Apache, you may want to add the following lines to define an hanler for .lua files: AddHandler fcgid-script .lua FCGIWrapper /usr/bin/wsapi.fcgi .lua A sample dynamic page follows: #!/usr/bin/env wsapi.fcgi module(..., package.seeall) function run(wsapi_env) local headers = { ["Content-type"] = "text/html" } local function hello_text() coroutine.yield("") coroutine.yield("

Hello Wsapi!

") coroutine.yield("

PATH_INFO: " .. wsapi_env.PATH_INFO .. "

") coroutine.yield("

SCRIPT_NAME: " .. wsapi_env.SCRIPT_NAME .. "

") coroutine.yield("") end return 200, headers, coroutine.wrap(hello_text) end SEE ALSO wsapi.cgi(1) AUTHOR Enrico Tassi debian/lua-wsapi-fcgi.manpages0000644000000000000000000000002412201730260013500 0ustar debian/wsapi.fcgi.1 debian/wsapi.cgi.10000644000000000000000000000166212201730260011132 0ustar .\"Text automatically generated by txt2man .TH wsapi.cgi 1 "28 April 2009" "" "wsapi documentation" .SH NAME \fBwsapi.cgi \fP- cgi wrapper for wsapi based dynamic pages \fB .SH SYNOPSIS .nf .fam C #!/usr/bin/env wsapi.cgi .fam T .fi .fam T .fi .SH DESCRIPTION A sample dynamic page follows: .PP .nf .fam C #!/usr/bin/env wsapi.cgi module(\.\.\., package.seeall) function run(wsapi_env) local headers = { ["Content-type"] = "text/html" } local function hello_text() coroutine.yield("") coroutine.yield("

Hello Wsapi!

") coroutine.yield("

PATH_INFO: " .. wsapi_env.PATH_INFO .. "

") coroutine.yield("

SCRIPT_NAME: " .. wsapi_env.SCRIPT_NAME .. "

") coroutine.yield("") end return 200, headers, coroutine.wrap(hello_text) end .fam T .fi .SH SEE ALSO \fBwsapi.fcgi\fP(1) .SH AUTHOR Enrico Tassi debian/rules0000755000000000000000000000060712201730260010242 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua override_dh_auto_configure: chmod a-x src/wsapi/* rm -f doc/*/*.md rm -f src/launcher/*.c rm -f src/launcher/*.lua dh_auto_configure override_dh_auto_install: mkdir -p debian/tmp/usr/bin sed 's/\x0D$$//' src/launcher/wsapi.cgi > debian/tmp/usr/bin/wsapi.cgi cp src/launcher/wsapi.fcgi debian/tmp/usr/bin/ dh_auto_install debian/compat0000644000000000000000000000000212201730260010355 0ustar 8 debian/wsapi.fcgi.10000644000000000000000000000221612201730260011274 0ustar .\"Text automatically generated by txt2man .TH wsapi.fcgi 1 "28 April 2009" "" "wsapi documentation" .SH NAME \fBwsapi.fcgi \fP- fast cgi wrapper for wsapi based dynamic pages \fB .SH SYNOPSIS .nf .fam C \fBFCGIWrapper\fP wsapi.fcgi .lua .fam T .fi .fam T .fi .SH DESCRIPTION If you are using Apache, you may want to add the following lines to define an hanler for .lua files: .PP .nf .fam C AddHandler fcgid-script .lua FCGIWrapper /usr/bin/wsapi.fcgi .lua .fam T .fi A sample dynamic page follows: .PP .nf .fam C #!/usr/bin/env wsapi.fcgi module(\.\.\., package.seeall) function run(wsapi_env) local headers = { ["Content-type"] = "text/html" } local function hello_text() coroutine.yield("") coroutine.yield("

Hello Wsapi!

") coroutine.yield("

PATH_INFO: " .. wsapi_env.PATH_INFO .. "

") coroutine.yield("

SCRIPT_NAME: " .. wsapi_env.SCRIPT_NAME .. "

") coroutine.yield("") end return 200, headers, coroutine.wrap(hello_text) end .fam T .fi .SH SEE ALSO \fBwsapi.cgi\fP(1) .SH AUTHOR Enrico Tassi debian/99-common.dh-lua.conf0000644000000000000000000000066112201730260012731 0ustar LUA_VERSION=5.1 PKG_NAME=wsapi CLIB_CFLAGS= CLIB_LDFLAGS= CLIB_OBJS= LUA_MODNAME_CPART= LUA_HEADER= LUA_SOURCES=$(wildcard src/wsapi/*.lua) LUA_SOURCES_MANGLER=sed s?src/?? LUA_MODNAME= LUA_TEST= PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL=http://keplerproject.github.com/wsapi/index.html PKG_REQUIRES= PKG_CONFLICTS= # retrocompatibility stuff VERSION_INFO=1:0:0 debian/wsapi.cgi.1.txt0000644000000000000000000000140512201730260011743 0ustar NAME wsapi.cgi - cgi wrapper for wsapi based dynamic pages SYNOPSIS #!/usr/bin/env wsapi.cgi DESCRIPTION A sample dynamic page follows: #!/usr/bin/env wsapi.cgi module(..., package.seeall) function run(wsapi_env) local headers = { ["Content-type"] = "text/html" } local function hello_text() coroutine.yield("") coroutine.yield("

Hello Wsapi!

") coroutine.yield("

PATH_INFO: " .. wsapi_env.PATH_INFO .. "

") coroutine.yield("

SCRIPT_NAME: " .. wsapi_env.SCRIPT_NAME .. "

") coroutine.yield("") end return 200, headers, coroutine.wrap(hello_text) end SEE ALSO wsapi.fcgi(1) AUTHOR Enrico Tassi debian/lua-wsapi-fcgi.install.in0000644000000000000000000000052412201730260013765 0ustar /usr/bin/wsapi.fcgi test -z "@@CLIB_OBJS@@" || echo usr/lib/@@DEB_HOST_MULTIARCH@@/lua/@@LUA_VERSION@@/@@LUA_MODNAME_PATH@@.so test -z "@@CLIB_OBJS@@" || echo usr/lib/@@DEB_HOST_MULTIARCH@@/@@LIBNAME@@.so.* test -z "@@LUA_SOURCES@@" || for X in @@LUA_SOURCES@@; do echo usr/share/lua/@@LUA_VERSION@@/`echo $X|@@LUA_SOURCES_MANGLER@@`; done debian/lua-wsapi-doc.docs0000644000000000000000000000001612201730260012473 0ustar doc/ samples/ debian/source/0000755000000000000000000000000012201730260010457 5ustar debian/source/format0000644000000000000000000000001412201730260011665 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000703612201730260011037 0ustar lua-wsapi (1.6.0-1) unstable; urgency=low * New upstream version supporting Lua 5.2 * Packaging moved to git * Removed transitional packages -- Enrico Tassi Tue, 23 Oct 2012 13:09:20 +0200 lua-wsapi (1.5-3) unstable; urgency=low * wsapi.cgi lines ending converted to unix (Closes: #691214) -- Enrico Tassi Sat, 28 Apr 2012 12:58:38 +0200 lua-wsapi (1.5-2) unstable; urgency=low * Switch to dh-lua * Packages renamed according to the new Lua policy * Standards-Version to 3.9.3, no changes * debian/compat set to 8 * Copyright format 1.0 -- Enrico Tassi Sat, 28 Apr 2012 12:50:31 +0200 lua-wsapi (1.5-1) unstable; urgency=low * New upstream release (Closes: #636232) * fixed watch file (thanks Roland Stigge) * refreshed patch lanuchers.patch (also renamed) * removed patch sheebang.patch, applied upstream -- Enrico Tassi Sat, 13 Aug 2011 19:33:46 +0200 lua-wsapi (1.1.0-10) unstable; urgency=low * source format 3.0 (quilt) -- Enrico Tassi Fri, 22 Jul 2011 23:02:29 +0200 lua-wsapi (1.1.0-9) unstable; urgency=low * Updated standards-version to 3.9.2, no changes * Multi-arch (dh >= 8.1.3, lua5.1-policy >= 32) -- Enrico Tassi Thu, 21 Jul 2011 12:01:58 +0200 lua-wsapi (1.1.0-8) unstable; urgency=low * Add liblua5.1-coxpcall0 to depends (Closes: #589161) -- Enrico Tassi Fri, 16 Jul 2010 17:17:54 +0200 lua-wsapi (1.1.0-7) unstable; urgency=low * Updated standards-version to 3.8.3: - added README.source * Added dependency over liblua5.1-filesystem0 (Closes: #566215) -- Enrico Tassi Sun, 31 Jan 2010 16:19:21 +0100 lua-wsapi (1.1.0-6) unstable; urgency=low * fixed end-of-line in launchers.dpatch (Closes: #539863) -- Enrico Tassi Wed, 05 Aug 2009 18:44:39 +0200 lua-wsapi (1.1.0-5) unstable; urgency=low * bumped standards-version to 3.8.2, no changes needed * build depend on lua5.1-policy-dev >= 22 -- Enrico Tassi Tue, 21 Jul 2009 18:06:53 +0200 lua-wsapi (1.1.0-4) unstable; urgency=low * Added dependency over liblua5.1-filesystem0 (Closes: #531971) -- Enrico Tassi Fri, 05 Jun 2009 14:41:47 +0200 lua-wsapi (1.1.0-3) unstable; urgency=low * wsapi.cgi and wsapi.fcgi installed in /usr/bin, ready to be used in Apache configuration file * manpages for wsapi.cgi and wsapi.fcgi written -- Enrico Tassi Wed, 25 Mar 2009 10:57:51 +0100 lua-wsapi (1.1.0-2) unstable; urgency=low * added conflicts and replaces to control -- Enrico Tassi Tue, 24 Mar 2009 10:09:04 +0100 lua-wsapi (1.1.0-1) unstable; urgency=low * new upstream release * bumped standards-version to 3.8.1, no changes needed * soname bump, since some functions are new and some changed module -- Enrico Tassi Tue, 24 Mar 2009 10:07:19 +0100 lua-wsapi (1.0.0-1) unstable; urgency=low * new upstream release -- Enrico Tassi Wed, 21 May 2008 11:01:14 +0200 lua-wsapi (1.0~rc1-1) unstable; urgency=low * Release candidate 1 -- Enrico Tassi Wed, 16 Apr 2008 23:41:56 +0200 lua-wsapi (1.0~cvs20080412-1) unstable; urgency=low * Initial release. (Closes: #462223) -- Enrico Tassi Sat, 12 Apr 2008 17:17:37 +0200 debian/lua-wsapi.manpages0000644000000000000000000000002312201730260012571 0ustar debian/wsapi.cgi.1 debian/copyright0000644000000000000000000000245512201730260011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: wsapi Upstream-Contact: Fabio Mascarenhas Source: https://github.com/keplerproject/wsapi/ Files: * Copyright: 2004-2007 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/control0000644000000000000000000000500712201730260010564 0ustar Source: lua-wsapi Section: interpreters Priority: optional Maintainer: Enrico Tassi Build-Depends: debhelper (>= 8.1.3), libfcgi-dev, dh-lua Standards-Version: 3.9.3 Homepage: http://keplerproject.github.com/wsapi/index.html Vcs-Git: git://git.debian.org/git/pkg-lua/lua-wsapi.git Vcs-Browser: http://git.debian.org/?p=pkg-lua/lua-wsapi.git Package: lua-wsapi Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, lua-coxpcall, lua-rings, lua-filesystem, lua-cgi, lua5.1 Multi-arch: foreign Pre-Depends: multiarch-support Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: Web server API abstraction layer for the Lua language WSAPI is an API that abstracts the web server for Lua web applications, allowing the same application to be used in different web servers. . This package contains the WSAPI utility libraries (for common tasks like url encoding/decoding) as well as the following backends (server implementations): . - CGI (the regular environment-variables based protocol) - xavante (for the Xavante web server) . The fastcgi backends is available in the separate package lua-wsapi-fcgi. Package: lua-wsapi-fcgi Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends}, lua-wsapi, lua-filesystem, lua5.1 Replaces: liblua5.1-wsapi-fcgi-1 (<< 1.5-2~) Breaks: liblua5.1-wsapi-fcgi-1 (<< 1.5-2~) Provides: liblua5.1-wsapi-fcgi-1, ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: Web server API fastcgi backend WSAPI is an API that abstracts the web server for Lua web applications, allowing the same application to be used in different web servers. . This package contains the backend for the fastcgi protocol. Package: lua-wsapi-fcgi-dev Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Section: libdevel Depends: lua-wsapi-fcgi (= ${binary:Version}), ${misc:Depends} Replaces: liblua5.1-wsapi-fcgi-dev (<< 1.5-2~) Breaks: liblua5.1-wsapi-fcgi-dev (<< 1.5-2~) Provides: liblua5.1-wsapi-fcgi-dev, ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: wsapi fastcgi development files for the Lua language This package contains the development files of the wsapi library (extra backend), useful to create a statically linked binary (like a C application or a standalone Lua interpreter). Package: lua-wsapi-doc Architecture: all Section: doc Depends: ${misc:Depends} Description: wsapi documentation files for the Lua language This package contains the documentation of the wsapi library. debian/patches/0000755000000000000000000000000012201730260010606 5ustar debian/patches/series0000644000000000000000000000003412201730260012020 0ustar launchers-interpreter.patch debian/patches/launchers-interpreter.patch0000644000000000000000000000162612201730260016161 0ustar Index: lua-wsapi-1.5/src/launcher/wsapi.cgi =================================================================== --- lua-wsapi-1.5.orig/src/launcher/wsapi.cgi 2011-08-13 21:12:24.000000000 +0200 +++ lua-wsapi-1.5/src/launcher/wsapi.cgi 2011-08-13 21:12:30.000000000 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/lua +#!/usr/bin/env lua5.1 -- Generic WSAPI CGI launcher, extracts application to launch -- either from the command line (use #!wsapi in the script) Index: lua-wsapi-1.5/src/launcher/wsapi.fcgi =================================================================== --- lua-wsapi-1.5.orig/src/launcher/wsapi.fcgi 2011-08-13 21:12:36.000000000 +0200 +++ lua-wsapi-1.5/src/launcher/wsapi.fcgi 2011-08-13 21:12:45.000000000 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/lua +#!/usr/bin/env lua5.1 -- Generic WSAPI FastCGI launcher, extracts application to launch -- from SCRIPT_FILENAME/PATH_TRANSLATED, each application (defined