blob: 4ce8e2fca1a2137ff9c576a7a2ae5a21d7d39d76 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Created by: Stephane Legrand <stephane@freebsd-fr.org>
# $FreeBSD$
PORTNAME= jetty
PORTVERSION= 8.1.15
CATEGORIES= www java
MASTER_SITES= ${MASTER_SITE_ECLIPSE}
MASTER_SITE_SUBDIR=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>
|