ports/154401: New port: www/jetty7 - newer fork by Eclipse/Codehaus

Davide De Rosa keeshux at gmail.com
Sun Jan 30 21:20:11 UTC 2011


>Number:         154401
>Category:       ports
>Synopsis:       New port: www/jetty7 - newer fork by Eclipse/Codehaus
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 30 21:20:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Davide De Rosa
>Release:        8.1-RELEASE
>Organization:
>Environment:
FreeBSD bsdev.home.local 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I'm submitting this as the Jetty core project is now maintained by the Eclipse Foundation. The www/jetty port relies on the legacy Mortbay build, therefore I also suggest to rename www/jetty to www/jetty6.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	jetty7
#	jetty7/Makefile
#	jetty7/pkg-plist
#	jetty7/distinfo
#	jetty7/pkg-descr
#	jetty7/files
#	jetty7/files/jetty.in
#	jetty7/files/pkg-install.in
#	jetty7/files/patch-bin_jetty.sh
#
echo c - jetty7
mkdir -p jetty7 > /dev/null 2>&1
echo x - jetty7/Makefile
sed 's/^X//' >jetty7/Makefile << 'f06665a856baf0834c9ca8acb1a2d007'
X# New ports collection makefile for:	jetty7
X# Date created:				29 January 2011
X# Whom:					Davide De Rosa <keeshux at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	jetty
XPORTVERSION=	${RELEASEVERSION}.${BUILDVERSION}
XCATEGORIES=	www java
XMASTER_SITES=	http://download.eclipse.org/jetty/${PORTVERSION}/dist/
XDISTNAME=	jetty-distribution-${PORTVERSION}
X
XMAINTAINER=	keeshux at gmail.com
XCOMMENT=	Full-featured Java web server by Eclipse, version 7.x
X
XLICENSE=	ASL EPL
XLICENSE_FILE=	${WRKSRC}/LICENSE-APACHE-2.0.txt ${WRKSRC}/LICENSE-ECLIPSE-1.0.html
XLICENSE_COMB=	dual
X
XCONFLICTS=	jetty-6*
X
XRELEASEVERSION=	7.2.2
XBUILDVERSION=	v20101205
XUSE_JAVA=	yes
XJAVA_VERSION=	1.5+
XNO_BUILD=	yes
X
XAPP_NAME=	${PORTNAME}
XAPP_HOME=	${PREFIX}/${PORTNAME}
X
XUSE_RC_SUBR=	${APP_NAME}
XSUB_FILES=	pkg-install
X
XJETTY_SUBDIR=	${PORTNAME}-${RELEASEVERSION}
XJETTY_HOME=	${PREFIX}/${JETTY_SUBDIR}
X
XPLIST_SUB=	J=${JETTY_SUBDIR}
XSUB_LIST=	APP_NAME=${APP_NAME} \
X		JETTY_HOME=${JETTY_HOME} \
X		USER=${USERS} \
X		GROUP=${GROUPS}
X
XUSERS=		www
XGROUPS=		www
X
X.include <bsd.port.pre.mk>
X
Xdo-install:
X	@${MKDIR} ${JETTY_HOME}
X	@${CP} -R ${WRKSRC}/* ${JETTY_HOME}
X
Xpost-install:
X	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X
X.include <bsd.port.post.mk>
f06665a856baf0834c9ca8acb1a2d007
echo x - jetty7/pkg-plist
sed 's/^X//' >jetty7/pkg-plist << 'd8a1b2ffeafe839c52ced577377a86a1'
X at stopdaemon jetty
X%%J%%/LICENSE-APACHE-2.0.txt
X%%J%%/LICENSE-ECLIPSE-1.0.html
X%%J%%/README.txt
X%%J%%/VERSION.txt
X%%J%%/about.html
X%%J%%/bin/README.jetty-cygwin.txt.txt
X%%J%%/bin/jetty-cygwin.sh
X%%J%%/bin/jetty-xinetd.sh
X%%J%%/bin/jetty.sh
X%%J%%/contexts-available/README.TXT
X%%J%%/contexts-available/move-context.xml
X%%J%%/contexts-available/resources.xml
X%%J%%/contexts/README.TXT
X%%J%%/contexts/javadoc.xml
X%%J%%/contexts/test.d/override-web.xml
X%%J%%/contexts/test.xml
X%%J%%/etc/jdbcRealm.properties
X%%J%%/etc/jetty-ajp.xml
X%%J%%/etc/jetty-bio-ssl.xml
X%%J%%/etc/jetty-bio.xml
X%%J%%/etc/jetty-contexts.xml
X%%J%%/etc/jetty-debug.xml
X%%J%%/etc/jetty-deploy.xml
X%%J%%/etc/jetty-fileserver.xml
X%%J%%/etc/jetty-ipaccess.xml
X%%J%%/etc/jetty-jmx.xml
X%%J%%/etc/jetty-logging.xml
X%%J%%/etc/jetty-plus.xml
X%%J%%/etc/jetty-policy.xml
X%%J%%/etc/jetty-proxy.xml
X%%J%%/etc/jetty-requestlog.xml
X%%J%%/etc/jetty-rewrite.xml
X%%J%%/etc/jetty-ssl.xml
X%%J%%/etc/jetty-stats.xml
X%%J%%/etc/jetty-testrealm.xml
X%%J%%/etc/jetty-webapps.xml
X%%J%%/etc/jetty-xinetd.xml
X%%J%%/etc/jetty.conf
X%%J%%/etc/jetty.xml
X%%J%%/etc/keystore
X%%J%%/etc/realm.properties
X%%J%%/etc/webdefault.xml
X%%J%%/lib/annotations/javax.annotation_1.0.0.v20100513-0750.jar
X%%J%%/lib/annotations/org.objectweb.asm_3.1.0.v200803061910.jar
X%%J%%/lib/ext/.donotdelete
X%%J%%/lib/jetty-ajp-7.2.2.v20101205.jar
X%%J%%/lib/jetty-annotations-7.2.2.v20101205.jar
X%%J%%/lib/jetty-client-7.2.2.v20101205.jar
X%%J%%/lib/jetty-continuation-7.2.2.v20101205.jar
X%%J%%/lib/jetty-deploy-7.2.2.v20101205.jar
X%%J%%/lib/jetty-http-7.2.2.v20101205.jar
X%%J%%/lib/jetty-io-7.2.2.v20101205.jar
X%%J%%/lib/jetty-jmx-7.2.2.v20101205.jar
X%%J%%/lib/jetty-jndi-7.2.2.v20101205.jar
X%%J%%/lib/jetty-plus-7.2.2.v20101205.jar
X%%J%%/lib/jetty-policy-7.2.2.v20101205.jar
X%%J%%/lib/jetty-rewrite-7.2.2.v20101205.jar
X%%J%%/lib/jetty-security-7.2.2.v20101205.jar
X%%J%%/lib/jetty-server-7.2.2.v20101205.jar
X%%J%%/lib/jetty-servlet-7.2.2.v20101205.jar
X%%J%%/lib/jetty-servlets-7.2.2.v20101205.jar
X%%J%%/lib/jetty-util-7.2.2.v20101205.jar
X%%J%%/lib/jetty-webapp-7.2.2.v20101205.jar
X%%J%%/lib/jetty-websocket-7.2.2.v20101205.jar
X%%J%%/lib/jetty-xml-7.2.2.v20101205.jar
X%%J%%/lib/jndi/javax.activation_1.1.0.v201005080500.jar
X%%J%%/lib/jndi/javax.mail.glassfish_1.4.1.v201005082020.jar
X%%J%%/lib/jsp/com.sun.el_1.0.0.v201004190952.jar
X%%J%%/lib/jsp/ecj-3.6.jar
X%%J%%/lib/jsp/javax.el_2.1.0.v201004190952.jar
X%%J%%/lib/jsp/javax.servlet.jsp.jstl_1.2.0.v201004190952.jar
X%%J%%/lib/jsp/javax.servlet.jsp_2.1.0.v201004190952.jar
X%%J%%/lib/jsp/jetty-jsp-2.1-7.2.2.v20101205.jar
X%%J%%/lib/jsp/org.apache.jasper.glassfish_2.1.0.v201007080150.jar
X%%J%%/lib/jsp/org.apache.taglibs.standard.glassfish_1.2.0.v201004190952.jar
X%%J%%/lib/jta/javax.transaction_1.1.1.v201004190952.jar
X%%J%%/lib/policy/jetty.policy
X%%J%%/lib/servlet-api-2.5.jar
X%%J%%/logs/.donotdelete
X%%J%%/notice.html
X%%J%%/resources/log4j.properties
X%%J%%/start.ini
X%%J%%/start.jar
X%%J%%/webapps/.donotdelete
X%%J%%/webapps/test.war
X at dirrm %%J%%/webapps
X at dirrm %%J%%/resources
X at dirrm %%J%%/logs
X at dirrm %%J%%/lib/policy
X at dirrm %%J%%/lib/jta
X at dirrm %%J%%/lib/jsp
X at dirrm %%J%%/lib/jndi
X at dirrm %%J%%/lib/ext
X at dirrm %%J%%/lib/annotations
X at dirrm %%J%%/lib
X at dirrm %%J%%/etc
X at dirrm %%J%%/contexts/test.d
X at dirrm %%J%%/contexts-available
X at dirrm %%J%%/contexts
X at dirrm %%J%%/bin
X at dirrm %%J%%
d8a1b2ffeafe839c52ced577377a86a1
echo x - jetty7/distinfo
sed 's/^X//' >jetty7/distinfo << 'f790aec540f849157a32eca8836f2aa9'
XSHA256 (jetty-distribution-7.2.2.v20101205.tar.gz) = 473ca862fb8fda4ef4597c231d1e6ba007efb3f7e67f4f7cc2a476646ade9ad9
XSIZE (jetty-distribution-7.2.2.v20101205.tar.gz) = 5844950
f790aec540f849157a32eca8836f2aa9
echo x - jetty7/pkg-descr
sed 's/^X//' >jetty7/pkg-descr << '89eabd56480e5ce29f066c888bff0c54'
XJetty provides a  Web server and javax.servlet container, plus  support for Web
XSockets,  OSGi,  JMX,  JNDI,  JASPI,  AJP and  many  other  integrations.  These
Xcomponents are open source and available for commercial use and distribution.
X
XJetty is used in a wide variety  of projects and products. Jetty can be embedded
Xin devices, tools, frameworks, application  servers, and clusters. See the Jetty
XPowered page for more uses of Jetty.
X
XThe  core Jetty  project  is  hosted by  the  Eclipse  Foundation. The  codehaus
Xprovides Jetty  accessories, integrations,  and extensions,  as well  as hosting
Xolder versions  of Jetty. See the  About page for information  about the project
Xstructure.
X
XWWW: http://www.eclipse.org/jetty/
89eabd56480e5ce29f066c888bff0c54
echo c - jetty7/files
mkdir -p jetty7/files > /dev/null 2>&1
echo x - jetty7/files/jetty.in
sed 's/^X//' >jetty7/files/jetty.in << 'f1f9ed033178d632903d7a03af3e3834'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: %%APP_NAME%%
X# REQUIRE: LOGIN
X# KEYWORD: shutdown
X
X#
X# Add the following line to /etc/rc.conf to enable %%APP_NAME%%
X#
X# %%APP_NAME%%_enable="YES"
X#
X
X. /etc/rc.subr
X
Xname=%%APP_NAME%%
Xrcvar=`set_rcvar`
X
Xcommand="%%JETTY_HOME%%/bin/jetty.sh"
Xcommand_args="start >/dev/null 2>/dev/null"
Xpidfile=/var/run/${name}.pid
X
X# needed by jetty.sh
Xexport JETTY_PID=$pidfile
X
X# defaults for rc.conf
X: ${%%APP_NAME%%_enable:="NO"}
X: ${%%APP_NAME%%_user:="%%USER%%"}
X: ${%%APP_NAME%%_group:="%%GROUP%%"}
X
Xstart_precmd="touch $pidfile && chown ${jetty_user}:${jetty_group} $pidfile"
Xstop_cmd="jetty_stop"
Xstatus_cmd="jetty_status"
X
X# procname is hard to set with javavm wrapper, so override is preferred
X
Xjetty_stop() {
X        if [ ! -f $pidfile ]; then
X                echo "${name} not running? (check $pidfile)."
X        else
X                echo -n "Stopping services: ${name}"
X                kill `cat $pidfile`
X                rm -f $pidfile
X                echo "."
X        fi
X}
X
Xjetty_status() {
X        if [ -s "$pidfile" ]; then
X                rc_pid=$(cat $pidfile)
X        fi
X
X        if [ -n "$rc_pid" ]; then
X                echo "${name} is running as pid $rc_pid."
X        else
X                echo "${name} is not running."
X                return 1
X        fi
X}
X
Xload_rc_config ${name}
Xrun_rc_command "$1"
f1f9ed033178d632903d7a03af3e3834
echo x - jetty7/files/pkg-install.in
sed 's/^X//' >jetty7/files/pkg-install.in << 'aea3cdeab28ee1c77d5bfccf797dc7b9'
X#!/bin/sh
X
Xif [ "$2" != "POST-INSTALL" ]; then
X    exit 0
Xfi
X
X# constants
XUSER=%%USER%%
XGROUP=%%GROUP%%
XJETTY_HOME=%%JETTY_HOME%%
X
Xrm -f ${JETTY_HOME}/bin/jetty.sh.orig
Xchown -R ${USER}:${GROUP} \
X	${JETTY_HOME}/contexts \
X	${JETTY_HOME}/etc \
X	${JETTY_HOME}/logs \
X	${JETTY_HOME}/resources \
X	${JETTY_HOME}/webapps
aea3cdeab28ee1c77d5bfccf797dc7b9
echo x - jetty7/files/patch-bin_jetty.sh
sed 's/^X//' >jetty7/files/patch-bin_jetty.sh << '3dabf20df29840059dabf47f27ce41c4'
X
X$FreeBSD$
X
X--- bin/jetty.sh.orig
X+++ bin/jetty.sh
X@@ -277,7 +277,7 @@
X then
X   while read -r CONF
X   do
X-    if expr "$CONF" : '#' >/dev/null ; then
X+    if expr -- "$CONF" : '#' >/dev/null ; then
X       continue
X     fi
X 
3dabf20df29840059dabf47f27ce41c4
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list