Install sajax.lua as a loadable module, prompted out and okay jolan@

This commit is contained in:
pedro 2005-12-01 20:17:05 +00:00
parent 1649615b95
commit fba46fb103
3 changed files with 10 additions and 7 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.5 2005/09/26 22:31:58 jolan Exp $
# $OpenBSD: Makefile,v 1.6 2005/12/01 20:17:05 pedro Exp $
COMMENT= "lua web server with cgi support"
DISTNAME= xavante-1.1
PKGNAME= ${DISTNAME}p2
PKGNAME= ${DISTNAME}p3
CATEGORIES= www
MASTER_SITES= http://luaforge.net/frs/download.php/958/
@ -24,6 +24,7 @@ RUN_DEPENDS= ${BUILD_DEPENDS}
post-extract:
@sed -e "s:@xavantepath@:${PREFIX}/lua/xavante/?.lua:g" \
-e "s:@sajaxpath@:${PREFIX}/lua/sajax/?.lua:g" \
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
post-patch:
@ -34,6 +35,7 @@ post-patch:
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lua/xavante
${INSTALL_DATA_DIR} ${PREFIX}/lua/sajax
${INSTALL_DATA_DIR} ${PREFIX}/lua/xavante/xavante
${INSTALL_DATA} ${WRKSRC}/init.lua ${PREFIX}/lua/xavante
${INSTALL_DATA} ${WRKSRC}/src/xavante/*.lua \
@ -43,8 +45,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/t_xavante_start.lua \
${PREFIX}/bin/xavante
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xavante
${INSTALL_DATA} ${WRKSRC}/src/sajax/sajax.lua \
${PREFIX}/share/examples/xavante
${INSTALL_DATA} ${WRKSRC}/src/sajax/sajax.lua ${PREFIX}/lua/sajax
${INSTALL_DATA} ${WRKSRC}/web/*.lp ${PREFIX}/share/examples/xavante
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xavante/img
${INSTALL_DATA} ${WRKSRC}/web/img/*.{gif,jpg} \

View File

@ -1,3 +1,4 @@
-- $OpenBSD: init.lua,v 1.1.1.1 2005/05/25 06:13:16 jolan Exp $
-- $OpenBSD: init.lua,v 1.2 2005/12/01 20:17:05 pedro Exp $
-- xavante's initialization steps
lua_addpath("@xavantepath@")
lua_addpath("@sajaxpath@")

View File

@ -1,8 +1,10 @@
@comment $OpenBSD: PLIST,v 1.5 2005/09/26 22:31:58 jolan Exp $
@comment $OpenBSD: PLIST,v 1.6 2005/12/01 20:17:05 pedro 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/
@ -31,5 +33,4 @@ share/examples/xavante/img/test.jpg
share/examples/xavante/img/xavante.gif
share/examples/xavante/index.lp
share/examples/xavante/loop.lp
share/examples/xavante/sajax.lua
share/examples/xavante/test.lp