2 changed files with 0 additions and 135 deletions
@ -1,19 +0,0 @@
|
||||
## |
||||
## tomcat-adapter.conf -- Apache Configuration Snippet for Tomcat Adapter |
||||
## |
||||
|
||||
# load DSO |
||||
LoadModule jk_module @l_prefix@/libexec/tomcat-adapter/mod_jk.so |
||||
|
||||
# workers configuration |
||||
JkWorkersFile @l_prefix@/libexec/tomcat/conf/workers.properties |
||||
|
||||
# logging |
||||
JkLogFile @l_prefix@/var/tomcat-adapter/tomcat-adapter.log |
||||
JkLogLevel warn |
||||
|
||||
# assigning URLs to Tomcat |
||||
JkMount /*.jsp ajp13 |
||||
JkMount /servlet/* ajp13 |
||||
JkMount /examples/* ajp13 |
||||
|
||||
@ -1,116 +0,0 @@
|
||||
## |
||||
## tomcat-adapter.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: tomcat-adapter |
||||
Summary: Apache Jakarta Tomcat Webserver Adapter |
||||
URL: http://jakarta.apache.org/ |
||||
Vendor: Apache Software Foundation |
||||
Packager: OpenPKG Foundation e.V. |
||||
Distribution: OpenPKG Community |
||||
Class: EVAL |
||||
Group: Web |
||||
License: Apache Software License 2.0 |
||||
Version: 5.5.23 |
||||
Release: 20070309 |
||||
|
||||
# package options |
||||
%option with_eapi no |
||||
|
||||
# list of sources |
||||
Source0: http://www.apache.org/dist/tomcat/tomcat-5/v%{version}/src/apache-tomcat-%{version}-src.tar.gz |
||||
Source1: tomcat-adapter.conf |
||||
|
||||
# build information |
||||
Prefix: %{l_prefix} |
||||
BuildRoot: %{l_buildroot} |
||||
BuildPreReq: OpenPKG, openpkg >= 20040130, perl, gcc, make, autoconf, libtool, automake |
||||
PreReq: OpenPKG, openpkg >= 20040130 |
||||
BuildPreReq: apache, apr |
||||
PreReq: apache, apr |
||||
AutoReq: no |
||||
AutoReqProv: no |
||||
|
||||
%description |
||||
Apache Jakarta Tomcat webserver adapter is a glue code between the |
||||
Apache HTTP server and Apache Tomcat. This package contains the |
||||
mod_jk connector for Apache 1.3 only. |
||||
|
||||
%track |
||||
prog tomcat-adapter = { |
||||
version = %{version} |
||||
url = http://www.apache.org/dist/jakarta/tomcat-5/ |
||||
regex = (v\d+\.\d+\.\d+) |
||||
url = http://www.apache.org/dist/jakarta/tomcat-5/__NEWVER__/src/ |
||||
regex = apache-tomcat-(__VER__)-src\.tar\.gz |
||||
} |
||||
|
||||
%prep |
||||
%setup -q -n apache-tomcat-%{version}-src |
||||
chmod a+x connectors/jk/native/scripts/build/instdso.sh |
||||
|
||||
%build |
||||
( cd connectors/jk/native |
||||
sh buildconf.sh |
||||
./configure \ |
||||
--prefix=%{l_prefix} \ |
||||
--with-apr=%{l_prefix} \ |
||||
--with-apxs=%{l_prefix}/sbin/apxs \ |
||||
%if "%{with_eapi}" == "yes" |
||||
--enable-EAPI |
||||
%else |
||||
--disable-EAPI |
||||
%endif |
||||
%{l_make} %{l_mflags} LIBTOOL=$PWD/libtool |
||||
) || exit $? |
||||
|
||||
%install |
||||
rm -rf $RPM_BUILD_ROOT |
||||
|
||||
# create installation tree |
||||
%{l_shtool} mkdir -f -p -m 755 \ |
||||
$RPM_BUILD_ROOT%{l_prefix}/etc/tomcat-adapter \ |
||||
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat-adapter \ |
||||
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat-adapter |
||||
|
||||
# install config |
||||
%{l_shtool} install -c -m 644 %{l_value -s -a} \ |
||||
%{SOURCE tomcat-adapter.conf} \ |
||||
$RPM_BUILD_ROOT%{l_prefix}/etc/tomcat-adapter/ |
||||
|
||||
# install mod_jk DSO |
||||
%{l_shtool} install -c -m 755 \ |
||||
connectors/jk/native/apache-1.3/mod_jk.so \ |
||||
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat-adapter/mod_jk.so |
||||
|
||||
# determine installation files |
||||
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
||||
%{l_files_std} \ |
||||
'%config %{l_prefix}/etc/tomcat-adapter/*' |
||||
|
||||
%files -f files |
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
||||
|
||||
Loading…
Reference in new issue