aboutsummaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat4/Makefile
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-04-15 21:34:42 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-04-15 21:34:42 +0000
commit98af9f97355e43396ecd4620345cd3ed46f9c8d7 (patch)
tree77e3dad685ed9d27321e816858abdfff7170f4c3 /www/jakarta-tomcat4/Makefile
parent1d2f329fe2039f32eecaaa4bb5b41b179603d97c (diff)
downloadports-98af9f97355e43396ecd4620345cd3ed46f9c8d7.tar.gz
ports-98af9f97355e43396ecd4620345cd3ed46f9c8d7.zip
Notes
Diffstat (limited to 'www/jakarta-tomcat4/Makefile')
-rw-r--r--www/jakarta-tomcat4/Makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/www/jakarta-tomcat4/Makefile b/www/jakarta-tomcat4/Makefile
index df886ab43431..7a2878d7e125 100644
--- a/www/jakarta-tomcat4/Makefile
+++ b/www/jakarta-tomcat4/Makefile
@@ -7,9 +7,9 @@
PORTNAME= jakarta-tomcat
PORTVERSION= 4.0.3
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= www java
-MASTER_SITES= http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v${PORTVERSION}/bin/ \
+MASTER_SITES= http://jakarta.apache.org/builds/jakarta-tomcat-${PORTVERSION:R}/release/v${PORTVERSION}/bin/ \
http://www.metaverse.nl/~ernst/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= znerd
@@ -19,16 +19,18 @@ MAINTAINER= znerd@FreeBSD.org
USE_JAVA= 1.2+
NO_BUILD= YES
+MAJOR_VER= ${PORTVERSION:R:R}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION}
LOG_DIR= ${APP_HOME}/logs
PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///}
APP_TITLE= Jakarta Tomcat
-APP_SHORTNAME= tomcat4
+APP_SHORTNAME= tomcat${MAJOR_VER}
CONTROL_SCRIPT_NAME= ${APP_SHORTNAME}ctl
CONTROL_SCRIPT= ${PREFIX}/bin/${CONTROL_SCRIPT_NAME}
+CONTROL_SCRIPT_MANPAGE_TITLE= ${CONTROL_SCRIPT_NAME:U}
STARTUP_ORDER?= 020
-STARTUP_SCRIPT_NAME= ${PORTNAME}4.sh
+STARTUP_SCRIPT_NAME= ${PORTNAME}${MAJOR_VER}.sh
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/${STARTUP_ORDER}.${STARTUP_SCRIPT_NAME}
USER= www
GROUP= www
@@ -43,16 +45,15 @@ AUTO_START?= NO
STOP_TIMEOUT?= 5
PID_FILE= /var/run/${APP_SHORTNAME}.pid
REPLACE_FILES= ${FILESDIR}/daemonctl.c \
- ${FILESDIR}/tomcatctl.1 \
- ${FILESDIR}/jakarta-tomcat.sh \
+ ${FILESDIR}/daemonctl.1 \
+ ${FILESDIR}/startup.sh \
${WRKSRC}/conf/server.xml
JAR_FILE= bin/bootstrap.jar
-CONTROL_SCRIPT_MANPAGE_TITLE= TOMCAT4CTL
WRKDIR?= ${.CURDIR}/work
.include <bsd.port.pre.mk>
-pre-install:
+pre-patch:
@${ECHO_CMD} "Installation settings:"
@${ECHO_CMD} " Destination directory: ${APP_HOME}"
@${ECHO_CMD} " Control program location: ${CONTROL_SCRIPT}"
@@ -70,7 +71,7 @@ pre-install:
@${ECHO_CMD} " Stop time-out: ${STOP_TIMEOUT} sec."
@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
-do-install:
+post-patch:
@${ECHO_CMD} -n ">> Removing unneeded files..."
@${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.exe'`
@${ECHO_CMD} " [ DONE ]"
@@ -107,6 +108,7 @@ do-install:
@${ECHO_CMD} " [ DONE ]"
.endfor
+do-install:
@${ECHO_CMD} -n ">> Creating destination directory..."
@${MKDIR} ${APP_HOME}
@${MKDIR} ${LOG_DIR}
@@ -129,14 +131,13 @@ do-install:
@${ECHO_CMD} " [ DONE ]"
@${ECHO_CMD} -n ">> Installing startup script..."
- @${CP} ${WRKDIR}/jakarta-tomcat.sh ${STARTUP_SCRIPT}
+ @${CP} ${WRKDIR}/startup.sh ${STARTUP_SCRIPT}
@${CHMOD} 0544 ${STARTUP_SCRIPT}
@${ECHO_CMD} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${ECHO_CMD} -n ">> Installing man pages..."
- @${CP} ${WRKDIR}/tomcatctl.1 ${WRKDIR}/${CONTROL_SCRIPT_NAME}.1
- @${INSTALL_MAN} ${WRKDIR}/${CONTROL_SCRIPT_NAME}.1 ${MANPREFIX}/man/man1
+ @${INSTALL_MAN} ${WRKDIR}/daemonctl.1 ${MANPREFIX}/man/man1/${CONTROL_SCRIPT_NAME}.1
@${ECHO_CMD} " [ DONE ]"
.endif