21e4ac6895
from pedro@ who can't be bothered to import his own ports
25 lines
737 B
Plaintext
25 lines
737 B
Plaintext
$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()
|