FreeBSD Bugzilla – Attachment 159838 Details for
Bug 202302
[MAINTAINER] www/lighttpd: convert to options macros and add Lua 5.2+ compatibility
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
www/lighttpd/Makefile update
lighttpd.patch (text/plain), 4.72 KB, created by
Piotr Kubaj
on 2015-08-13 18:08:20 UTC
(
hide
)
Description:
www/lighttpd/Makefile update
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2015-08-13 18:08:20 UTC
Size:
4.72 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 394071) >+++ Makefile (working copy) >@@ -49,9 +49,24 @@ > VALGRIND_DESC= valgrind support > WEBDAV_DESC= WebDAV support > >-FAM_USES= fam >-FAM_CONFIGURE_ON= --with-fam >-FAM_CONFIGURE_ENV= FAM_CFLAGS="-I${LOCALBASE}/include" FAM_LIBS="-L${LOCALBASE}/lib" >+BZIP2_CONFIGURE_WITH= bzip2 >+FAM_USES= fam >+FAM_CONFIGURE_ON= --with-fam >+FAM_CONFIGURE_ENV= FAM_CFLAGS="-I${LOCALBASE}/include" FAM_LIBS="-L${LOCALBASE}/lib" >+GDBM_LIB_DEPENDS= libgdbm.so:${PORTSDIR}/databases/gdbm >+GDBM_CONFIGURE_WITH= gdbm >+IPV6_CONFIGURE_OFF= --disable-ipv6 >+LIBEV_CONFIGURE_WITH= libev=${LOCALBASE} >+LIBEV_LIB_DEPENDS= libev.so:${PORTSDIR}/devel/libev >+LUA_USES= lua:51+ >+LUA_CONFIGURE_WITH= lua >+LUA_CONFIGURE_ENV= LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}" >+MEMCACHE_LIB_DEPENDS= libmemcache.so:${PORTSDIR}/databases/libmemcache >+MEMCACHE_CONFIGURE_WITH=memcache >+SPAWNFCGI_RUN_DEPENDS= spawn-fcgi:${PORTSDIR}/www/spawn-fcgi >+VALGRIND_BUILD_DEPENDS= valgrind:${PORTSDIR}/devel/valgrind >+VALGRIND_RUN_DEPENDS= valgrind:${PORTSDIR}/devel/valgrind >+VALGRIND_CONFIGURE_WITH=valgrind > > LIGHTTPD_CONF_FILES= lighttpd.conf modules.conf > >@@ -95,35 +110,6 @@ > --with-openssl-libs=${OPENSSLLIB} > .endif > >-.if ${PORT_OPTIONS:MBZIP2} >-CONFIGURE_ARGS+= --with-bzip2 >-.endif >- >-.if ${PORT_OPTIONS:MGDBM} >-LIB_DEPENDS+= libgdbm.so:${PORTSDIR}/databases/gdbm >-CONFIGURE_ARGS+= --with-gdbm >-.endif >- >-.if empty(PORT_OPTIONS:MIPV6) >-CONFIGURE_ARGS+= --disable-ipv6 >-.endif >- >-.if ${PORT_OPTIONS:MLIBEV} >-CONFIGURE_ARGS+= --with-libev=${LOCALBASE} >-LIB_DEPENDS+= libev.so:${PORTSDIR}/devel/libev >-.endif >- >-.if ${PORT_OPTIONS:MLUA} >-USES+= lua:51 >-CONFIGURE_ARGS+= --with-lua >-CONFIGURE_ENV+= LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}" >-.endif >- >-.if ${PORT_OPTIONS:MMEMCACHE} >-LIB_DEPENDS+= libmemcache.so:${PORTSDIR}/databases/libmemcache >-CONFIGURE_ARGS+= --with-memcache >-.endif >- > .if ${PORT_OPTIONS:MMYSQL} > USE_MYSQL= yes > CONFIGURE_ARGS+= --with-mysql >@@ -149,16 +135,6 @@ > _REQUIRE+= slapd > .endif > >-.if ${PORT_OPTIONS:MSPAWNFCGI} >-RUN_DEPENDS+= spawn-fcgi:${PORTSDIR}/www/spawn-fcgi >-.endif >- >-.if ${PORT_OPTIONS:MVALGRIND} >-BUILD_DEPENDS+= valgrind:${PORTSDIR}/devel/valgrind >-RUN_DEPENDS+= valgrind:${PORTSDIR}/devel/valgrind >-CONFIGURE_ARGS+= --with-valgrind >-.endif >- > .if ${PORT_OPTIONS:MWEBDAV} > USE_GNOME+= libxml2 > LIB_DEPENDS+= libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \ >Index: files/patch-src_mod__cml__lua.c >=================================================================== >--- files/patch-src_mod__cml__lua.c (revision 0) >+++ files/patch-src_mod__cml__lua.c (working copy) >@@ -0,0 +1,25 @@ >+--- src/mod_cml_lua.c.orig 2015-07-26 10:36:36 UTC >++++ src/mod_cml_lua.c >+@@ -28,6 +28,10 @@ typedef char HASHHEX[HASHHEXLEN+1]; >+ #include <lualib.h> >+ #include <lauxlib.h> >+ >++#if LUA_VERSION_NUM >= 502 >++#define LUA_GLOBALSINDEX LUA_REGISTRYINDEX >++#endif >++ >+ typedef struct { >+ stream st; >+ int done; >+@@ -291,7 +295,11 @@ int cache_parse_lua(server *srv, connect >+ lua_settable(L, LUA_GLOBALSINDEX); >+ >+ /* load lua program */ >++#if LUA_VERSION_NUM >= 502 >++ if (lua_load(L, load_file, &rm, fn->ptr, NULL) || lua_pcall(L,0,1,0)) { >++#else >+ if (lua_load(L, load_file, &rm, fn->ptr) || lua_pcall(L,0,1,0)) { >++#endif >+ log_error_write(srv, __FILE__, __LINE__, "s", >+ lua_tostring(L,-1)); >+ > >Property changes on: files/patch-src_mod__cml__lua.c >___________________________________________________________________ >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: files/patch-src_mod__magnet.c >=================================================================== >--- files/patch-src_mod__magnet.c (revision 0) >+++ files/patch-src_mod__magnet.c (working copy) >@@ -0,0 +1,13 @@ >+--- src/mod_magnet.c.orig 2015-07-26 10:36:36 UTC >++++ src/mod_magnet.c >+@@ -24,6 +24,10 @@ >+ #define MAGNET_CONFIG_PHYSICAL_PATH "magnet.attract-physical-path-to" >+ #define MAGNET_RESTART_REQUEST 99 >+ >++#if LUA_VERSION_NUM >= 502 >++#define LUA_GLOBALSINDEX LUA_REGISTRYINDEX >++#endif >++ >+ /* plugin config for all request/connections */ >+ >+ static jmp_buf exceptionjmp; > >Property changes on: files/patch-src_mod__magnet.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202302
: 159838 |
161523