# New ports collection makefile for: jakarta-tomcat # Date created: 20 Oct 2000 # Whom: des # # $FreeBSD$ # PORTNAME= jakarta-tomcat PORTVERSION= 3.3.2 PORTREVISION= 0 CATEGORIES= www java MASTER_SITES= http://www.apache.org/dist/jakarta/tomcat-3/v${PORTVERSION}/bin/ \ ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= znerd MAINTAINER= znerd@FreeBSD.org COMMENT= Open-source Java web server by Apache, stable 3.x branch USE_JAVA= 1.2+ NO_BUILD= YES LATEST_LINK= ${APP_SHORTNAME} MAJOR_VER= ${PORTVERSION:R:R} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION:R} LOG_DIR= ${APP_HOME}/logs PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} APP_TITLE= Jakarta Tomcat 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}${MAJOR_VER}.sh STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/${STARTUP_ORDER}.${STARTUP_SCRIPT_NAME} USER= www GROUP= www PW?= /usr/sbin/pw HTTP_PORT?= 8080 STDOUT_LOG= ${LOG_DIR}/stdout.log STDERR_LOG= ${LOG_DIR}/stderr.log AUTO_START?= NO STOP_TIMEOUT?= 5 PID_FILE= /var/run/${APP_SHORTNAME}.pid REPLACE_FILES= ${PORTSDIR}/www/jakarta-tomcat4/files/daemonctl.c \ ${PORTSDIR}/www/jakarta-tomcat4/files/daemonctl.1 \ ${PORTSDIR}/www/jakarta-tomcat4/files/startup.sh \ ${WRKSRC}/conf/server.xml JAR_FILE= lib/tomcat.jar WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work .include pre-patch: @${ECHO_CMD} "Installation settings:" @${ECHO_CMD} " Destination directory: ${APP_HOME}" @${ECHO_CMD} " Control program location: ${CONTROL_SCRIPT}" @${ECHO_CMD} " Startup script location: ${STARTUP_SCRIPT}" @${ECHO_CMD} " Location of JDK: ${JAVA_HOME}" @${ECHO_CMD} " Location of Java port: ${JAVA_PORT}" @${ECHO_CMD} " Running as (user/group): ${USER}/${GROUP}" @${ECHO_CMD} " HTTP port: ${HTTP_PORT}" @${ECHO_CMD} " Logfile stdout: ${STDOUT_LOG}" @${ECHO_CMD} " Logfile stderr: ${STDERR_LOG}" @${ECHO_CMD} " Starting after install: ${AUTO_START}" @${ECHO_CMD} " Stop time-out: ${STOP_TIMEOUT} sec." @PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-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 ]" .for f in ${REPLACE_FILES} @${ECHO_CMD} -n ">> Customizing `basename $f`..." @${SED} \ -e "/%%APP_HOME%%/s//${APP_HOME:S/\//\\\//g}/g" \ -e "/%%APP_SHORTNAME%%/s//${APP_SHORTNAME}/g" \ -e "/%%APP_TITLE%%/s//${APP_TITLE}/g" \ -e "/%%CONTROL_SCRIPT%%/s//${CONTROL_SCRIPT:S/\//\\\//g}/g" \ -e "/%%CONTROL_SCRIPT_MANPAGE_TITLE%%/s//${CONTROL_SCRIPT_MANPAGE_TITLE}/g" \ -e "/%%CONTROL_SCRIPT_NAME%%/s//${CONTROL_SCRIPT_NAME}/g" \ -e "/%%GROUP%%/s//${GROUP}/g" \ -e "/%%HTTP_PORT%%/s//${HTTP_PORT}/g" \ -e "/%%JAVA_CMD%%/s//bin\/java/g" \ -e "/%%JAVA_HOME%%/s//${JAVA_HOME:S/\//\\\//g}/g" \ -e "/%%JAR_FILE%%/s//${JAR_FILE:S/\//\\\//g}/g" \ -e "/%%LOG_DIR%%/s//${LOG_DIR:S/\//\\\//g}/g" \ -e "/%%PID_FILE%%/s//${PID_FILE:S/\//\\\//g}/g" \ -e "/%%PORTNAME%%/s//${PORTNAME}/g" \ -e "/%%PORTVERSION%%/s//${PORTVERSION}/g" \ -e "/%%PREFIX%%/s//${PREFIX:S/\//\\\//g}/g" \ -e "/%%STARTUP_SCRIPT_NAME%%/s//${STARTUP_SCRIPT_NAME}/g" \ -e "/%%STARTUP_SCRIPT%%/s//${STARTUP_SCRIPT:S/\//\\\//g}/g" \ -e "/%%STDERR_LOG%%/s//${STDERR_LOG:S/\//\\\//g}/g" \ -e "/%%STDOUT_LOG%%/s//${STDOUT_LOG:S/\//\\\//g}/g" \ -e "/%%STOP_TIMEOUT%%/s//${STOP_TIMEOUT}/g" \ -e "/%%USER%%/s//${USER}/g" \ $f > ${WRKDIR}/`basename $f` @${ECHO_CMD} " [ DONE ]" .endfor do-install: @${ECHO_CMD} -n ">> Creating destination directory..." @${MKDIR} ${APP_HOME} @${MKDIR} ${LOG_DIR} @${ECHO_CMD} " [ DONE ]" @${ECHO_CMD} -n ">> Copying files to destination directory..." @${CP} -R ${WRKSRC}/* ${APP_HOME} @${CP} ${WRKDIR}/server.xml ${APP_HOME}/conf/ @${ECHO_CMD} " [ DONE ]" @${ECHO_CMD} -n ">> Compiling and installing control program..." @${SED} \ -e "/%%JAVA_ARGS%%/s//\"-Dtomcat.install=${APP_HOME:S/\//\\\//g}\",/g" \ -e "/%%JAR_ARGS%%/s//\"run\",/g" \ ${WRKDIR}/daemonctl.c > ${WRKDIR}/daemonctl_.c @cd ${WRKDIR} && ${CC} -ansi -o ${CONTROL_SCRIPT_NAME} daemonctl_.c @${CP} ${WRKDIR}/${CONTROL_SCRIPT_NAME} ${CONTROL_SCRIPT} @${CHOWN} ${USER}:${GROUP} ${CONTROL_SCRIPT} @${CHMOD} 6754 ${CONTROL_SCRIPT} @${ECHO_CMD} " [ DONE ]" @${ECHO_CMD} -n ">> Installing startup script..." @${CP} ${WRKDIR}/startup.sh ${STARTUP_SCRIPT} @${CHMOD} 0544 ${STARTUP_SCRIPT} @${ECHO_CMD} " [ DONE ]" .if !defined(NOPORTDOCS) @${ECHO_CMD} -n ">> Installing man pages..." @${INSTALL_MAN} ${WRKDIR}/daemonctl.1 ${MANPREFIX}/man/man1/${CONTROL_SCRIPT_NAME}.1 @${ECHO_CMD} " [ DONE ]" .endif @${ECHO_CMD} -n ">> Creating log files..." @${INSTALL} /dev/null ${STDOUT_LOG} @${INSTALL} /dev/null ${STDERR_LOG} @${ECHO_CMD} " [ DONE ]" @${ECHO_CMD} -n ">> Fixing ownership settings..." @${CHOWN} -R ${USER}:${GROUP} ${APP_HOME} @${ECHO_CMD} " [ DONE ]" @${ECHO_CMD} -n ">> Fixing permissions..." @${CHMOD} 755 `${FIND} ${APP_HOME} -type d` @${ECHO_CMD} " [ DONE ]" @${ECHO_CMD} -n ">> Creating PID file..." @${TOUCH} ${PID_FILE} @${CHOWN} ${USER}:${GROUP} ${PID_FILE} @${CHMOD} 0600 ${PID_FILE} @${ECHO_CMD} " [ DONE ]" post-install: @${ECHO_CMD} "${APP_TITLE} ${PORTVERSION} has been installed in ${APP_HOME}." @${ECHO_CMD} "If a user should be able to use ${CONTROL_SCRIPT_NAME}, then put this user in the group ${GROUP}." .if !defined(NOPORTDOCS) @${ECHO_CMD} "Use 'man ${CONTROL_SCRIPT_NAME}' for information about starting and stopping ${APP_TITLE}." .endif .if ${AUTO_START} == "YES" @${CONTROL_SCRIPT} start || true .endif .include af62ef629b1abc30c43d82ada0bf3c'>diffstats
Commit message (Expand)AuthorAgeFilesLines
* - Update kdepim4 and kdepim4-runtime to 4.4.11.1.avilla2011-04-237-94/+2
* - Add patch from upstream to fix a crash. [1]avilla2011-04-076-0/+92
* The FreeBSD KDE Team is pleased to announce KDE SC 4.6.1 and KDE PIMavilla2011-03-253-22/+3
* Chase after net/openldap24-server update.delphij2011-02-251-1/+1
* Fix the shared library version number for libassuan to reflect whatdougb2011-01-141-0/+1
* Update KDE PIM to 4.4.9makc2010-12-252-3/+2
* Chase libassuan updatemakc2010-12-251-1/+1
* - Chase security/libksba shlib version bumpglarkin2010-12-161-0/+1
* Update KDE PIM ports to 4.4.8makc2010-12-052-3/+3
* Update KDE PIM ports to 4.4.7makc2010-10-221-3/+3
* Update kdepim to 4.4.6makc2010-09-112-4/+4
* Introduce KDEPIM4_VERSION and set it to 4.4.5makc2010-09-021-2/+2
* - Fix build with upcoming KDE 4.5. Don't bump PORTREVISION: packagesavilla2010-08-241-0/+2
* Remove stale stuffmakc2010-08-082-28/+1
* Present KDE SC 4.4.5 for FreeBSD.makc2010-06-302-4/+3
* - Make libassuan-1 support optional and mark port IGNORE with libassuan-1fluffy2010-06-222-9/+18
* Fix port name on the LEFT side of the : for BUILD_DEPENDSdougb2010-06-141-1/+1
* Update security/libassuan to version 2.0.0, which is required by gnupg 2.0.15dougb2010-06-141-2/+2
* Reduce dependency from boost-python-libs to boost-libsmakc2010-06-121-1/+2
* Present KDE SC 4.4.4 for FreeBSD.makc2010-06-022-6/+3
* - The FreeBSD KDE team is pleased to announce KDE SC 4.4.3 for FreeBSDfluffy2010-05-114-403/+119
* - Chase comms/gnokii shlib bumpmiwi2010-05-101-1/+1
* - update to 1.4.1dinoex2010-03-281-0/+1
* Presenting KDE 4.3.5 for FreeBSD. The official release notes for thismiwi2010-02-072-4/+3
* - update to jpeg-8dinoex2010-02-051-1/+1
* - Fix dependency path (boost-libs => bost-python-libs)fluffy2010-01-011-1/+1
* - Fix build after boost*miwi2010-01-011-1/+2
* The FreeBSD KDE is please to announce the release of KDE 4.3.4,miwi2009-12-021-3/+3
* The KDE FreeBSD team is proud to announce the release of KDE 4.3.3miwi2009-11-273-28/+4
* Chase gnokii sharedlibrarybumparved2009-09-111-0/+1
* The FreeBSD KDE is please to announce the release of KDE 4.3.1,tabthorpe2009-09-023-8/+13
* Mk/bsd.kde4.mk:makc2009-08-101-8/+7
* The KDE FreeBSD team is proud to announce the release of KDE 4.3.0miwi2009-08-055-285/+52
* - Update boost to 1.39pav2009-07-281-1/+1
* - Chase security/gpgme update.wxs2009-07-163-0/+32
* The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-032-3/+4
* Update KDE ports to 4.2.3makc2009-05-101-3/+3
* - Mark all kde4 ports MAKE_JOBS_UNSAFEmiwi2009-04-171-1/+1
* The KDE FreeBSD team is proud to announce the release of KDE 4.2.2miwi2009-04-023-20/+10
* bump PORTREVISION after cmake updatemakc2009-03-251-0/+1
* Update KDE to 4.2.1.makc2009-03-095-29/+5
* Add patch from kde svn rev.927081:makc2009-02-192-0/+16
* The KDE FreeBSD team is proud to announce the release of KDE 4.2.0miwi2009-02-097-316/+286
* Add patches from upstream:makc2009-01-234-0/+183
* kde@freebsd team is pleased to announce KDE 4.1.4, the last bugfix release in...makc2009-01-143-7/+10
* - Chase comms/gnokii slib bumpmiwi2009-01-121-1/+1
* Bump PORTREVISION's after OpenLDAP update.delphij2009-01-061-0/+1
* The KDE FreeBSD team is proud to announce the release of KDE 4.1.1miwi2008-09-032-76/+18
* The KDE FreeBSD team is proud to announce the release of KDE 4.1.0miwi2008-08-104-2078/+923
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1
* Fix the USE_BISON setting. This was missed in the bison2 upgrade.linimon2007-11-011-1/+1
* Update to KDE 3.5.8lofi2007-10-303-5/+12
* Migration from bison 1.x to 2.xade2007-10-171-2/+2
* Update to KDE 3.5.7 / KOffice 1.6.3lofi2007-07-048-35917/+65
* - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1
* - Allow the '!' character in account passwords again (broken after thelofi2007-05-01