head 1.67;
access;
symbols
OPENPKG_E1_MP_HEAD:1.55
OPENPKG_E1_MP:1.55
OPENPKG_E1_MP_2_STABLE:1.54.2.2
OPENPKG_E1_FP:1.54.2.2
OPENPKG_2_STABLE_MP:1.54
OPENPKG_2_STABLE_20061018:1.54.2.2
OPENPKG_2_STABLE:1.54.0.2
OPENPKG_CW_FP:1.40
OPENPKG_1_STABLE_MP:1.32;
locks; strict;
comment @-- @;
1.67
date 2009.05.30.21.21.52; author rse; state Exp;
branches;
next 1.66;
commitid VdCKcmrOqO6XpWPt;
1.66
date 2009.04.18.13.16.58; author rse; state Exp;
branches;
next 1.65;
commitid 4pHXU27WTIGCZuKt;
1.65
date 2008.07.30.16.56.45; author rse; state Exp;
branches;
next 1.64;
commitid IVWCGCwSnerQIQct;
1.64
date 2008.02.07.18.28.59; author rse; state Exp;
branches;
next 1.63;
commitid 3naD79eDxIVfPuQs;
1.63
date 2008.01.01.15.06.08; author rse; state Exp;
branches;
next 1.62;
commitid B8esaHJHoduuKILs;
1.62
date 2007.08.27.10.25.01; author rse; state Exp;
branches;
next 1.61;
commitid 5VBCYQWYRG03qnvs;
1.61
date 2007.08.27.08.50.28; author rse; state Exp;
branches;
next 1.60;
commitid atViDpPGwTHCTmvs;
1.60
date 2007.08.09.14.56.07; author rse; state Exp;
branches;
next 1.59;
commitid iRg7QchPzgLVu5ts;
1.59
date 2007.07.04.15.38.50; author rse; state Exp;
branches;
next 1.58;
commitid lazdrfMbNUCkTsos;
1.58
date 2007.07.04.15.16.48; author rse; state Exp;
branches;
next 1.57;
commitid DvZoE1zXUCCLLsos;
1.57
date 2007.07.04.13.38.11; author rse; state Exp;
branches;
next 1.56;
commitid GCQM7CilYFMWdsos;
1.56
date 2007.03.09.07.01.24; author rse; state Exp;
branches;
next 1.55;
commitid oIG3idxbCRzYMn9s;
1.55
date 2007.01.01.17.42.23; author rse; state Exp;
branches;
next 1.54;
commitid BicZD6VUl7GuqP0s;
1.54
date 2006.10.13.17.34.53; author thl; state Exp;
branches
1.54.2.1;
next 1.53;
commitid q5GSxzsSDX29XxQr;
1.53
date 2006.09.28.15.11.16; author cs; state Exp;
branches;
next 1.52;
commitid hmsPDE1guQFTHBOr;
1.52
date 2006.08.25.19.20.07; author rse; state Exp;
branches;
next 1.51;
commitid Tvsj1UyQ8rQ89gKr;
1.51
date 2006.04.15.07.18.46; author rse; state Exp;
branches;
next 1.50;
commitid gwN9o2OBsgFCqetr;
1.50
date 2006.03.05.09.00.45; author rse; state Exp;
branches;
next 1.49;
commitid xf6BOdWOxYujjYnr;
1.49
date 2006.01.03.20.42.08; author rse; state Exp;
branches;
next 1.48;
commitid 34CgPREKfMNu9cgr;
1.48
date 2006.01.01.13.23.21; author rse; state Exp;
branches;
next 1.47;
commitid otZG8yKMCw1JFTfr;
1.47
date 2005.12.07.08.42.24; author cs; state Exp;
branches;
next 1.46;
commitid QMPRI3FgXqoo2Fcr;
1.46
date 2005.12.01.07.28.44; author rse; state Exp;
branches;
next 1.45;
commitid B09RXrVeRbj5PSbr;
1.45
date 2005.10.07.07.40.59; author rse; state Exp;
branches;
next 1.44;
1.44
date 2005.08.22.17.27.47; author cs; state Exp;
branches;
next 1.43;
1.43
date 2005.07.24.05.26.36; author rse; state Exp;
branches;
next 1.42;
1.42
date 2005.04.08.19.20.16; author rse; state Exp;
branches;
next 1.41;
1.41
date 2005.03.24.11.20.32; author rse; state Exp;
branches;
next 1.40;
1.40
date 2005.01.01.10.55.22; author rse; state Exp;
branches;
next 1.39;
1.39
date 2004.09.11.11.55.15; author rse; state Exp;
branches;
next 1.38;
1.38
date 2004.07.30.14.03.05; author ms; state Exp;
branches;
next 1.37;
1.37
date 2004.02.07.17.59.22; author rse; state Exp;
branches;
next 1.36;
1.36
date 2004.02.03.20.06.57; author rse; state Exp;
branches;
next 1.35;
1.35
date 2004.01.23.13.14.50; author rse; state Exp;
branches;
next 1.34;
1.34
date 2003.11.26.11.43.28; author ms; state Exp;
branches;
next 1.33;
1.33
date 2003.09.08.12.12.07; author ms; state Exp;
branches;
next 1.32;
1.32
date 2003.07.23.13.32.25; author rse; state Exp;
branches;
next 1.31;
1.31
date 2003.07.22.08.11.15; author rse; state Exp;
branches;
next 1.30;
1.30
date 2003.07.19.17.06.37; author rse; state Exp;
branches;
next 1.29;
1.29
date 2003.07.17.15.33.26; author thl; state Exp;
branches;
next 1.28;
1.28
date 2003.07.11.09.43.47; author rse; state Exp;
branches;
next 1.27;
1.27
date 2003.07.10.07.51.15; author rse; state Exp;
branches;
next 1.26;
1.26
date 2003.07.09.14.06.28; author thl; state Exp;
branches;
next 1.25;
1.25
date 2003.07.08.14.42.54; author rse; state Exp;
branches;
next 1.24;
1.24
date 2003.04.05.18.40.46; author rse; state Exp;
branches;
next 1.23;
1.23
date 2003.02.18.14.07.26; author mlelstv; state Exp;
branches;
next 1.22;
1.22
date 2003.02.18.11.15.20; author mlelstv; state Exp;
branches;
next 1.21;
1.21
date 2003.02.03.14.11.09; author mlelstv; state Exp;
branches;
next 1.20;
1.20
date 2003.01.31.23.39.07; author mlelstv; state Exp;
branches;
next 1.19;
1.19
date 2003.01.08.15.22.33; author rse; state Exp;
branches;
next 1.18;
1.18
date 2003.01.03.10.55.20; author rse; state Exp;
branches;
next 1.17;
1.17
date 2002.12.30.22.07.18; author rse; state Exp;
branches;
next 1.16;
1.16
date 2002.12.30.21.07.20; author rse; state Exp;
branches;
next 1.15;
1.15
date 2002.12.20.19.33.44; author rse; state Exp;
branches;
next 1.14;
1.14
date 2002.11.22.09.56.46; author rse; state Exp;
branches;
next 1.13;
1.13
date 2002.08.13.12.50.14; author rse; state Exp;
branches;
next 1.12;
1.12
date 2002.05.29.20.02.40; author rse; state Exp;
branches;
next 1.11;
1.11
date 2002.02.07.14.35.43; author rse; state Exp;
branches;
next 1.10;
1.10
date 2002.01.03.10.08.39; author rse; state Exp;
branches;
next 1.9;
1.9
date 2002.01.02.10.53.03; author rse; state Exp;
branches;
next 1.8;
1.8
date 2001.12.31.15.00.56; author rse; state Exp;
branches;
next 1.7;
1.7
date 2001.12.27.15.01.01; author rse; state Exp;
branches;
next 1.6;
1.6
date 2001.12.27.14.52.47; author rse; state Exp;
branches;
next 1.5;
1.5
date 2001.12.22.16.26.51; author rse; state Exp;
branches;
next 1.4;
1.4
date 2001.12.22.16.22.00; author rse; state Exp;
branches;
next 1.3;
1.3
date 2001.12.22.16.19.05; author rse; state Exp;
branches;
next 1.2;
1.2
date 2001.12.22.16.18.33; author rse; state Exp;
branches;
next 1.1;
1.1
date 2001.12.22.14.19.46; author rse; state Exp;
branches;
next ;
1.54.2.1
date 2006.10.13.17.34.53; author rse; state dead;
branches;
next 1.54.2.2;
commitid iZxwRSmmWscPXUQr;
1.54.2.2
date 2006.10.16.14.57.19; author rse; state Exp;
branches;
next ;
commitid iZxwRSmmWscPXUQr;
desc
@@
1.67
log
@upgrading package: tomcat 6.0.18 -> 6.0.20
@
text
@##
## tomcat.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## 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
Summary: Apache Jakarta Tomcat
URL: http://jakarta.apache.org/tomcat/
Vendor: Apache Software Foundation
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Web
License: Apache Software License 2.0
Version: 6.0.20
Release: 20090530
# list of sources
Source0: http://www.apache.org/dist/tomcat/tomcat-6/v%{version}/bin/apache-tomcat-%{version}.tar.gz
Source1: rc.tomcat
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823
PreReq: OpenPKG, openpkg >= 20060823, java, JAVA-JDK
AutoReq: no
AutoReqProv: no
%description
Apache Jakarta Tomcat is the reference implementation of both a Java
Servlet API 2.5 and JSP Specification 2.1 compliant container.
%track
prog tomcat = {
version = %{version}
url = http://www.apache.org/dist/tomcat/tomcat-6/
regex = (v\d+\.\d+\.\d+)
url = http://www.apache.org/dist/tomcat/tomcat-6/__NEWVER__/bin/
regex = apache-tomcat-(\d+\.\d+\.\d+)\.tar\.gz
}
%prep
%setup -q -n apache-tomcat-%{version}
%build
%install
rm -rf $RPM_BUILD_ROOT
# create installation tree
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
$RPM_BUILD_ROOT%{l_prefix}/etc/tomcat \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat \
$RPM_BUILD_ROOT%{l_prefix}/share/tomcat/doc \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/log \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/temp \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/work
# unpack vendor distribution and relocate to final location
%{l_tar} -cf - \
bin/*.sh bin/*.jar conf lib webapps |\
( umask 022
cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/
%{l_tar} -xf -
) || exit $?
# relocate configuration directory
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/conf/* \
$RPM_BUILD_ROOT%{l_prefix}/etc/tomcat/
rmdir \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/conf
ln -s \
%{l_prefix}/etc/tomcat \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/conf
# relocate web application directory
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/webapps \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/webapps
ln -s \
%{l_prefix}/var/tomcat/webapps \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/webapps
# relocate working directory
ln -s \
%{l_prefix}/var/tomcat/work \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/work
# relocate logfile and temporary directory
%{l_shtool} subst \
-e 's;directory="logs";directory="%{l_prefix}/var/tomcat/log";' \
$RPM_BUILD_ROOT%{l_prefix}/etc/tomcat/server.xml
%{l_shtool} subst \
-e 's;"$CATALINA_BASE"/temp;%{l_prefix}/var/tomcat/temp;' \
-e 's;"$CATALINA_BASE"/logs;%{l_prefix}/var/tomcat/log;' \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/bin/catalina.sh
# make scripts executable
chmod 755 $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/bin/*
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.tomcat} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# determine package files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/log' \
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/temp' \
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/work' \
'%dir %attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/tomcat' \
'%config %attr(644,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/tomcat/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
if [ $1 -eq 2 ]; then
eval `%{l_rc} tomcat status 2>/dev/null`
[ ".$tomcat_active" = .yes ] && %{l_rc} tomcat restart
fi
exit 0
%preun
if [ $1 -eq 0 ]; then
# before erase, stop service and remove log files
%{l_rc} tomcat stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/tomcat/log/*
rm -rf $RPM_INSTALL_PREFIX/var/tomcat/temp/*
rm -rf $RPM_INSTALL_PREFIX/var/tomcat/work/*
fi
exit 0
@
1.66
log
@bump years in copyright messages
@
text
@d34 2
a35 2
Version: 6.0.18
Release: 20080730
@
1.65
log
@upgrading package: tomcat 6.0.16 -> 6.0.18
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.64
log
@upgrading package: tomcat 6.0.14 -> 6.0.16
@
text
@d34 2
a35 2
Version: 6.0.16
Release: 20080207
@
1.63
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d34 2
a35 2
Version: 6.0.14
Release: 20080101
@
1.62
log
@use new virtual target JAVA-JDK to require a real JDK as the backend for 'java'
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d35 1
a35 1
Release: 20070827
@
1.61
log
@switch to new Java toolkit world order
@
text
@d46 1
a46 1
PreReq: OpenPKG, openpkg >= 20060823, java, java-jdk15
@
1.60
log
@upgrading package: tomcat 6.0.13 -> 6.0.14
@
text
@d36 1
a36 1
Release: 20070809
d46 1
a46 1
PreReq: OpenPKG, openpkg >= 20060823, j2se >= 1.5
@
1.59
log
@work-off packaging of Tomcat
@
text
@d35 2
a36 2
Version: 6.0.13
Release: 20070704
@
1.58
log
@cleanup packaging
@
text
@d74 1
d89 5
a93 12
# move ${jkHome}/conf to var
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/conf \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/conf
# move ${jkHome}/webapps to var
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/webapps \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/webapps
# provide symlink for ${jkHome}/{work,conf,webapps}
ln -s \
%{l_prefix}/var/tomcat/work \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/work
d95 1
a95 1
%{l_prefix}/var/tomcat/conf \
d97 4
d105 6
a110 1
# patch paths for logs and temp
d113 1
a113 1
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/conf/server.xml
a125 5
# locate conf directory through /etc
ln -s \
%{l_prefix}/var/tomcat/conf \
$RPM_BUILD_ROOT%{l_prefix}/etc/tomcat
d132 2
a133 2
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/conf' \
'%config %attr(644,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/conf/*'
a154 1
rm -f $RPM_INSTALL_PREFIX/var/tomcat/conf/jk2.properties.save
@
1.57
log
@upgrading package: tomcat 5.5.23 -> 6.0.13
@
text
@d82 1
a82 1
bin/*.sh bin/*.jar common conf server shared webapps |\
d108 1
a108 1
%{l_shtool} -d subst \
@
1.56
log
@upgrading package: tomcat 5.5.20 -> 5.5.23
@
text
@d34 3
a36 3
License: Apache Software License 1.1
Version: 5.5.23
Release: 20070309
d39 1
a39 1
Source0: http://www.apache.org/dist/tomcat/tomcat-5/v%{version}/bin/apache-tomcat-%{version}.tar.gz
d51 2
a52 2
Apache Jakarta Tomcat is the reference implementation of both a
Servlet API 2.4 and JSP Specification 2.0 compliant container.
d57 1
a57 1
url = http://www.apache.org/dist/tomcat/tomcat-5/
d59 1
a59 1
url = http://www.apache.org/dist/tomcat/tomcat-5/__NEWVER__/bin/
@
1.55
log
@Welcome Year 2007!
@
text
@d35 2
a36 2
Version: 5.5.20
Release: 20061013
@
1.54
log
@new world order for "Packager" and "Distribution" headers
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.54.2.1
log
@file tomcat.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:57:19 +0000
@
text
@d1 160
@
1.54.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 160
##
## tomcat.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
##
## 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
Summary: Apache Jakarta Tomcat
URL: http://jakarta.apache.org/tomcat/
Vendor: Apache Software Foundation
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Web
License: Apache Software License 1.1
Version: 5.5.20
Release: 2.20061018
# list of sources
Source0: http://www.apache.org/dist/tomcat/tomcat-5/v%{version}/bin/apache-tomcat-%{version}.tar.gz
Source1: rc.tomcat
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018
PreReq: OpenPKG, openpkg >= 2.20061018, j2se >= 1.5
AutoReq: no
AutoReqProv: no
%description
Apache Jakarta Tomcat is the reference implementation of both a
Servlet API 2.4 and JSP Specification 2.0 compliant container.
%track
prog tomcat = {
version = %{version}
url = http://www.apache.org/dist/tomcat/tomcat-5/
regex = (v\d+\.\d+\.\d+)
url = http://www.apache.org/dist/tomcat/tomcat-5/__NEWVER__/bin/
regex = apache-tomcat-(\d+\.\d+\.\d+)\.tar\.gz
}
%prep
%setup -q -n apache-tomcat-%{version}
%build
%install
rm -rf $RPM_BUILD_ROOT
# create installation tree
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat \
$RPM_BUILD_ROOT%{l_prefix}/share/tomcat/doc \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/log \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/temp \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/work
# unpack vendor distribution and relocate to final location
%{l_tar} -cf - \
bin/*.sh bin/*.jar common conf server shared webapps |\
( umask 022
cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/
%{l_tar} -xf -
) || exit $?
# move ${jkHome}/conf to var
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/conf \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/conf
# move ${jkHome}/webapps to var
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/webapps \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/webapps
# provide symlink for ${jkHome}/{work,conf,webapps}
ln -s \
%{l_prefix}/var/tomcat/work \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/work
ln -s \
%{l_prefix}/var/tomcat/conf \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/conf
ln -s \
%{l_prefix}/var/tomcat/webapps \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/webapps
# patch paths for logs and temp
%{l_shtool} -d subst \
-e 's;directory="logs";directory="%{l_prefix}/var/tomcat/log";' \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/conf/server.xml
%{l_shtool} subst \
-e 's;"$CATALINA_BASE"/temp;%{l_prefix}/var/tomcat/temp;' \
-e 's;"$CATALINA_BASE"/logs;%{l_prefix}/var/tomcat/log;' \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/bin/catalina.sh
# make scripts executable
chmod 755 $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/bin/*
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.tomcat} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# locate conf directory through /etc
ln -s \
%{l_prefix}/var/tomcat/conf \
$RPM_BUILD_ROOT%{l_prefix}/etc/tomcat
# determine package files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/log' \
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/temp' \
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/work' \
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/conf' \
'%config %attr(644,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/conf/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
if [ $1 -eq 2 ]; then
eval `%{l_rc} tomcat status 2>/dev/null`
[ ".$tomcat_active" = .yes ] && %{l_rc} tomcat restart
fi
exit 0
%preun
if [ $1 -eq 0 ]; then
# before erase, stop service and remove log files
%{l_rc} tomcat stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/tomcat/log/*
rm -rf $RPM_INSTALL_PREFIX/var/tomcat/temp/*
rm -rf $RPM_INSTALL_PREFIX/var/tomcat/work/*
rm -f $RPM_INSTALL_PREFIX/var/tomcat/conf/jk2.properties.save
fi
exit 0
@
1.53
log
@upgrading package: tomcat 5.5.17 -> 5.5.20
@
text
@d30 2
a31 2
Packager: OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release: 20060928
@
1.52
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@d35 2
a36 2
Version: 5.5.17
Release: 20060825
@
1.51
log
@upgrading package: tomcat 5.5.16 -> 5.5.17
@
text
@d36 1
a36 1
Release: 20060415
d45 2
a46 2
BuildPreReq: OpenPKG, openpkg >= 20040130
PreReq: OpenPKG, openpkg >= 20040130, j2se >= 1.5
@
1.50
log
@upgrading package: tomcat 5.5.15 -> 5.5.16
@
text
@d35 2
a36 2
Version: 5.5.16
Release: 20060305
@
1.49
log
@upgrading package: tomcat 5.5.14 -> 5.5.15
@
text
@d35 2
a36 2
Version: 5.5.15
Release: 20060103
@
1.48
log
@adjust copyrights for new year 2006
@
text
@d35 2
a36 2
Version: 5.5.14
Release: 20051207
@
1.47
log
@upgrading package: tomcat 5.5.13 -> 5.5.14
@
text
@d3 2
a4 2
## Copyright (c) 2000-2005 OpenPKG Foundation e.V.
## Copyright (c) 2000-2005 Ralf S. Engelschall
@
1.46
log
@upgrading package: tomcat 5.5.12 -> 5.5.13
@
text
@d35 2
a36 2
Version: 5.5.13
Release: 20051201
@
1.45
log
@upgrading package: tomcat 5.5.11 -> 5.5.12
@
text
@d35 2
a36 2
Version: 5.5.12
Release: 20051007
d39 1
a39 1
Source0: http://www.apache.org/dist/jakarta/tomcat-5/v%{version}/bin/apache-tomcat-%{version}.tar.gz
d57 1
a57 1
url = http://www.apache.org/dist/jakarta/tomcat-5/
d59 1
a59 1
url = http://www.apache.org/dist/jakarta/tomcat-5/__NEWVER__/bin/
@
1.44
log
@upgrading package: tomcat 5.5.10 -> 5.5.11
@
text
@d35 2
a36 2
Version: 5.5.11
Release: 20050822
d39 1
a39 1
Source0: http://www.apache.org/dist/jakarta/tomcat-5/v%{version}/bin/jakarta-tomcat-%{version}.tar.gz
d60 1
a60 1
regex = jakarta-tomcat-(\d+\.\d+\.\d+)\.tar\.gz
d64 1
a64 1
%setup -q -n jakarta-tomcat-%{version}
@
1.43
log
@upgrading package: tomcat 5.5.9 -> 5.5.10
@
text
@d35 2
a36 2
Version: 5.5.10
Release: 20050724
@
1.42
log
@upgrading package: tomcat 3.3.1a -> 5.5.9
@
text
@d35 2
a36 2
Version: 5.5.9
Release: 20050408
@
1.41
log
@Adjust the copyright declaration in this (RSE's) copy of the OpenPKG
source code now that the fork point for C&W was established (CVS tag
OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is
no longer active (as C&W no longer officially sponsors OpenPKG) and the
new shared copyright from RSE can be taken over by the newly established
juristic entity OpenPKG Foundation e.V. (instead of the non-juristic
entity OpenPKG Project).
@
text
@d28 1
a28 1
URL: http://jakarta.apache.org/
d35 2
a36 2
Version: 3.3.1a
Release: 20040911
d39 1
a39 1
Source0: http://www.apache.org/dist/jakarta/tomcat-3/src/jakarta-tomcat-%{version}.tar.gz
a40 1
Source2: tomcat.patch
d46 1
a46 1
PreReq: OpenPKG, openpkg >= 20040130, JRE
d51 2
a52 3
Apache Jakarta Tomcat %{version} is a complete rewrite of Jserv and
supplies the functionality of both a Servlet API 2.2 and a JSP 1.1
compliant container.
d57 4
a60 2
url = http://www.apache.org/dist/jakarta/tomcat-3/src/
regex = jakarta-tomcat-(\d+\.\d+\.\w+)-src\.tar\.gz
d77 1
d81 4
a84 4
%{l_tar} -cf - --exclude lib/test \
bin/*.sh conf lib webapps |\
( umask 022; \
cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/; \
d88 1
a88 7
# patch vendor distribution
( cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat
cat %{SOURCE tomcat.patch} |\
sed -e 's;@@l_prefix@@;%{l_prefix};g' | %{l_patch} -p0
) || exit $?
# move conf to var
d92 1
a92 1
# move webapps to var
d96 4
a99 1
# provide symlinks for conf,webapps,work,logs to var
d106 9
a114 6
ln -s \
%{l_prefix}/var/tomcat/log \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/logs
ln -s \
%{l_prefix}/var/tomcat/work \
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/work
d121 1
a121 2
%{SOURCE rc.tomcat} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
d123 3
a125 2
# reach config files through etc
mv $RPM_BUILD_ROOT%{l_prefix}/var/tomcat/conf \
a126 1
ln -s %{l_prefix}/etc/tomcat $RPM_BUILD_ROOT%{l_prefix}/var/tomcat/conf
d128 1
a130 1
'%config %attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/tomcat/*' \
d132 1
d134 2
a135 2
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/webapps' \
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/conf'
d155 1
d157 1
a157 7
rm -rf $RPM_INSTALL_PREFIX/var/tomcat/conf/*.id
# remove "deployed" webapps
for i in $RPM_INSTALL_PREFIX/var/tomcat/webapps/*; do
if test -d $i ; then
rm -rf $i
fi
done
@
1.40
log
@Happy New Year 2005
@
text
@d2 3
a4 4
## tomcat.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2005 The OpenPKG Project
## Copyright (c) 2000-2005 Ralf S. Engelschall
## Copyright (c) 2000-2005 Cable & Wireless
d30 1
a30 1
Packager: The OpenPKG Project
@
1.39
log
@fix regex
@
text
@d3 3
a5 3
## Copyright (c) 2000-2004 The OpenPKG Project
## Copyright (c) 2000-2004 Ralf S. Engelschall
## Copyright (c) 2000-2004 Cable & Wireless
@
1.38
log
@apply fixsimilar to http://cvs.openpkg.org/chngview?cn=17929, restarting daemons unconditionally when any logfile rotation happens
@
text
@d37 1
a37 1
Release: 20040730
d61 1
a61 1
regex = jakarta-tomcat-(\d+\.\d+\.\w+)-src.tar.gz
@
1.37
log
@Mass Commit:
reduce redundancy within .spec files by referencing
macros defining vendor source versions whenever possible.
This was half-way automated and half-way manually edited.
As a result the PMOD activity in 95% of all cases
just means editing the version in one single place, only.
@
text
@d37 1
a37 1
Release: 20040207
@
1.36
log
@Mass-Commit:
- split "Distribution" header into "Distribution" (old) and "Class"
(new) headers by moving the attached class information.
- embed the vendor version tracking configuration through the
new "%track" section.
- bump up the OpenPKG bootstrap dependency, because the "Class" header
and "%track" section are only supported by our latest bootstrap version.
@
text
@d37 1
a37 1
Release: 20040203
d59 1
a59 1
version = 3.3.1a
@
1.35
log
@bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally
@
text
@d32 2
a33 1
Distribution: OpenPKG [EVAL]
d37 1
a37 1
Release: 20031126
d47 2
a48 2
BuildPreReq: OpenPKG, openpkg >= 20030718
PreReq: OpenPKG, openpkg >= 20030718, JRE
d56 7
@
1.34
log
@Implement PR #202
@
text
@d3 3
a5 3
## Copyright (c) 2000-2003 The OpenPKG Project
## Copyright (c) 2000-2003 Ralf S. Engelschall
## Copyright (c) 2000-2003 Cable & Wireless
@
1.33
log
@Corrected vcheck regex and updated URL (old one was a redirect)
@
text
@d36 1
a36 1
Release: 20030908
d134 8
d144 2
a145 1
# remove log files
d156 1
@
1.32
log
@achieve robust subshell handling by consistently using '(...) || exit 0' constructs to make sure the scripts fail if a subshell fails
@
text
@d36 1
a36 1
Release: 20030723
d39 1
a39 1
Source0: http://jakarta.apache.org/builds/jakarta-tomcat/release/v%{version}/bin/jakarta-tomcat-%{version}.tar.gz
@
1.31
log
@cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies
@
text
@d36 1
a36 1
Release: 20030722
d75 4
a78 3
( umask 022; \
cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/; \
%{l_tar} -xf - )
d81 4
a84 4
( cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat
cat %{SOURCE tomcat.patch} |\
sed -e 's;@@l_prefix@@;%{l_prefix};g' | %{l_patch} -p0
)
@
1.30
log
@replace opXXXX with rcXXXX (PR#207)
@
text
@d36 1
a36 1
Release: 20030719
@
1.29
log
@fix PR#204, use new %{l_value -s ...}
@
text
@d36 1
a36 1
Release: 20030717
d46 2
a47 2
BuildPreReq: OpenPKG, openpkg >= 20030717
PreReq: OpenPKG, openpkg >= 20030717, JRE
@
1.28
log
@place config stuff physically into etc and use symlink in var
@
text
@d36 1
a36 1
Release: 20030711
d46 2
a47 2
BuildPreReq: OpenPKG, openpkg >= 20030710
PreReq: OpenPKG, openpkg >= 20030710, JRE
d111 1
a111 3
%{l_shtool} install -c -m 755 \
-e 's;@@l_prefix@@;%{l_prefix};g' \
-e 's;@@l_rusr@@;%{l_rusr};g' \
@
1.27
log
@use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable
@
text
@d36 1
a36 1
Release: 20030710
d118 1
a118 2
ln -s \
%{l_prefix}/var/tomcat/conf \
d120 1
d124 1
d128 1
a128 2
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/conf' \
'%config %attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/conf/*'
@
1.26
log
@rclint police: fix badly prefixed variable, opServiceEnabled, exit not allowed here
@
text
@d36 1
a36 1
Release: 20030709
d46 2
a47 2
BuildPreReq: OpenPKG, openpkg >= 20021120
PreReq: OpenPKG, openpkg >= 20021120, JRE
@
1.25
log
@cleanup copyright part by using just the main company name of Cable & Wireless and adding the URL to the global website
@
text
@d36 1
a36 1
Release: 20030405
@
1.24
log
@speclint police
@
text
@a2 1
## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
d5 1
@
1.23
log
@configfiles + etc helper
@
text
@d36 1
a36 1
Release: 20030218
d128 1
a128 1
'%config %attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/conf/*' \
@
1.22
log
@reviving tomcat 3
@
text
@d117 5
d126 1
d128 1
a128 1
'%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/tomcat/webapps'
@
1.21
log
@junk me, I'm an old fish
@
text
@d32 1
a32 1
Distribution: OpenPKG [JUNK]
d36 1
a36 1
Release: 20030203
d69 2
a70 1
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat/log
d85 22
d111 5
a115 2
%{l_shtool} install -c -m 755 -e 's;@@l_prefix@@;%{l_prefix};g' \
%{SOURCE rc.tomcat} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
d119 4
a122 1
'%config %{l_prefix}/etc/tomcat/*'
d128 14
@
1.20
log
@upgrade 3.2.4 to 3.3.1a, see http://online.securityfocus.com/archive/1/309330
@
text
@d32 1
a32 1
Distribution: OpenPKG [EVAL]
d36 1
a36 1
Release: 20030201
@
1.19
log
@switch to JRE
@
text
@d35 2
a36 2
Version: 3.2.4
Release: 20030108
d73 1
a73 1
bin/*.sh bin/ant bin/antRun conf lib src webapps |\
@
1.18
log
@remove '%options' hack, it will be replaced soon with a more elegant solution based on RPM 'Provides' headers
@
text
@d36 1
a36 1
Release: 20021122
d47 1
a47 1
PreReq: OpenPKG, openpkg >= 20021120, JDK
@
1.17
log
@bump of Copyright messages for forthcoming years 2003
@
text
@a55 2
%options
@
1.16
log
@switch to %option(s), but intentionally WITHOUT dep increase and WITHOUT FTP server updates
@
text
@d3 3
a5 2
## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2002 Ralf S. Engelschall
@
1.15
log
@consistently use 'Options: none' to indicate no options to 'openpkg build'
@
text
@d55 1
a55 1
Options: none
@
1.14
log
@reduce dependencies
@
text
@d55 2
@
1.13
log
@Woohhooo: apply the new package classification system.
(CORE, BASE, PLUS, PRIV, EVAL, JUNK). A description of
them follows on the website soon.
@
text
@d35 1
a35 1
Release: 20020206
d45 2
a46 2
BuildPreReq: OpenPKG, openpkg >= 20020206, tar, patch
PreReq: OpenPKG, openpkg >= 20020206, JDK
d71 1
a71 1
%{l_prefix}/bin/tar -cf - --exclude lib/test \
d75 1
a75 1
%{l_prefix}/bin/tar -xf - )
d80 1
a80 2
sed -e 's;@@l_prefix@@;%{l_prefix};g' |\
%{l_prefix}/bin/patch -p0
@
1.12
log
@strip trailing whitespaces
@
text
@d31 1
a31 1
Distribution: OpenPKG [EXP]
@
1.11
log
@bump release
@
text
@d22 2
a23 2
## SUCH DAMAGE.
##
@
1.10
log
@enhance tomcat run-command script
@
text
@d35 1
a35 1
Release: 20020103
d45 2
a46 2
BuildPreReq: OpenPKG, openpkg >= 20011227, tar, patch
PreReq: OpenPKG, openpkg >= 20011227, JDK
@
1.9
log
@tag config files as such
@
text
@d35 1
a35 1
Release: 20020102
@
1.8
log
@bump copyright years
@
text
@d35 1
a35 1
Release: 20011227
d91 3
a93 1
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
@
1.7
log
@fix dependencies in -CURRENT now that we have the new scheme
@
text
@d3 2
a4 2
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 Ralf S. Engelschall
@
1.6
log
@fix requirements
@
text
@d45 2
a46 2
BuildPreReq: OpenPKG, openpkg >= 20011201, tar, patch
PreReq: OpenPKG, openpkg >= 20011201, JDK
@
1.5
log
@avoid changing the OpenPKG sources in place
@
text
@d35 1
a35 1
Release: 20011222
d45 2
a46 2
BuildPreReq: OpenPKG, openpkg >= 20011107, tar, patch
PreReq: OpenPKG, openpkg >= 20011107, JDK
@
1.4
log
@style cleanup
@
text
@d79 3
a81 4
%{l_rpmtool} subst \
's;@@l_prefix@@;%{l_prefix};g' \
-- %{SOURCE tomcat.patch}
%{l_prefix}/bin/patch -p0 < %{SOURCE tomcat.patch}
@
1.3
log
@add missing file
@
text
@d72 3
a74 2
bin/*.sh bin/ant bin/antRun conf lib src webapps \
| ( umask 022; cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat/; \
d79 2
a80 1
%{l_rpmtool} subst 's;@@l_prefix@@;%{l_prefix};g' \
@
1.2
log
@remove 3.2 from package name
@
text
@d40 1
@
1.1
log
@New package: tomcat
very crude package, experimental version. Some thing still open like
relocation of "work" directory to something like %{l_prefix}/var/tomcat3.2/run
@
text
@d2 1
a2 1
## tomcat3.2.spec -- OpenPKG RPM Specification
d26 1
a26 1
Name: tomcat3.2
d35 1
a35 1
Release: 20011220
d39 1
a39 1
Source1: rc.tomcat3.2
d65 3
a67 3
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat3.2 \
$RPM_BUILD_ROOT%{l_prefix}/share/tomcat3.2/doc \
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat3.2/log
d72 1
a72 1
| ( umask 022; cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat3.2/; \
d76 1
a76 1
( cd $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat3.2
d78 2
a79 2
-- %{SOURCE tomcat3.2.patch}
%{l_prefix}/bin/patch -p0 < %{SOURCE tomcat3.2.patch}
d83 1
a83 1
chmod 755 $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat3.2/bin/*
d87 1
a87 1
%{SOURCE rc.tomcat3.2} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
@