blob: f382538aee2213d4ad14a72a6c636e1e04915174 (
plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# $NetBSD: Makefile,v 1.8 2017/08/16 20:45:47 wiz Exp $
#
JETTYVER= 7.6.8.v20121106
DISTNAME= jetty-distribution-${JETTYVER}
PKGNAME= ${DISTNAME:S/distribution-//:S/.v/./}
PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://download.eclipse.org/jetty/${JETTYVER}/dist/
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://jetty.codehaus.org/jetty/
COMMENT= Jetty is a Java HTTP Server and Servlet Container
LICENSE= apache-2.0 OR epl-v1.0
USE_LANGUAGES= # none
NO_BUILD= yes
USE_TOOLS+= bash:run pax
USE_JAVA= run
USE_JAVA2= 6
.include "../../mk/bsd.prefs.mk"
JETTY_HOME= ${PREFIX}/share/jetty
EGDIR= ${PREFIX}/share/examples/jetty
RCD_SCRIPTS= jetty
JETTY_USER?= jetty
JETTY_GROUP?= jetty
USERGROUP_PHASE= pre-install
PKG_GROUPS= ${JETTY_GROUP}
PKG_USERS= ${JETTY_USER}:${JETTY_GROUP}
PKG_GROUPS_VARS+= JETTY_GROUP
PKG_USERS_VARS= JETTY_USER
PKG_HOME.jetty= ${JETTY_HOME}
PKG_SHELL.jetty= ${SH}
PKG_SYSCONFDIR.jetty= ${JETTY_HOME}/etc
OWN_DIRS+= ${PKG_SYSCONFDIR.jetty}
FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME} JETTY_HOME=${JETTY_HOME} \
JETTY_USER=${JETTY_USER} JETTY_GROUP=${JETTY_GROUP} \
JETTY_PORT=${JETTY_PORT} JETTY_RUN=${JETTY_RUN} \
JETTY_PID=${JETTY_PID}
INSTALLATION_DIRS= ${JETTY_HOME} ${EGDIR}
CONFS= README.spnego \
jdbcRealm.properties \
jetty-ajp.xml \
jetty-bio-ssl.xml \
jetty-bio.xml \
jetty-contexts.xml \
jetty-debug.xml \
jetty-deploy.xml \
jetty-fileserver.xml \
jetty-ipaccess.xml \
jetty-jmx.xml \
jetty-logging.xml \
jetty-monitor.xml \
jetty-overlay.xml \
jetty-plus.xml \
jetty-policy.xml \
jetty-proxy.xml \
jetty-requestlog.xml \
jetty-rewrite.xml \
jetty-ssl.xml \
jetty-stats.xml \
jetty-testrealm.xml \
jetty-webapps.xml \
jetty-xinetd.xml \
jetty.conf \
jetty.xml \
keystore \
krb5.ini \
realm.properties \
spnego.conf \
spnego.properties \
webdefault.xml
.for i in ${CONFS}
CONF_FILES+= ${EGDIR}/${i} ${PKG_SYSCONFDIR}/${i}
.endfor
REPLACE_BASH+= bin/jetty.sh
pre-configure:
${RM} -r ${WRKSRC}/bin/README.jetty-cygwin.txt.txt \
${WRKSRC}/bin/jetty-xinetd.sh \
${WRKSRC}/bin/jetty-cygwin.sh
do-install:
${INSTALL_DATA} ${WRKSRC}/etc/* ${DESTDIR}${EGDIR}
${RM} -r ${WRKSRC}/etc
(cd ${WRKSRC} && ${PAX} -rw -pm . ${DESTDIR}${JETTY_HOME})
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|