openbsd-ports/www/xavante/patches/patch-src_t_xavante_start_lua
jolan 3b418d86b0 put all the configuration stuff into a single file in SYSCONFDIR and
some tiny tweaks

with help from and ok pedro@
2005-12-02 01:12:08 +00:00

29 lines
981 B
Plaintext

$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