60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
63 lines
1.4 KiB
Makefile
63 lines
1.4 KiB
Makefile
# Created by: Stephane Legrand <stephane@freebsd-fr.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jetty
|
|
PORTVERSION= 8.1.15
|
|
|
|
CATEGORIES= www java
|
|
MASTER_SITES= ECLIPSE/jetty/${PORTVERSION}.${JDVDATE}/dist
|
|
DISTNAME= jetty-distribution-${PORTVERSION}.${JDVDATE}
|
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
|
COMMENT= Full-featured web server implemented entirely in Java
|
|
|
|
JDVDATE= v20140411
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
USES= python
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
PLIST_SUB+= RUNASUSER=${RUNASUSER} GROUP=${GROUP}
|
|
|
|
APP_NAME= ${PORTNAME}
|
|
APP_HOME= ${PREFIX}/${PORTNAME}
|
|
PID_FILE?= ${APP_HOME}/${APP_NAME}.pid
|
|
RUNASUSER?= www
|
|
RUNASUID?= 80
|
|
GROUP?= www
|
|
GID?= 80
|
|
LOG_FILE?= ${APP_HOME}/${APP_NAME}.log
|
|
|
|
SUB_LIST= \
|
|
APP_HOME=${APP_HOME} \
|
|
APP_NAME=${APP_NAME} \
|
|
JAVA_HOME=${JAVA_HOME} \
|
|
JAVA=${JAVA} \
|
|
PID_FILE=${PID_FILE} \
|
|
RUNASUSER=${RUNASUSER} \
|
|
RUNASUID=${RUNASUID} \
|
|
GROUP=${GROUP} \
|
|
GID=${GID} \
|
|
LOG_FILE=${LOG_FILE} \
|
|
PYTHON_CMD=${PYTHON_CMD}
|
|
|
|
SUB_FILES= \
|
|
pkg-install \
|
|
pkg-deinstall \
|
|
${APP_NAME}ctl \
|
|
${APP_NAME} \
|
|
message \
|
|
message-advanced
|
|
|
|
do-build:
|
|
|
|
pre-install:
|
|
@${FMT} -w80 ${WRKDIR}/message > ${PKGMESSAGE}
|
|
@${CAT} ${WRKDIR}/message-advanced >> ${PKGMESSAGE}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${APP_HOME}
|
|
cd ${WRKSRC} && ${FIND} -H * | ${EGREP} -v "^(bin/|bin$$)" | ${CPIO} -pdmuL ${STAGEDIR}${APP_HOME}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${APP_NAME}ctl ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
.include <bsd.port.mk>
|