Remove ports that still lack a proper update to Lua 5.1 after more than

a year, okay sturm@
This commit is contained in:
pedro 2007-03-17 18:54:39 +00:00
parent ebcad79956
commit 9382197ba3
37 changed files with 0 additions and 713 deletions

View File

@ -1,47 +0,0 @@
# $OpenBSD: Makefile,v 1.2 2006/07/27 21:13:56 pedro Exp $
SHARED_ONLY= Yes
BROKEN= "Pending update for Lua 5.1"
COMMENT= "multiple states library for the lua language"
DISTNAME= rings-1.0
PKGNAME= luarings-1.0
CATEGORIES= devel
MASTER_SITES= http://luaforge.net/frs/download.php/1476/
HOMEPAGE= http://www.keplerproject.org/rings/
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
RUN_DEPENDS= ::lang/lua
BUILD_DEPENDS= ${RUN_DEPENDS}
post-extract:
@sed -e "s:@ringspath@:${PREFIX}/lua/luarings/?.lua:g" \
-e "s:@ringscpath@:${PREFIX}/lua/luarings/?.so:g" \
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
post-patch:
@perl -pi -e 's:\@initconf@:${SYSCONFDIR}/lua/init.lua:g;' \
${WRKSRC}/tests/test.lua
LUARINGSDIR= ${PREFIX}/lua/luarings
do-install:
${INSTALL_DATA_DIR} ${LUARINGSDIR}
${INSTALL_DATA_DIR} ${LUARINGSDIR}/rings
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luarings
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/luarings
${INSTALL_DATA} ${FILESDIR}/rings.lua ${LUARINGSDIR}
${INSTALL_DATA} ${WRKSRC}/src/stable.lua ${LUARINGSDIR}
${INSTALL_DATA} ${WRKSRC}/rings.so ${LUARINGSDIR}/rings/core.so
${INSTALL_DATA} ${WRKSRC}/init.lua ${LUARINGSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/us/* ${PREFIX}/share/doc/luarings
${INSTALL_DATA} ${WRKSRC}/tests/*.lua ${PREFIX}/share/examples/luarings
.include <bsd.port.mk>

View File

@ -1,4 +0,0 @@
MD5 (rings-1.0.tar.gz) = dd958cbe4f4963cc46c539cebdb28981
RMD160 (rings-1.0.tar.gz) = f8b2b8a56d7ad78c54bb803c86e00d449498b92b
SHA1 (rings-1.0.tar.gz) = 2f2df586913fc59e72704ee31597f2a6b0446b59
SIZE (rings-1.0.tar.gz) = 17558

View File

@ -1,4 +0,0 @@
-- $OpenBSD: init.lua,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $
-- luarings' initialization steps
lua_addpath("@ringspath@")
lua_addcpath("@ringscpath@")

View File

@ -1,2 +0,0 @@
-- $OpenBSD: rings.lua,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $
require("rings.core")

View File

@ -1,26 +0,0 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $
--- Makefile.orig Thu Dec 29 11:09:17 2005
+++ Makefile Tue Mar 21 13:32:19 2006
@@ -1,18 +1,18 @@
# $Id: patch-Makefile,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $
T= rings
-V= 1.0.0
+V= 1.0
CONFIG= ./config
include $(CONFIG)
SRCS= src/rings.c
OBJS= $(COMPAT_O) src/rings.o
-COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
-src/$(LIBNAME) : $(OBJS)
- export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) src/rings.o $(COMPAT_O)
+all:
+ $(CC) $(CFLAGS) -c src/rings.c
+ $(CC) $(CFLAGS) -shared rings.o -o $(LIBNAME)
$(COMPAT_O): $(COMPAT_DIR)/compat-5.1.c
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c

View File

@ -1,31 +0,0 @@
$OpenBSD: patch-config,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $
--- config.orig Thu Dec 29 11:09:17 2005
+++ config Tue Mar 21 11:38:21 2006
@@ -1,20 +1,17 @@
# Installation directories
# System's libraries directory (where binary libraries are installed)
-LUA_LIBDIR= /usr/local/lib/lua/5.0
+LUA_LIBDIR= $(LOCALBASE)/lib
# Lua includes directory
-LUA_INC= /usr/local/include
+LUA_INC= $(LOCALBASE)/include
-# OS dependent
-#LIB_OPTION= -shared #for Linux
-LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
-
-LIBNAME= $T.so.$V
+LIBNAME= $T.so
COMPAT_DIR= ../compat/src
# Compilation directives
WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
-INCS= -I$(LUA_INC) -I$(COMPAT_DIR)
-CFLAGS= $(WARN) $(INCS)
-CC= gcc
+INCS= -I$(LUA_INC)
+CFLAGS+= -fPIC $(INCS)
+LDFLAGS+= -shared
+CC= cc
# $Id: patch-config,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $

View File

@ -1,31 +0,0 @@
$OpenBSD: patch-src_rings_c,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $
--- src/rings.c.orig Fri Feb 3 10:01:39 2006
+++ src/rings.c Tue Mar 21 16:22:00 2006
@@ -9,9 +9,7 @@
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
-#include "compat-5.1.h"
-
#define RINGS_TABLENAME "rings"
#define RINGS_CACHE "rings cache"
#define STATE_METATABLE "state metatable"
@@ -22,7 +20,7 @@ typedef struct {
} state_data;
-int luaopen_rings (lua_State *L);
+int luaopen_rings_core (lua_State *L);
/*
@@ -293,7 +291,7 @@ static void set_info (lua_State *L) {
/*
** Opens library.
*/
-int luaopen_rings (lua_State *L) {
+int luaopen_rings_core (lua_State *L) {
/* Library functions */
struct luaL_reg rings[] = {
{"new", state_new},

View File

@ -1,27 +0,0 @@
$OpenBSD: patch-tests_test_lua,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $
--- tests/test.lua.orig Wed Mar 8 15:24:50 2006
+++ tests/test.lua Tue Mar 21 17:26:30 2006
@@ -1,5 +1,3 @@
-#!/usr/local/bin/lua50
-
---------------------------------------------------------------------
-- checks for a value and throw an error if it is invalid.
---------------------------------------------------------------------
@@ -81,7 +79,7 @@ data = {
key2 = { f3, f1, f2, },
}
local ok, k, i, f = S:dostring[[
- assert (loadfile ("/usr/local/share/lua/5.0/compat-5.1.lua"))()
+ dofile("@initconf@")
require"math"
require"os"
math.randomseed(os.date"%s")
@@ -147,7 +145,7 @@ collectgarbage()
-- Checking Stable's persistent table
local NS = test_object (rings.new())
-assert (NS:dostring[[assert (loadfile ("/usr/local/share/lua/5.0/compat-5.1.lua"))()]])
+assert (NS:dostring[[dofile("@initconf@")]])
assert (NS:dostring[[require"stable"]])
assert (type(_state_persistent_table_) == "table", "Stable persistent table was removed")
assert (_state_persistent_table_.key == "value", "Stable key vanished")

View File

@ -1,3 +0,0 @@
Rings is a library which provides a way to create new Lua states from within
Lua. It also offers a simple way to communicate between the creator (master)
and the created (slave) states.

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $
lua/luarings/rings/core.so

View File

@ -1,18 +0,0 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/03/21 21:02:52 pedro Exp $
@unexec lua ${SYSCONFDIR}/lua/luapkg.lua del luarings
lua/luarings/
lua/luarings/init.lua
lua/luarings/rings/
lua/luarings/rings.lua
lua/luarings/stable.lua
share/doc/luarings/
share/doc/luarings/index.html
share/doc/luarings/license.html
share/doc/luarings/manual.html
share/doc/luarings/rings.png
share/examples/luarings/
share/examples/luarings/sample.lua
share/examples/luarings/sample_state.lua
share/examples/luarings/test.lua
@exec lua ${SYSCONFDIR}/lua/luapkg.lua add luarings ${PREFIX}/lua/luarings/init.lua
%%SHARED%%

View File

@ -1,37 +0,0 @@
# $OpenBSD: Makefile,v 1.4 2006/12/17 11:50:51 kili Exp $
BROKEN= "Pending update for Lua 5.1"
COMMENT= "library to execute lua chunks in separate environments"
DISTNAME= venv-1.1
PKGNAME= luavenv-1.1
CATEGORIES= devel
MASTER_SITES= http://luaforge.net/frs/download.php/956/
HOMEPAGE= http://www.keplerproject.org/venv/
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_BUILD= Yes
NO_REGRESS= Yes
RUN_DEPENDS= ::lang/lua
post-extract:
@sed -e "s:@luavenvpath@:${PREFIX}/lua/luavenv/?.lua:g" \
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lua/luavenv
${INSTALL_DATA} ${WRKSRC}/init.lua ${PREFIX}/lua/luavenv/init.lua
${INSTALL_DATA} ${WRKSRC}/src/venv.lua ${PREFIX}/lua/luavenv/venv.lua
${INSTALL_DATA} ${WRKSRC}/src/stable.lua ${PREFIX}/lua/luavenv/stable.lua
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luavenv
${INSTALL_DATA} ${WRKSRC}/doc/us/*.{html,png} ${PREFIX}/share/doc/luavenv
.include <bsd.port.mk>

View File

@ -1,4 +0,0 @@
MD5 (venv-1.1.tar.gz) = 5598fbc1dbb4f8245719e44209f22578
RMD160 (venv-1.1.tar.gz) = 6756f09816936e176b0fb074a2c61f5802ce8468
SHA1 (venv-1.1.tar.gz) = 1a004a76b0f871e6b02ee0b40c49a0587ff61966
SIZE (venv-1.1.tar.gz) = 16841

View File

@ -1,3 +0,0 @@
-- $OpenBSD: init.lua,v 1.1.1.1 2005/05/18 03:04:00 jolan Exp $
-- luavenv's initialization steps
lua_addpath("@luavenvpath@")

View File

@ -1,3 +0,0 @@
Lua Virtual Environment is a simple library which provides a way to
execute a Lua function in a separate environment, protecting the
original one.

View File

@ -1,12 +0,0 @@
@comment $OpenBSD: PLIST,v 1.2 2005/09/06 13:15:10 pedro Exp $
@unexec lua ${SYSCONFDIR}/lua/luapkg.lua del luavenv
lua/luavenv/
lua/luavenv/init.lua
lua/luavenv/stable.lua
lua/luavenv/venv.lua
@exec lua ${SYSCONFDIR}/lua/luapkg.lua add luavenv ${PREFIX}/lua/luavenv/init.lua
share/doc/luavenv/
share/doc/luavenv/index.html
share/doc/luavenv/license.html
share/doc/luavenv/manual.html
share/doc/luavenv/venv.png

View File

@ -1,56 +0,0 @@
# $OpenBSD: Makefile,v 1.3 2006/07/27 21:13:56 pedro Exp $
SHARED_ONLY= Yes
BROKEN= "Pending update for Lua 5.1"
COMMENT= "cgi tool for the lua language"
DISTNAME= cgilua-5.0b2
CATEGORIES= www
MASTER_SITES= http://luaforge.net/frs/download.php/404/
HOMEPAGE= http://www.keplerproject.org/cgilua
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PREFIX= /var/www
NO_REGRESS= Yes
USE_GMAKE= Yes
ALL_TARGET= cgi
BUILD_DEPENDS= ::lang/lua ::devel/luafs
RUN_DEPENDS= ${BUILD_DEPENDS}
CGILUA_FILES= config.lua cookies.lua post.lua prep.lua readuntil.lua\
serialize.lua session.lua urlcode.lua
post-extract:
@sed -e "s:@cgiluapath@:${PREFIX}/lua/cgilua/?.lua:g"\
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
pre-configure:
@perl -pi -e 's:\@initconf@:${SYSCONFDIR}/lua/init.lua:g;'\
${WRKSRC}/launcher/_cgi/t_cgi.lua
do-install:
${INSTALL_SCRIPT_DIR} ${PREFIX}/cgi-bin
${INSTALL_SCRIPT} ${WRKSRC}/launcher/_cgi/_cgi ${PREFIX}/cgi-bin/_cgi
${INSTALL_SCRIPT} ${WRKSRC}/launcher/_cgi/cgi.lua\
${PREFIX}/cgi-bin/cgi.lua
${INSTALL_DATA_DIR} ${PREFIX}/lua/cgilua
${INSTALL_DATA_DIR} ${PREFIX}/lua/cgilua/cgilua
${INSTALL_DATA} ${WRKSRC}/init.lua ${PREFIX}/lua/cgilua
${INSTALL_DATA} ${WRKSRC}/clmain/cgilua/cgilua.lua ${PREFIX}/lua/cgilua
.for file in ${CGILUA_FILES}
${INSTALL_DATA} ${WRKSRC}/clmain/cgilua/${file}\
${PREFIX}/lua/cgilua/cgilua/${file}
.endfor
${INSTALL_DATA} ${WRKSRC}/clmain/stable.lua\
${PREFIX}/lua/cgilua/cgilua/stable.lua
${INSTALL_DATA_DIR} ${PREFIX}/doc
${INSTALL_DATA} ${WRKSRC}/doc/*.{gif,html} ${PREFIX}/doc
.include <bsd.port.mk>

View File

@ -1,4 +0,0 @@
MD5 (cgilua-5.0b2.tar.gz) = 15ce5724de848b7eaee7c72fbf63cdec
RMD160 (cgilua-5.0b2.tar.gz) = e8b8eb010f31b21ad51ac04194cbf49e4cc756af
SHA1 (cgilua-5.0b2.tar.gz) = 5a234127cbeee03c9c2f445401fe68f1cd39311b
SIZE (cgilua-5.0b2.tar.gz) = 79266

View File

@ -1,3 +0,0 @@
-- $OpenBSD: init.lua,v 1.1.1.1 2005/05/25 06:11:00 jolan Exp $
-- cgilua's initialization steps
lua_addpath("@cgiluapath@")

View File

@ -1,17 +0,0 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2005/05/25 06:11:00 jolan Exp $
--- Makefile.orig Wed Dec 22 17:31:19 2004
+++ Makefile Sun May 15 12:45:17 2005
@@ -21,11 +21,8 @@ dist_dir: luafilesystem $(COMPAT_DIR)
cd doc; export DIST_DIR="../$(DIST_DIR)/doc"; make -e dist_dir
cd test; export DIST_DIR="../$(DIST_DIR)/test"; make -e dist_dir
-cgi fcgi mod: luafilesystem
- cd luafilesystem; export COMPAT_DIR="../$(COMPAT_DIR)"; export LIB_EXT="$(LIB_EXT)"; export LIB_OPTION="$(LIB_OPTION)"; export LIBS="$(LIBS)"; make -e lib
- cd launcher; export LIB_EXT="$(LIB_EXT)"; make -e $@
- cd clmain; export COMPAT_DIR="../$(COMPAT_DIR)"; make -e $@
- cd doc; make $@
+cgi fcgi mod:
+ cd launcher; make -e $@
cgiinstall fcgiinstall modinstall: luafilesystem
cd luafilesystem; export COMPAT_DIR="../$(COMPAT_DIR)"; export LIB_EXT="$(LIB_EXT)"; export LIB_OPTION="$(LIB_OPTION)"; export LIB_DIR="$(LUA_LIBDIR)"; export LUA_DIR=/dev/null; make -e install

View File

@ -1,55 +0,0 @@
$OpenBSD: patch-config,v 1.1.1.1 2005/05/25 06:11:00 jolan Exp $
--- config.orig Wed Dec 22 12:31:19 2004
+++ config Wed May 25 00:10:41 2005
@@ -1,6 +1,6 @@
# Installation directories
LUA_DIR= /usr/local/share/lua/5.0
-LUA_LIBDIR= /usr/local/lib/lua/5.0
+LUA_LIBDIR= $(LOCALBASE)/lib
# Apache root directory
APACHE2_DIR= /usr/local/apache2
CGI_DIR= $(APACHE2_DIR)/cgi-bin
@@ -10,26 +10,22 @@ FCGI_DIR= $(APACHE2_DIR)/fcgilua
MOD_DEFS= -DLUA_STATE_PER_PROCESS
#MOD_DEFS= -DLUA_STATE_PER_REQUEST
# Lua Compiler
-LUAC= /usr/local/bin/luac
+LUAC= $(LOCALBASE)/bin/luac
# Lua Binary converter (bin2c)
# Lua distribution includes it at etc directory
-BIN2C= /usr/local/bin/bin2c
+BIN2C= $(LOCALBASE)/bin/bin2c
# OS dependent
-LIB_EXT= .dylib
-#LIB_EXT= .so
-LIB_OPTION= -dynamiclib #for MacOS X
-#LIB_OPTION= -shared #for Linux
+#LIB_EXT= .dylib
+LIB_EXT= .so
+#LIB_OPTION= -dynamiclib #for MacOS X
+LIB_OPTION= -shared
# Compilation directives
# pre-compile and include .lua file of launchers into .c file.
CGILUA_DEFS= -DINCLUDE_LUA
-# On FreeBSD systems, the following line should be commented
-DLLIB= -ldl
-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
-INCS= -I/usr/local/include/lua5
-CFLAGS= $(WARN) $(INCS) $(CGILUA_DEFS)
-CC= gcc
+INCS= -I$(LOCALBASE)/include
+CFLAGS+= $(INCS) $(CGILUA_DEFS)
#########################################################
VERSION= 5.0b2
@@ -43,7 +39,7 @@ CGILUA_DOC= $(CGILUA_DIR)/doc
# Lua 5.1 package compatibility
COMPAT_DIR= compat
-CL_LIBS= -llua -llualib -lm $(DLLIB)
+CL_LIBS= -llua -llualib -lm -L$(LOCALBASE)/lib -static
LIBS= $(CL_LIBS)
# $Id: patch-config,v 1.1.1.1 2005/05/25 06:11:00 jolan Exp $

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-launcher_Makefile,v 1.1.1.1 2005/05/25 06:11:00 jolan Exp $
--- launcher/Makefile.orig Sun May 15 12:25:18 2005
+++ launcher/Makefile Sun May 15 12:25:28 2005
@@ -5,7 +5,7 @@ T= launcher
include ../config
cgi cgiinstall:
- cd _cgi; export COMPAT_DIR="../$(COMPAT_DIR)"; make -e $@
+ cd _cgi; make -e $@
fcgi fcgiinstall:
cd fastcgi; export COMPAT_DIR="../$(COMPAT_DIR)"; make -e $@

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-launcher__cgi_Makefile,v 1.1.1.1 2005/05/25 06:11:00 jolan Exp $
--- launcher/_cgi/Makefile.orig Wed Dec 22 17:31:19 2004
+++ launcher/_cgi/Makefile Sun May 15 12:23:26 2005
@@ -20,7 +20,7 @@ $T: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
$(CL): $(CT)
- sed -e "s|LUA_DIR|$(LUA_DIR)|" -e "s|LUA_LIBDIR|$(LUA_LIBDIR)|" -e "s|LIB_EXT|$(LIB_EXT)|g" $(CT) > $(CL)
+ mv $(CT) $(CL)
$(CGIC): $(CL)
$(LUAC) -o $@ $(CL)

View File

@ -1,24 +0,0 @@
$OpenBSD: patch-launcher__cgi_t_cgi_lua,v 1.1.1.1 2005/05/25 06:11:00 jolan Exp $
--- launcher/_cgi/t_cgi.lua.orig Sun May 15 11:52:34 2005
+++ launcher/_cgi/t_cgi.lua Sun May 15 11:56:40 2005
@@ -35,16 +35,8 @@ end
set_api()
--- compatibility code for Lua version 5.0 providing 5.1 behavior
-if string.find (_VERSION, "Lua 5.0") and not package then
- if not LUA_PATH then
- local cgilua_luadir = [[LUA_DIR]]
- LUA_PATH = cgilua_luadir.."/?.lua;"..cgilua_luadir.."/?/?.lua"
- end
- require"compat-5.1"
- local cgilua_libdir = [[LUA_LIBDIR]]
- package.cpath = cgilua_libdir.."/?LIB_EXT;"..cgilua_libdir.."/lib?LIB_EXT"
-end
-require"lfs"
-require"cgilua"
+require("@initconf@")
+require("lfs")
+require("cgilua")
+
cgilua.main()

View File

@ -1,13 +0,0 @@
GILua is a tool for creating dynamic web pages and manipulating input
data from forms. It is simple but powerful, allowing complex tasks to be
carried out with minimum effort. Typical applications that can be
developed with CGILua include, for instance, web based information
systems accessing external data (databases) and gateways to existing
systems.
CGILua uses the interpreted language Lua as a server-side scripting
language for creating dynamic Web pages. Both pure Lua Scripts and Lua
Pages are supported by CGILua. A Lua script is essentially a Lua program
that creates the whole contents of a web page and returns it to the web
server. A Lua page is a conventional markup text (HTML, XML etc) file
that embeds Lua code using some special tags.

View File

@ -1,28 +0,0 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/05/25 06:11:00 jolan Exp $
@unexec lua ${SYSCONFDIR}/lua/luapkg.lua del cgilua
cgi-bin/_cgi
cgi-bin/cgi.lua
doc/
doc/cgi-128.gif
doc/config.html
doc/index.html
doc/libraries.html
doc/license.html
doc/reference.html
doc/sapi.html
doc/scripts.html
lua/
lua/cgilua/
lua/cgilua/cgilua/
lua/cgilua/cgilua.lua
lua/cgilua/cgilua/config.lua
lua/cgilua/cgilua/cookies.lua
lua/cgilua/cgilua/post.lua
lua/cgilua/cgilua/prep.lua
lua/cgilua/cgilua/readuntil.lua
lua/cgilua/cgilua/serialize.lua
lua/cgilua/cgilua/session.lua
lua/cgilua/cgilua/stable.lua
lua/cgilua/cgilua/urlcode.lua
lua/cgilua/init.lua
@exec lua ${SYSCONFDIR}/lua/luapkg.lua add cgilua ${PREFIX}/lua/cgilua/init.lua

View File

@ -1,59 +0,0 @@
# $OpenBSD: Makefile,v 1.10 2006/12/17 20:11:22 kili Exp $
BROKEN= "Pending update for Lua 5.1"
COMMENT= "lua web server with cgi support"
DISTNAME= xavante-1.1
PKGNAME= ${DISTNAME}p4
CATEGORIES= www
MASTER_SITES= http://luaforge.net/frs/download.php/958/
HOMEPAGE= http://www.keplerproject.org/xavante/
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_BUILD= Yes
NO_REGRESS= Yes
RUN_DEPENDS= ::lang/lua ::devel/luafs ::net/luasocket \
::devel/luacopas ::devel/luavenv ::devel/luaposix ::www/cgilua
post-extract:
@sed -e "s:@xavantepath@:${PREFIX}/lua/xavante/?.lua:g" \
-e "s:@sajaxpath@:${PREFIX}/lua/sajax/?.lua:g" \
-e "s:@sysconfdir@:${SYSCONFDIR}/?.lua:g" \
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
pre-configure:
@perl -pi -e 's:\@xavanteweb@:${PREFIX}/share/examples/xavante/htdocs/:g;' \
${WRKSRC}/src/xavante/config.lua
@perl -pi -e 's:\@localbase@:${LOCALBASE}:g;' \
${WRKSRC}/src/t_xavante_start.lua
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lua/sajax
${INSTALL_DATA} ${WRKSRC}/src/sajax/sajax.lua ${PREFIX}/lua/sajax
${INSTALL_DATA_DIR} ${PREFIX}/lua/xavante
${INSTALL_DATA_DIR} ${PREFIX}/lua/xavante/xavante
${INSTALL_DATA} ${WRKSRC}/init.lua ${PREFIX}/lua/xavante
${INSTALL_DATA} ${WRKSRC}/src/xavante/{cgiluahandler,davFileProps,davFileRepository,davhandler,filehandler,httpd,mime,redirecthandler,server}.lua \
${PREFIX}/lua/xavante/xavante
${INSTALL_DATA} ${WRKSRC}/src/coxpcall/coxpcall.lua \
${PREFIX}/lua/xavante/xavante/coxpcall.lua
${INSTALL_PROGRAM} ${WRKSRC}/src/t_xavante_start.lua \
${PREFIX}/bin/xavante
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xavante/htdocs/img
${INSTALL_DATA} ${WRKSRC}/src/xavante/config.lua \
${PREFIX}/share/examples/xavante
${INSTALL_DATA} ${WRKSRC}/web/*.lp \
${PREFIX}/share/examples/xavante/htdocs
${INSTALL_DATA} ${WRKSRC}/web/img/*.{gif,jpg} \
${PREFIX}/share/examples/xavante/htdocs/img
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xavante
${INSTALL_DATA} ${WRKSRC}/doc/us/* ${PREFIX}/share/doc/xavante
.include <bsd.port.mk>

View File

@ -1,4 +0,0 @@
MD5 (xavante-1.1.tar.gz) = a7f70b45dea9d1f82584865f5e435f57
RMD160 (xavante-1.1.tar.gz) = 477c54da8aed1c6419cb0d15098f3c749625b91b
SHA1 (xavante-1.1.tar.gz) = 0d827be2c55a3b2eb1fdb1d79e1c110eabe8fbf1
SIZE (xavante-1.1.tar.gz) = 39155

View File

@ -1,5 +0,0 @@
-- $OpenBSD: init.lua,v 1.3 2005/12/02 01:12:08 jolan Exp $
-- xavante's initialization steps
lua_addpath("@xavantepath@")
lua_addpath("@sajaxpath@")
lua_addpath("@sysconfdir@")

View File

@ -1,28 +0,0 @@
$OpenBSD: patch-src_t_xavante_start_lua,v 1.3 2005/12/02 01:12:08 jolan Exp $
--- src/t_xavante_start.lua.orig Mon Jul 4 13:37:44 2005
+++ src/t_xavante_start.lua Thu Dec 1 18:27:06 2005
@@ -1,4 +1,4 @@
-#!/usr/local/bin/lua50
+#!@localbase@/bin/lua
-------------------------------------------------------------------------------
-- Starts the Xavante Web server.
--
@@ -8,18 +8,8 @@
-- Copyright (c) 2004-2005 Kepler Project
-------------------------------------------------------------------------------
---- compatibility code for Lua version 5.0 providing 5.1 behavior
-if string.find (_VERSION, "Lua 5.0") and not _COMPAT51 then
- if not LUA_PATH then
- LUA_PATH = [[LUA_PATH]]
- end
- require"compat-5.1"
- package.cpath = [[LUA_CPATH]]
-end
require "xavante.server"
-
-xavante.setwebdir([[XAVANTE_WEB]])
-------------------------------------------------------------------------------
-- Loads the configuration file and starts Xavante

View File

@ -1,19 +0,0 @@
$OpenBSD: patch-src_xavante_cgiluahandler_lua,v 1.1 2005/08/02 17:41:08 pedro Exp $
--- src/xavante/cgiluahandler.lua.orig Thu May 26 01:07:16 2005
+++ src/xavante/cgiluahandler.lua Mon Aug 1 07:33:46 2005
@@ -9,7 +9,7 @@ module (arg and arg[1])
require "venv"
require "lfs"
-require "stable"
+require "cgilua.stable"
-------------------------------------------------------------------------------
-- Implements SAPI
@@ -98,4 +98,4 @@ function makeHandler (diskpath)
return function (req, res)
return cgiluahandler (req, res, diskpath)
end
-end
\ No newline at end of file
+end

View File

@ -1,19 +0,0 @@
$OpenBSD: patch-src_xavante_config_lua,v 1.1 2005/12/02 01:12:08 jolan Exp $
--- src/xavante/config.lua.orig Tue Jun 7 10:43:02 2005
+++ src/xavante/config.lua Thu Dec 1 18:28:56 2005
@@ -19,6 +19,8 @@ require "xavante.filehandler"
require "xavante.cgiluahandler"
require "xavante.redirecthandler"
+xavante.setwebdir([[@xavanteweb@]])
+
local simplerules = {
-- URL remapping example
{match = "/", with = xavante.redirecthandler, params = {"index.lp"}},
@@ -36,4 +38,4 @@ xavante.HTTP{
defaultHost = {
rules = simplerules
},
-}
\ No newline at end of file
+}

View File

@ -1,20 +0,0 @@
$OpenBSD: patch-src_xavante_httpd_lua,v 1.1 2005/08/02 17:41:08 pedro Exp $
--- src/xavante/httpd.lua.orig Thu May 26 01:07:17 2005
+++ src/xavante/httpd.lua Mon Aug 1 07:24:40 2005
@@ -5,7 +5,7 @@
-- Copyright (c) 2004-2005 Kepler Project
-----------------------------------------------------------------------------
local url = require "socket.url"
-require "coxpcall"
+require "xavante.coxpcall"
pcall = copcall
xpcall = coxpcall
@@ -72,6 +72,7 @@ function read_method (req)
if not req.cmdline then return nil end
req.cmd_mth, req.cmd_url, req.cmd_version = unpack (strsplit (req.cmdline))
+ if not req.cmd_mth then return nil end
req.cmd_mth = string.upper (req.cmd_mth)
return true
end

View File

@ -1,23 +0,0 @@
$OpenBSD: patch-src_xavante_server_lua,v 1.1 2005/09/06 16:51:44 pedro Exp $
--- src/xavante/server.lua.orig Wed Jun 22 15:24:49 2005
+++ src/xavante/server.lua Thu Aug 18 13:50:52 2005
@@ -14,6 +14,7 @@
module ("xavante")
require "copas"
+require "posix"
require "xavante.httpd"
-- Meta information is public even begining with an "_"
@@ -49,6 +50,11 @@ function HTTP(config)
config.server = config.server or {host = "*", port = 80}
xavante.httpd.register(config.server.host, config.server.port, _VERSION)
+
+ -- Drop privileges.
+ assert(posix.setgid(552))
+ assert(posix.setuid(552))
+
if config.defaultHost then
_addRules(config.defaultHost.rules, "_")
end

View File

@ -1,17 +0,0 @@
$OpenBSD: patch-web_index_lp,v 1.1 2005/12/02 01:12:08 jolan Exp $
--- web/index.lp.orig Wed Mar 16 15:35:24 2005
+++ web/index.lp Thu Dec 1 18:43:21 2005
@@ -12,10 +12,10 @@
If you are reading this page, <strong><%= cgilua.servervariable("SERVER_SOFTWARE") %></strong>
has been successfully installed on your system.<br />
<br />
-From here you can browse the <a href="/doc/index.html">Xavante documentation</a>
+From here you can browse the <a href="http://www.keplerproject.org/xavante/">Xavante documentation</a>
or run some <a href="test.lp">Xavante tests</a>. <br />
<br />
Copyright 2004-2005 - <a href="http://www.keplerproject.org">Kepler Project</a><br />
</center>
</body>
-</html>
\ No newline at end of file
+</html>

View File

@ -1,2 +0,0 @@
Xavante is a Lua Web server that handles HTTP 1.1 requests and uses
CGILua 5.0 as the native template engine.

View File

@ -1,39 +0,0 @@
@comment $OpenBSD: PLIST,v 1.7 2005/12/02 01:12:08 jolan Exp $
@newgroup _xavante:552
@newuser _xavante:552:552:daemon:Xavante WWW Server:/var/empty:/sbin/nologin
@unexec lua ${SYSCONFDIR}/lua/luapkg.lua del xavante
bin/xavante
lua/sajax/
lua/sajax/sajax.lua
lua/xavante/
lua/xavante/init.lua
lua/xavante/xavante/
lua/xavante/xavante/cgiluahandler.lua
lua/xavante/xavante/coxpcall.lua
lua/xavante/xavante/davFileProps.lua
lua/xavante/xavante/davFileRepository.lua
lua/xavante/xavante/davhandler.lua
lua/xavante/xavante/filehandler.lua
lua/xavante/xavante/httpd.lua
lua/xavante/xavante/mime.lua
lua/xavante/xavante/redirecthandler.lua
lua/xavante/xavante/server.lua
@exec lua ${SYSCONFDIR}/lua/luapkg.lua add xavante ${PREFIX}/lua/xavante/init.lua
share/doc/xavante/
share/doc/xavante/index.html
share/doc/xavante/license.html
share/doc/xavante/manual.html
share/doc/xavante/sajax.html
share/doc/xavante/xavante.gif
share/examples/xavante/
@sample ${SYSCONFDIR}/xavante/
share/examples/xavante/config.lua
@sample ${SYSCONFDIR}/xavante/config.lua
share/examples/xavante/htdocs/
share/examples/xavante/htdocs/calculator.lp
share/examples/xavante/htdocs/img/
share/examples/xavante/htdocs/img/test.jpg
share/examples/xavante/htdocs/img/xavante.gif
share/examples/xavante/htdocs/index.lp
share/examples/xavante/htdocs/loop.lp
share/examples/xavante/htdocs/test.lp