the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: tomcat4
Version: 4.1.40
Revision: 1
Type: java(1.4)
CustomMirror: <<
Primary: http://ranger.users.finkproject.org/distfiles
eur-NL: http://ranger.users.finkproject.org/distfiles
nam-US: http://ranger.befunk.com/fink
nam-US: http://astrange.ithinksw.net/~astrange/ranger-fink
nam-CA: http://www.southofheaven.net/befunk
<<
Source: mirror:apache:tomcat/tomcat-4/v%v/bin/apache-tomcat-%v-LE-jdk14.tar.gz
Source-MD5: b509a541c84a9170e1e01fbf3c45a577
PatchFile: %n.patch
PatchFile-MD5: 13216b19fc3b18734a6ee571e16dbf2c
PatchScript: sed -e 's:@PREFIX@:%p:g' < %{PatchFile} | patch -p1
BuildDepends: fink (>= 0.24.12), passwd (>= 20070108-1)
Depends: passwd (>= 20070108-1), system-java (>= 1.4-1), daemonic
ConfFiles: <<
%p/etc/%N/tomcat.conf
%p/var/%N/conf/catalina.policy
%p/var/%N/conf/jk2.properties
%p/var/%N/conf/server-noexamples.xml.config
%p/var/%N/conf/server.xml
%p/var/%N/conf/tomcat-users.xml
%p/var/%N/conf/web.xml
<<
Conflicts: tomcat (<< 4.1.30-1), tomcat5, tomcat6
Replaces: tomcat (<< 4.1.30-1)
Provides: tomcat
CompileScript: <<
rsync -avr --exclude=dist ./ dist/
<<
InstallScript: <<
#!/bin/sh -ex
# main install
install -d -m 755 %i/var/%N
cp -R dist/* %i/var/%N/
# scripts
rm -rf %i/var/%N/bin/*.bat
install -d -m 755 %i/bin
install -c -m 755 tomcat %i/bin/%N
# fix up perms
find %i/var/%N -type d -exec chmod 755 {} \;
find %i/var/%N -type f -exec chmod 644 {} \;
chmod 755 %i/var/%N/bin/*.sh
chown -R tomcat:tomcat %i/var/%N
# docs
install -d -m 755 %i/share/doc/%N
mv %i/var/%N/*.txt %i/var/%N/LICENSE %i/share/doc/%N/
# logs
install -d -m 755 %i/var/log
chown tomcat:tomcat %i/var/log
chmod 755 %i/var/log
ln -sf %p/var/%N/logs %i/var/log/%N
# web apps
install -d -m 755 %i/share/webapps
mv %i/var/%N/webapps/* %i/share/webapps/
rmdir %i/var/%N/webapps
pushd %i/var/%N
ln -sf ../../share/webapps webapps
popd
# configuration files
install -d -m 755 %i/etc/%N
install -m 644 tomcat.conf %i/etc/%N/
# misc
sudo chmod 0775 %i/share/webapps/* %i/var/%N/logs
<<
DaemonicFile: <<
<<
PostInstScript: <<
# update daemonic init script if necessary
[ -x %p/bin/daemonic ] && daemonic install %N
<<
PreRmScript: <<
# clean up
if [ $1 != "upgrade" ] && [ -x %p/bin/daemonic ]; then
daemonic remove %N
rm -rf %p/%N/work/*
rm -rf %p/%N/logs/*
fi
<<
Recommends: %N-webapps
SplitOff: <<
Package: %N-webapps
Files: share/webapps
Depends: %N (>= %v-%r)
Conflicts: tomcat5-webapps
Replaces: tomcat, tomcat4, tomcat5, tomcat5-webapps
ConfFiles: <<
%p/share/webapps/admin.xml
%p/share/webapps/manager.xml
<<
<<
Homepage: http://tomcat.apache.org/
Maintainer: elcepi
Description: Java Servlet 2.3 Container and Web Server
DescDetail: <<
Tomcat is the servlet container that is used in the official Reference
Implementation for the Java Servlet and JavaServer Pages technologies.
The Java Servlet and JavaServer Pages specifications are developed by
Sun under the Java Community Process.
Tomcat 4.0 implements a new servlet container (called Catalina) that is
based on completely new architecture. The 4.0 release implements the
Servlet 2.3 and JSP 1.2 specifications.
Tomcat is configured to start on port 8080 by default.
<<
DescPackaging: <<
Tomcat is designed to be somewhat self-contained, and so does not fit
the fink (and debian, for that matter) packaging guidelines. I followed
the way it's set up in the RedHat packages and put it in /var/tomcat4
(I think debian does it this way as well.)
It is not possible to build it using the --build-as-nobody flag since
it needs to change the ownership of the files to user tomcat:tomcat
<<
DescUsage: <<
To start, stop, or restart Tomcat, do:
sudo -u tomcat %p/bin/%N
To enable Tomcat to start upon bootup, issue the command:
sudo daemonic enable %N
<<
License: BSD