Commits

Christopher Chavez authored and Frank Schima committed dbe1e2f68ee
tomcat5: delete outdated and EOL port

Port has been outdated as early as 2008. Tomcat5 was end-of-lifed in 2012, and may have security issues only addressed in later Tomcat versions. Closes: https://trac.macports.org/ticket/14222 Closes: https://trac.macports.org/ticket/25740
No tags

java/tomcat5/files/conf_setup.sh

Deleted
1 -#!/bin/sh
2 -#
3 -# conf_setup.sh
4 -#
5 -# This file performs a self-repair sanity check on the tomcat configuration files.
6 -# Any critical files that are missing will be replaced by sample files. This is
7 -# particularly useful in first-run situations.
8 -#
9 -# Note that no effort is made to ensure the validity of file contents.
10 -#
11 -
12 -PRG=`basename $0`
13 -
14 -# Look for $CATALINA_BASE
15 -if [ -z "$CATALINA_BASE" -o ! -d "$CATALINA_BASE" ]; then
16 - echo "$PRG: CATALINA_BASE must be set in my environment"
17 - exit 1
18 -fi
19 -
20 -# Look for $CATALINA_BASE/conf
21 -CONF="${CATALINA_BASE}/conf"
22 -if [ ! -d "${CONF}" ]; then
23 - echo "$PRG: ${CONF} directory not found!"
24 - exit 1
25 -fi
26 -
27 -CONF_FILES=" \
28 - conf/catalina.policy \
29 - conf/catalina.properties \
30 - conf/server.xml \
31 - conf/tomcat-users.xml \
32 - conf/web.xml \
33 - conf/setenv.local \
34 - "
35 -
36 -# Try to repair any needed files in conf
37 -for FILE in $CONF_FILES; do
38 - SAMPLE="${FILE}.sample"
39 - if [ ! -f "${CATALINA_BASE}/${FILE}" ]; then
40 - if [ ! -f "${CATALINA_BASE}/${SAMPLE}" ]; then
41 - echo "$PRG: file ${FILE} is missing, but no corresponding ${SAMPLE} file was found to repair it!"
42 - else
43 - echo "$PRG: file ${FILE} is missing; copying ${SAMPLE} to its place."
44 - cp -p "${CATALINA_BASE}/${SAMPLE}" "${CATALINA_BASE}/${FILE}"
45 - fi
46 - fi
47 -done

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut