packages: apache/apache.spec, apache/lua-lib.patch (NEW)=?UTF-8?Q?=20?=- build and packag...

baggins baggins at pld-linux.org
Sun Jun 24 12:55:50 CEST 2012


Author: baggins                      Date: Sun Jun 24 10:55:50 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build and package mod_lua

---- Files affected:
packages/apache:
   apache.spec (1.682 -> 1.683) , lua-lib.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/apache/apache.spec
diff -u packages/apache/apache.spec:1.682 packages/apache/apache.spec:1.683
--- packages/apache/apache.spec:1.682	Sun Jun 24 12:37:38 2012
+++ packages/apache/apache.spec	Sun Jun 24 12:55:44 2012
@@ -1,7 +1,5 @@
 # $Revision$, $Date$
 # # TODO:
-# - enable new modules: https://httpd.apache.org/docs/2.4/new_features_2_4.html
-#   - mod_lua
 # - config examples for mod_*
 # - --with-suexec-uidmin=500 or =1000 ?
 # - check those autn modules inner deps
@@ -99,6 +97,7 @@
 # http://mpm-itk.sesse.net/
 Patch28:	%{name}-mpm-itk.patch
 Patch29:	libtool-tag.patch
+Patch30:	lua-lib.patch
 URL:		http://httpd.apache.org/
 BuildRequires:	apr-devel >= %{apr_ver}
 BuildRequires:	apr-util-devel >= 1:1.3.10-2
@@ -106,6 +105,7 @@
 BuildRequires:	automake
 %{?with_distcache:BuildRequires:	distcache-devel}
 BuildRequires:	libtool >= 2:1.5
+BuildRequires:	lua51-devel
 %{?with_ldap:BuildRequires:	openldap-devel >= 2.3.0}
 %{?with_ssl:BuildRequires:	openssl-devel >= %{openssl_ver}}
 %{?with_ssl:BuildRequires:	openssl-tools >= %{openssl_ver}}
@@ -1616,6 +1616,21 @@
 wejściu i po SSL/TLS na wyjściu, więc liczby będą właściwie
 odzwierciedlały wszystkie zmiany dokonywane przez szyfrowanie.
 
+%package mod_lua
+Summary:	Provides Lua hooks into various portions of the httpd request processing
+Group:		Networking/Daemons/HTTP
+URL:		http://httpd.apache.org/docs/2.4/mod/mod_lua.html
+Requires:	%{name}-base = %{version}-%{release}
+Provides:	apache(mod_lua) = %{version}-%{release}
+
+%description mod_lua
+This module allows the server to be extended with scripts written in
+the Lua programming language. The extension points (hooks) available
+with mod_lua include many of the hooks available to natively compiled
+Apache HTTP Server modules, such as mapping requests to files,
+generating dynamic responses, access control, authentication,
+and authorization
+
 %package mod_mime
 Summary:	Associates the requested filename's extensions with the file's behavior and content
 Summary(pl.UTF-8):	Wiązanie określonych rozszerzeń plików z zachowaniem i zawartością
@@ -2287,6 +2302,7 @@
 # probably drop
 #%patch28 -p1
 %patch29 -p1
+%patch30 -p1
 
 # sanity check
 MODULES_API=`awk '/#define MODULE_MAGIC_NUMBER_MAJOR/ {print $3}' include/ap_mmn.h`
@@ -2348,6 +2364,7 @@
 	--enable-case-filter-in \
 	--enable-log-forensic \
 	--enable-logio \
+	--enable-lua \
 	--with-z=%{_prefix} \
 	--enable-mime-magic \
 	--enable-cern-meta \
@@ -2516,6 +2533,7 @@
 echo "LoadModule log_debug_module       modules/mod_log_debug.so" > $CFG/00_mod_log_debug.conf
 echo "LoadModule log_forensic_module	modules/mod_log_forensic.so" > $CFG/00_mod_log_forensic.conf
 echo "LoadModule logio_module	modules/mod_logio.so" > $CFG/00_mod_logio.conf
+echo "LoadModule lua_module	modules/mod_lua.so" > $CFG/00_mod_lua.conf
 echo "LoadModule negotiation_module	modules/mod_negotiation.so" > $CFG/00_mod_negotiation.conf
 echo "LoadModule ratelimit_module       modules/mod_ratelimit.so" > $CFG/00_mod_ratelimit.conf
 echo "LoadModule reflector_module       modules/mod_reflector.so" > $CFG/00_mod_reflector.conf
@@ -2857,6 +2875,7 @@
 %module_scripts mod_log_debug
 %module_scripts mod_log_forensic
 %module_scripts mod_logio
+%module_scripts mod_lua
 %module_scripts mod_mime
 %module_scripts mod_mime_magic
 %module_scripts mod_negotiation
@@ -3336,6 +3355,11 @@
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_logio.conf
 %attr(755,root,root) %{_libexecdir}/mod_logio.so
 
+%files mod_lua
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_lua.conf
+%attr(755,root,root) %{_libexecdir}/mod_lua.so
+
 %files mod_mime
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/mod_mime.so
@@ -3540,6 +3564,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.683  2012/06/24 10:55:44  baggins
+- build and package mod_lua
+
 Revision 1.682  2012/06/24 10:37:38  baggins
 - upated mod_proxy config and Requires
 

================================================================
Index: packages/apache/lua-lib.patch
diff -u /dev/null packages/apache/lua-lib.patch:1.1
--- /dev/null	Sun Jun 24 12:55:50 2012
+++ packages/apache/lua-lib.patch	Sun Jun 24 12:55:45 2012
@@ -0,0 +1,16 @@
+--- httpd-2.4.2/modules/lua/config.m4~	2011-07-24 21:14:25.000000000 +0200
++++ httpd-2.4.2/modules/lua/config.m4	2012-06-24 12:50:48.078264944 +0200
+@@ -76,11 +76,8 @@
+         save_LDFLAGS=$LDFLAGS
+         CFLAGS="$CFLAGS"
+         LDFLAGS="-L$x/lib/lua51 $LDFLAGS $lib_m"
+-        AC_CHECK_LIB(lua, luaL_newstate, [
+-            LUA_LIBS="-L$x/lib/lua51 -llua $lib_m"
+-            if test "x$ap_platform_runtime_link_flag" != "x"; then
+-               APR_ADDTO(LUA_LIBS, [$ap_platform_runtime_link_flag$x/lib/lua51])
+-            fi
++        AC_CHECK_LIB(lua51, luaL_newstate, [
++            LUA_LIBS="-llua51 $lib_m"
+             LUA_CFLAGS="-I$x/include/lua51"
+             ])
+         CFLAGS=$save_CFLAGS
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/apache/apache.spec?r1=1.682&r2=1.683



More information about the pld-cvs-commit mailing list