From 663aae3b960f4f21a583993cbdcea613055f5230 Mon Sep 17 00:00:00 2001 From: jperkin Date: Mon, 14 Dec 2015 13:05:30 +0000 Subject: Import www/jetty9 version 9.2.14.v20151106 into pkgsrc. Jetty provides a Web server and javax.servlet container, plus support for HTTP/2, WebSocket, OSGi, JMX, JNDI, JAAS and many other integrations. These components are open source and available for commercial use and distribution. This package builds on the existing www/jetty7 package which is retained for users of that maintenance release, simplifies the packaging, and adds SMF support. --- www/jetty9/DESCR | 3 + www/jetty9/Makefile | 66 ++++++++++ www/jetty9/PLIST | 256 ++++++++++++++++++++++++++++++++++++++ www/jetty9/distinfo | 6 + www/jetty9/files/jetty.sh | 91 ++++++++++++++ www/jetty9/files/smf/manifest.xml | 38 ++++++ www/jetty9/files/start.ini | 63 ++++++++++ 7 files changed, 523 insertions(+) create mode 100644 www/jetty9/DESCR create mode 100644 www/jetty9/Makefile create mode 100644 www/jetty9/PLIST create mode 100644 www/jetty9/distinfo create mode 100644 www/jetty9/files/jetty.sh create mode 100644 www/jetty9/files/smf/manifest.xml create mode 100644 www/jetty9/files/start.ini (limited to 'www/jetty9') diff --git a/www/jetty9/DESCR b/www/jetty9/DESCR new file mode 100644 index 00000000000..025eceb2b6a --- /dev/null +++ b/www/jetty9/DESCR @@ -0,0 +1,3 @@ +Jetty provides an HTTP server, HTTP client, and javax.servlet +container. These components are open source and available for +commercial use and distribution. diff --git a/www/jetty9/Makefile b/www/jetty9/Makefile new file mode 100644 index 00000000000..6e7ae42a070 --- /dev/null +++ b/www/jetty9/Makefile @@ -0,0 +1,66 @@ +# $NetBSD: Makefile,v 1.1 2015/12/14 13:05:30 jperkin Exp $ + +JETTYVER= 9.2.14.v20151106 +DISTNAME= jetty-distribution-${JETTYVER} +PKGNAME= ${DISTNAME:S/distribution-//:S/.v/./} +CATEGORIES= www +MASTER_SITES= http://download.eclipse.org/jetty/${JETTYVER}/dist/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.eclipse.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= ${LOCALBASE}/share/jetty +JETTY_BASE?= ${VARBASE}/jetty +JETTY_LOGS?= ${JETTY_BASE}/logs +JETTY_RUN?= ${JETTY_BASE} + +JETTY_USER?= jetty +JETTY_GROUP?= jetty +PKG_GROUPS= ${JETTY_GROUP} +PKG_USERS= ${JETTY_USER}:${JETTY_GROUP} +PKG_GROUPS_VARS+= JETTY_GROUP +PKG_USERS_VARS= JETTY_USER +PKG_HOME.jetty= ${JETTY_BASE} +PKG_SHELL.jetty= ${SH} + +RCD_SCRIPTS= jetty + +FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME} \ + JETTY_HOME=${JETTY_HOME:Q} JETTY_BASE=${JETTY_BASE:Q} \ + JETTY_LOGS=${JETTY_LOGS:Q} JETTY_RUN=${JETTY_RUN:Q} \ + JETTY_USER=${JETTY_USER} JETTY_GROUP=${JETTY_GROUP} + +OWN_DIRS= ${JETTY_BASE} ${JETTY_RUN} ${JETTY_LOGS} +OWN_DIRS_PERMS= ${JETTY_BASE} ${JETTY_USER} ${JETTY_GROUP} 0755 +OWN_DIRS_PERMS+= ${JETTY_LOGS} ${JETTY_USER} ${JETTY_GROUP} 0755 +OWN_DIRS_PERMS+= ${JETTY_RUN} ${JETTY_USER} ${JETTY_GROUP} 0755 + +BUILD_DEFS+= VARBASE JETTY_BASE JETTY_LOGS JETTY_RUN + +INSTALLATION_DIRS= ${JETTY_HOME} + +CONF_FILES+= ${JETTY_HOME}/start-example.ini ${JETTY_BASE}/start.ini + +REPLACE_BASH+= bin/jetty.sh + +CHECK_SHLIBS_SKIP+= share/jetty/lib/setuid/libsetuid-*.so + +do-install: + cd ${WRKSRC} && pax -rw -pmo . ${DESTDIR}${JETTY_HOME} + ${INSTALL_DATA} ${FILESDIR}/start.ini \ + ${DESTDIR}${JETTY_HOME}/start-example.ini + +.include "../../mk/java-vm.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/jetty9/PLIST b/www/jetty9/PLIST new file mode 100644 index 00000000000..8acd59829bb --- /dev/null +++ b/www/jetty9/PLIST @@ -0,0 +1,256 @@ +@comment $NetBSD: PLIST,v 1.1 2015/12/14 13:05:30 jperkin Exp $ +share/jetty/README.TXT +share/jetty/VERSION.txt +share/jetty/bin/jetty.sh +share/jetty/demo-base/etc/demo-rewrite-rules.xml +share/jetty/demo-base/etc/keystore +share/jetty/demo-base/etc/login.conf +share/jetty/demo-base/etc/login.properties +share/jetty/demo-base/etc/realm.properties +share/jetty/demo-base/etc/test-realm.xml +share/jetty/demo-base/lib/ext/javax.mail.glassfish-1.4.1.v201005082020.jar +share/jetty/demo-base/lib/ext/test-mock-resources-9.2.14.v20151106.jar +share/jetty/demo-base/start.d/http.ini +share/jetty/demo-base/start.d/https.ini +share/jetty/demo-base/start.d/jsp.ini +share/jetty/demo-base/start.d/jstl.ini +share/jetty/demo-base/start.d/ssl.ini +share/jetty/demo-base/start.ini +share/jetty/demo-base/webapps/README.TXT +share/jetty/demo-base/webapps/ROOT/images/jetty-header.jpg +share/jetty/demo-base/webapps/ROOT/images/webtide_logo.jpg +share/jetty/demo-base/webapps/ROOT/index.html +share/jetty/demo-base/webapps/ROOT/jetty.css +share/jetty/demo-base/webapps/async-rest.war +share/jetty/demo-base/webapps/example-moved.xml +share/jetty/demo-base/webapps/test-jaas.war +share/jetty/demo-base/webapps/test-jaas.xml +share/jetty/demo-base/webapps/test-jndi.war +share/jetty/demo-base/webapps/test-jndi.xml +share/jetty/demo-base/webapps/test-spec.war +share/jetty/demo-base/webapps/test-spec.xml +share/jetty/demo-base/webapps/test.d/override-web.xml +share/jetty/demo-base/webapps/test.war +share/jetty/demo-base/webapps/test.xml +share/jetty/demo-base/webapps/xref-proxy.war +share/jetty/etc/README.spnego +share/jetty/etc/example-quickstart.xml +share/jetty/etc/hawtio.xml +share/jetty/etc/home-base-warning.xml +share/jetty/etc/jamon.xml +share/jetty/etc/jdbcRealm.properties +share/jetty/etc/jetty-annotations.xml +share/jetty/etc/jetty-cdi.xml +share/jetty/etc/jetty-debug.xml +share/jetty/etc/jetty-deploy.xml +share/jetty/etc/jetty-http.xml +share/jetty/etc/jetty-https.xml +share/jetty/etc/jetty-ipaccess.xml +share/jetty/etc/jetty-jaas.xml +share/jetty/etc/jetty-jmx-remote.xml +share/jetty/etc/jetty-jmx.xml +share/jetty/etc/jetty-logging.xml +share/jetty/etc/jetty-lowresources.xml +share/jetty/etc/jetty-monitor.xml +share/jetty/etc/jetty-plus.xml +share/jetty/etc/jetty-proxy.xml +share/jetty/etc/jetty-requestlog.xml +share/jetty/etc/jetty-rewrite.xml +share/jetty/etc/jetty-setuid.xml +share/jetty/etc/jetty-spdy-proxy.xml +share/jetty/etc/jetty-spdy.xml +share/jetty/etc/jetty-spring.xml +share/jetty/etc/jetty-ssl.xml +share/jetty/etc/jetty-started.xml +share/jetty/etc/jetty-stats.xml +share/jetty/etc/jetty-xinetd.xml +share/jetty/etc/jetty.conf +share/jetty/etc/jetty.xml +share/jetty/etc/jminix.xml +share/jetty/etc/jolokia.xml +share/jetty/etc/keystore +share/jetty/etc/keystore.pkf +share/jetty/etc/krb5.ini +share/jetty/etc/protonego-alpn.xml +share/jetty/etc/protonego-npn.xml +share/jetty/etc/spnego.conf +share/jetty/etc/spnego.properties +share/jetty/etc/webdefault.xml +share/jetty/lib/annotations/asm-5.0.1.jar +share/jetty/lib/annotations/asm-commons-5.0.1.jar +share/jetty/lib/annotations/javax.annotation-api-1.2.jar +share/jetty/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.14.v20151106.jar +share/jetty/lib/apache-jsp/org.eclipse.jetty.orbit.org.eclipse.jdt.core-3.8.2.v20130121.jar +share/jetty/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar +share/jetty/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar +share/jetty/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.1.jar +share/jetty/lib/apache-jstl/org.apache.taglibs.taglibs-standard-spec-1.2.1.jar +share/jetty/lib/ext/.donotdelete +share/jetty/lib/fcgi/fcgi-client-9.2.14.v20151106.jar +share/jetty/lib/fcgi/fcgi-server-9.2.14.v20151106.jar +share/jetty/lib/jaspi/javax.security.auth.message-1.0.0.v201108011116.jar +share/jetty/lib/jetty-alpn-client-9.2.14.v20151106.jar +share/jetty/lib/jetty-alpn-server-9.2.14.v20151106.jar +share/jetty/lib/jetty-annotations-9.2.14.v20151106.jar +share/jetty/lib/jetty-cdi-9.2.14.v20151106.jar +share/jetty/lib/jetty-client-9.2.14.v20151106.jar +share/jetty/lib/jetty-continuation-9.2.14.v20151106.jar +share/jetty/lib/jetty-deploy-9.2.14.v20151106.jar +share/jetty/lib/jetty-http-9.2.14.v20151106.jar +share/jetty/lib/jetty-io-9.2.14.v20151106.jar +share/jetty/lib/jetty-jaas-9.2.14.v20151106.jar +share/jetty/lib/jetty-jaspi-9.2.14.v20151106.jar +share/jetty/lib/jetty-jmx-9.2.14.v20151106.jar +share/jetty/lib/jetty-jndi-9.2.14.v20151106.jar +share/jetty/lib/jetty-plus-9.2.14.v20151106.jar +share/jetty/lib/jetty-proxy-9.2.14.v20151106.jar +share/jetty/lib/jetty-quickstart-9.2.14.v20151106.jar +share/jetty/lib/jetty-rewrite-9.2.14.v20151106.jar +share/jetty/lib/jetty-schemas-3.1.jar +share/jetty/lib/jetty-security-9.2.14.v20151106.jar +share/jetty/lib/jetty-server-9.2.14.v20151106.jar +share/jetty/lib/jetty-servlet-9.2.14.v20151106.jar +share/jetty/lib/jetty-servlets-9.2.14.v20151106.jar +share/jetty/lib/jetty-util-9.2.14.v20151106.jar +share/jetty/lib/jetty-webapp-9.2.14.v20151106.jar +share/jetty/lib/jetty-xml-9.2.14.v20151106.jar +share/jetty/lib/jndi/javax.mail.glassfish-1.4.1.v201005082020.jar +share/jetty/lib/jndi/javax.transaction-api-1.2.jar +share/jetty/lib/jsp/javax.el-3.0.0.jar +share/jetty/lib/jsp/javax.servlet.jsp-2.3.2.jar +share/jetty/lib/jsp/javax.servlet.jsp-api-2.3.1.jar +share/jetty/lib/jsp/javax.servlet.jsp.jstl-1.2.2.jar +share/jetty/lib/jsp/jetty-jsp-9.2.14.v20151106.jar +share/jetty/lib/jsp/jetty-jsp-jdt-2.3.3.jar +share/jetty/lib/jsp/org.eclipse.jdt.core-3.8.2.v20130121.jar +share/jetty/lib/jsp/org.eclipse.jetty.orbit.javax.servlet.jsp.jstl-1.2.0.v201105211821.jar +share/jetty/lib/monitor/jetty-monitor-9.2.14.v20151106.jar +share/jetty/lib/servlet-api-3.1.jar +share/jetty/lib/setuid/jetty-setuid-java-1.0.1.jar +share/jetty/lib/setuid/libsetuid-linux.so +share/jetty/lib/setuid/libsetuid-osx.so +share/jetty/lib/spdy/spdy-client-9.2.14.v20151106.jar +share/jetty/lib/spdy/spdy-core-9.2.14.v20151106.jar +share/jetty/lib/spdy/spdy-http-common-9.2.14.v20151106.jar +share/jetty/lib/spdy/spdy-http-server-9.2.14.v20151106.jar +share/jetty/lib/spdy/spdy-server-9.2.14.v20151106.jar +share/jetty/lib/spring/jetty-spring-9.2.14.v20151106.jar +share/jetty/lib/websocket/javax-websocket-client-impl-9.2.14.v20151106.jar +share/jetty/lib/websocket/javax-websocket-server-impl-9.2.14.v20151106.jar +share/jetty/lib/websocket/javax.websocket-api-1.0.jar +share/jetty/lib/websocket/websocket-api-9.2.14.v20151106.jar +share/jetty/lib/websocket/websocket-client-9.2.14.v20151106.jar +share/jetty/lib/websocket/websocket-common-9.2.14.v20151106.jar +share/jetty/lib/websocket/websocket-server-9.2.14.v20151106.jar +share/jetty/lib/websocket/websocket-servlet-9.2.14.v20151106.jar +share/jetty/license-eplv10-aslv20.html +share/jetty/logs/.donotdelete +share/jetty/modules/.donotdelete +share/jetty/modules/annotations.mod +share/jetty/modules/cdi.mod +share/jetty/modules/client.mod +share/jetty/modules/continuation.mod +share/jetty/modules/debug.mod +share/jetty/modules/deploy.mod +share/jetty/modules/ext.mod +share/jetty/modules/fcgi.mod +share/jetty/modules/hawtio.mod +share/jetty/modules/home-base-warning.mod +share/jetty/modules/http.mod +share/jetty/modules/https.mod +share/jetty/modules/ipaccess.mod +share/jetty/modules/jaas.mod +share/jetty/modules/jamon.mod +share/jetty/modules/jaspi.mod +share/jetty/modules/jminix.mod +share/jetty/modules/jmx-remote.mod +share/jetty/modules/jmx.mod +share/jetty/modules/jndi.mod +share/jetty/modules/jolokia.mod +share/jetty/modules/jsp-impl/apache-jsp.mod +share/jetty/modules/jsp-impl/apache-jstl.mod +share/jetty/modules/jsp-impl/glassfish-jsp.mod +share/jetty/modules/jsp-impl/glassfish-jstl.mod +share/jetty/modules/jsp.mod +share/jetty/modules/jstl.mod +share/jetty/modules/jvm.mod +share/jetty/modules/logging.mod +share/jetty/modules/lowresources.mod +share/jetty/modules/monitor.mod +share/jetty/modules/plus.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_40.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_45.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_51.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_55.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_60.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_65.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_67.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_71.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_72.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_75.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_76.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_79.mod +share/jetty/modules/protonego-impl/alpn-1.7.0_80.mod +share/jetty/modules/protonego-impl/alpn-1.8.0.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_05.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_11.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_20.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_25.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_31.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_40.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_45.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_51.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_60.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_65.mod +share/jetty/modules/protonego-impl/alpn-1.8.0_66.mod +share/jetty/modules/protonego-impl/alpn.mod +share/jetty/modules/protonego-impl/npn-1.7.0_04.mod +share/jetty/modules/protonego-impl/npn-1.7.0_05.mod +share/jetty/modules/protonego-impl/npn-1.7.0_06.mod +share/jetty/modules/protonego-impl/npn-1.7.0_07.mod +share/jetty/modules/protonego-impl/npn-1.7.0_09.mod +share/jetty/modules/protonego-impl/npn-1.7.0_10.mod +share/jetty/modules/protonego-impl/npn-1.7.0_11.mod +share/jetty/modules/protonego-impl/npn-1.7.0_13.mod +share/jetty/modules/protonego-impl/npn-1.7.0_15.mod +share/jetty/modules/protonego-impl/npn-1.7.0_17.mod +share/jetty/modules/protonego-impl/npn-1.7.0_21.mod +share/jetty/modules/protonego-impl/npn-1.7.0_25.mod +share/jetty/modules/protonego-impl/npn-1.7.0_40.mod +share/jetty/modules/protonego-impl/npn-1.7.0_45.mod +share/jetty/modules/protonego-impl/npn-1.7.0_51.mod +share/jetty/modules/protonego-impl/npn-1.7.0_55.mod +share/jetty/modules/protonego-impl/npn-1.7.0_60.mod +share/jetty/modules/protonego-impl/npn-1.7.0_65.mod +share/jetty/modules/protonego-impl/npn-1.7.0_67.mod +share/jetty/modules/protonego-impl/npn-1.7.0_71.mod +share/jetty/modules/protonego-impl/npn-1.7.0_72.mod +share/jetty/modules/protonego-impl/npn-1.7.0_75.mod +share/jetty/modules/protonego-impl/npn-1.7.0_76.mod +share/jetty/modules/protonego-impl/npn-1.7.0_79.mod +share/jetty/modules/protonego-impl/npn-1.7.0_80.mod +share/jetty/modules/protonego-impl/npn.mod +share/jetty/modules/protonego.mod +share/jetty/modules/proxy.mod +share/jetty/modules/quickstart.mod +share/jetty/modules/requestlog.mod +share/jetty/modules/resources.mod +share/jetty/modules/rewrite.mod +share/jetty/modules/security.mod +share/jetty/modules/server.mod +share/jetty/modules/servlet.mod +share/jetty/modules/servlets.mod +share/jetty/modules/setuid.mod +share/jetty/modules/spdy.mod +share/jetty/modules/spring.mod +share/jetty/modules/ssl.mod +share/jetty/modules/stats.mod +share/jetty/modules/webapp.mod +share/jetty/modules/websocket.mod +share/jetty/modules/xinetd.mod +share/jetty/notice.html +share/jetty/resources/log4j.properties +share/jetty/start.ini +share/jetty/start.jar +share/jetty/start-example.ini +share/jetty/webapps/README.TXT diff --git a/www/jetty9/distinfo b/www/jetty9/distinfo new file mode 100644 index 00000000000..3ed250a31a4 --- /dev/null +++ b/www/jetty9/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2015/12/14 13:05:30 jperkin Exp $ + +SHA1 (jetty-distribution-9.2.14.v20151106.tar.gz) = f732d079892de536f38af72180e7486f40b4f47f +RMD160 (jetty-distribution-9.2.14.v20151106.tar.gz) = 41be01c5f6d9e021b6cd9edb6875d25ade1088f5 +SHA512 (jetty-distribution-9.2.14.v20151106.tar.gz) = e91f648a3ccd39d474d3c7070b75671a7575d79e77da614f4fac6fc7ac3c899b43fec2a1b02627b26f30739453c97e81c332f0a18733df5182cb3ca78d51084e +Size (jetty-distribution-9.2.14.v20151106.tar.gz) = 13547862 bytes diff --git a/www/jetty9/files/jetty.sh b/www/jetty9/files/jetty.sh new file mode 100644 index 00000000000..826d1c40130 --- /dev/null +++ b/www/jetty9/files/jetty.sh @@ -0,0 +1,91 @@ +#! @RCD_SCRIPTS_SHELL@ +# +# $NetBSD: jetty.sh,v 1.1 2015/12/14 13:05:30 jperkin Exp $ +# +# PROVIDE: jetty +# REQUIRE: DAEMON +# + +if [ -r /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="jetty" +rcvar=$name +command="@JETTY_HOME@/bin/jetty.sh" +pidfile="jetty.pid" +jetty_user="@JETTY_USER@" +jetty_group="@JETTY_GROUP@" +start_cmd="$command start" +stop_cmd="$command stop" +restart_cmd="$stop_cmd && $start_cmd" +run_cmd="jetty_run" +version_cmd="jetty_version" +debug_cmd="jetty_debug" +extra_commands="run version debug" +start_precmd="jetty_precmd" + +PREFIX=@PREFIX@ + +JAVA_OPTIONS="-Xmx768M -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch .PollSelectorProvider" + +if [ -z "${JAVA_HOME}" ]; then + JAVA_HOME="@JAVA_HOME@" + export JAVA_HOME + JAVA="@JAVA_HOME@/bin/java" + export JAVA +fi + +JETTY_HOME=@JETTY_HOME@ +JETTY_BASE=@JETTY_BASE@ +JETTY_LOGS=@JETTY_LOGS@ +JETTY_RUN=@JETTY_RUN@ +JETTY_PID=${pidfile} +export JETTY_HOME +export JETTY_BASE +export JETTY_LOGS +export JETTY_RUN +export JETTY_PID + +CLASSPATH=${CLASSPATH}:${PREFIX}/lib/java/servlet.jar:${PREFIX}/lib/java/jaxp.jar:${PREFIX}/lib/java/parser.jar:${PREFIX}/lib/java/crimson.jar:${PREFIX}/lib/java/ant.jar + +if [ -n "${jetty_classpath}" ]; then + CLASSPATH=${CLASSPATH}:${jetty_classpath} +fi +export CLASSPATH + +jetty_precmd() +{ + if [ ! -d ${JETTY_RUN} ]; then + @MKDIR@ ${JETTY_RUN} + @CHMOD@ 0750 ${JETTY_RUN} + @CHOWN@ ${jetty_user}:${jetty_group} ${JETTY_RUN} + fi +} + +jetty_start() +{ + cd ${JETTY_HOME}/logs + @SU@ ${jetty_user} -c "${command} start" +} + +jetty_stop() +{ + rc_pid=$(check_pidfile ${JETTY_RUN}/${JETTY_PID} "${JAVA_HOME}/bin/java") + @SU@ ${jetty_user} -c "${command} stop" + wait_for_pids $rc_pid +} + +jetty_run() +{ + cd ${JETTY_HOME}/logs + @SU@ ${jetty_user} -c "${command} run" +} + +if [ -f /etc/rc.subr ]; then + load_rc_config "$name" + run_rc_command "$1" +else + jetty_precmd + jetty_start +fi diff --git a/www/jetty9/files/smf/manifest.xml b/www/jetty9/files/smf/manifest.xml new file mode 100644 index 00000000000..fa60036f977 --- /dev/null +++ b/www/jetty9/files/smf/manifest.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/jetty9/files/start.ini b/www/jetty9/files/start.ini new file mode 100644 index 00000000000..2782719be2c --- /dev/null +++ b/www/jetty9/files/start.ini @@ -0,0 +1,63 @@ +# $NetBSD: start.ini,v 1.1 2015/12/14 13:05:30 jperkin Exp $ +# +# Example start.ini generated with '--add-to-start=http,deploy' +# + +# --------------------------------------- +# Module: http +--module=http +### HTTP Connector Configuration + +## HTTP port to listen on +jetty.port=8080 + +## HTTP idle timeout in milliseconds +http.timeout=30000 + +## HTTP Socket.soLingerTime in seconds. (-1 to disable) +# http.soLingerTime=-1 + +## Parameters to control the number and priority of acceptors and selectors +# http.selectors=1 +# http.acceptors=1 +# http.selectorPriorityDelta=0 +# http.acceptorPriorityDelta=0 + +# --------------------------------------- +# Module: server +--module=server +## +## Server Threading Configuration +## +# minimum number of threads +threads.min=10 +# maximum number of threads +threads.max=200 +# thread idle timeout in milliseconds +threads.timeout=60000 +# buffer size for output +jetty.output.buffer.size=32768 +# request header buffer size +jetty.request.header.size=8192 +# response header buffer size +jetty.response.header.size=8192 +# should jetty send the server version header? +jetty.send.server.version=true +# should jetty send the date header? +jetty.send.date.header=false +# What host to listen on (leave commented to listen on all interfaces) +#jetty.host=myhost.com +# Dump the state of the Jetty server, components, and webapps after startup +jetty.dump.start=false +# Dump the state of the Jetty server, before stop +jetty.dump.stop=false +# Enable delayed dispatch optimisation +jetty.delayDispatchUntilContent=false + +# --------------------------------------- +# Module: deploy +--module=deploy +## DeployManager configuration +# Monitored Directory name (relative to jetty.base) +# jetty.deploy.monitoredDirName=webapps + -- cgit v1.2.3