OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 22-Jun-2007 13:57:23 Branch: HEAD Handle: 2007062212572201 Added files: openpkg-src/apache-fastcgi apache-fastcgi.conf apache-fastcgi.patch apache-fastcgi.spec Log: new package: apache-fastcgi 2.4.2 (Apache Extension: FastCGI Support) Summary: Revision Changes Path 1.1 +6 -0 openpkg-src/apache-fastcgi/apache-fastcgi.conf 1.1 +43 -0 openpkg-src/apache-fastcgi/apache-fastcgi.patch 1.1 +98 -0 openpkg-src/apache-fastcgi/apache-fastcgi.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/apache-fastcgi/apache-fastcgi.conf ============================================================================ $ cvs diff -u -r0 -r1.1 apache-fastcgi.conf --- /dev/null 2007-06-22 13:57:15 +0200 +++ apache-fastcgi.conf 2007-06-22 13:57:23 +0200 @@ -0,0 +1,6 @@ +## +## apache-fastcgi.conf -- Apache configuration for FastCGI +## + +LoadModule fastcgi_module @l_prefix@/libexec/apache/mod_fastcgi.so + @@ . patch -p0 <<'@@ .' Index: openpkg-src/apache-fastcgi/apache-fastcgi.patch ============================================================================ $ cvs diff -u -r0 -r1.1 apache-fastcgi.patch --- /dev/null 2007-06-22 13:57:15 +0200 +++ apache-fastcgi.patch 2007-06-22 13:57:23 +0200 @@ -0,0 +1,43 @@ +Originally from +http://fastcgi.com/archives/fastcgi-developers/2005-December/004060.html + +diff -ruN mod_fastcgi-2.4.2/fcgi.h mod_fastcgi-2.4.2-ap22/fcgi.h +--- fcgi.h 2003-02-04 00:07:37.000000000 +0100 ++++ fcgi.h 2005-12-07 21:05:55.000000000 +0100 +@@ -73,6 +73,36 @@ + #define ap_reset_timeout(a) + #define ap_unblock_alarms() + ++/* starting with apache 2.2 the backward-compatibility defines for ++ * 1.3 APIs are not available anymore. Define them ourselves here. ++ */ ++#ifndef ap_copy_table ++ ++#define ap_copy_table apr_table_copy ++#define ap_cpystrn apr_cpystrn ++#define ap_destroy_pool apr_pool_destroy ++#define ap_isspace apr_isspace ++#define ap_make_array apr_array_make ++#define ap_make_table apr_table_make ++#define ap_null_cleanup apr_pool_cleanup_null ++#define ap_palloc apr_palloc ++#define ap_pcalloc apr_pcalloc ++#define ap_psprintf apr_psprintf ++#define ap_pstrcat apr_pstrcat ++#define ap_pstrdup apr_pstrdup ++#define ap_pstrndup apr_pstrndup ++#define ap_push_array apr_array_push ++#define ap_register_cleanup apr_pool_cleanup_register ++#define ap_snprintf apr_snprintf ++#define ap_table_add apr_table_add ++#define ap_table_do apr_table_do ++#define ap_table_get apr_table_get ++#define ap_table_set apr_table_set ++#define ap_table_setn apr_table_setn ++#define ap_table_unset apr_table_unset ++ ++#endif /* defined(ap_copy_table) */ ++ + #if (defined(HAVE_WRITEV) && !HAVE_WRITEV && !defined(NO_WRITEV)) || defined WIN32 + #define NO_WRITEV + #endif @@ . patch -p0 <<'@@ .' Index: openpkg-src/apache-fastcgi/apache-fastcgi.spec ============================================================================ $ cvs diff -u -r0 -r1.1 apache-fastcgi.spec --- /dev/null 2007-06-22 13:57:15 +0200 +++ apache-fastcgi.spec 2007-06-22 13:57:23 +0200 @@ -0,0 +1,98 @@ +## +## apache-fastcgi.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/> +## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: apache-fastcgi +Summary: Apache Extension: FastCGI Support +URL: http://www.fastcgi.com/ +Vendor: Open Market, Inc. +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Web +License: Open Source +Version: 2.4.2 +Release: 20070622 + +# list of sources +Source0: http://www.fastcgi.com/dist/mod_fastcgi-%{version}.tar.gz +Source1: apache-fastcgi.conf +Patch0: apache-fastcgi.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, apache, make +PreReq: OpenPKG, openpkg >= 20060823, apache +AutoReq: no +AutoReqProv: no + +%description + This is the FastCGI extension module for the Apache HTTP webserver. + +%track + prog apache-fastcgi = { + version = %{version} + url = http://www.fastcgi.com/dist/ + regex = mod_fastcgi-(__VER__)\.tar\.gz + } + +%prep + %setup -q -n mod_fastcgi-%{version} + %patch -p0 + +%build + # build module + cp Makefile.AP2 Makefile + %{l_make} %{l_mflags} \ + top_dir=%{l_prefix}/share/apache + +%install + # install module + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d \ + $RPM_BUILD_ROOT%{l_prefix}/libexec/apache + %{l_shtool} install -c -m 755 \ + .libs/mod_fastcgi.so $RPM_BUILD_ROOT%{l_prefix}/libexec/apache/ + %{l_shtool} install -c -m 755 \ + %{SOURCE apache-fastcgi.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/ + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ + %{l_files_std} \ + '%config %{l_prefix}/etc/apache/apache.d/apache-fastcgi.conf' + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + +%post + # after upgrade, restart service + [ $1 -eq 2 ] || exit 0 + eval `%{l_rc} apache status 2>/dev/null` + [ ".$apache_active" = .yes ] && %{l_rc} apache restart + exit 0 + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org