Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2002 22:26:08 +1200 (NZST)
From:      Jonathan Chen <jonc@chen.org.nz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/41610: New Port: mod_webapp
Message-ID:  <200208131026.g7DAQ8Ee046427@grimoire.chen.org.nz>

next in thread | raw e-mail | index | archive | help

>Number:         41610
>Category:       ports
>Synopsis:       New Port: mod_webapp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 13 03:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Chen
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
chen.org.nz
>Environment:
System: FreeBSD grimoire.chen.org.nz 4.6-STABLE FreeBSD 4.6-STABLE #1: Wed Aug 7 08:08:11 NZST 2002 root@grimoire.chen.org.nz:/usr/obj/usr/src/sys/GRIMOIRE i386
>Description:
New port: mod_webapp.
>How-To-Repeat:
>Fix:

Shell archive included. There are a couple of things that could be done
better in this port:

    1. The way this port uses autoconf is not-quite-correct.
    2. To install for Apache2 requires a "make -DWITH_APACHE2 install"


# 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:
#
#	mod_webapp
#	mod_webapp/Makefile
#	mod_webapp/distinfo
#	mod_webapp/pkg-comment
#	mod_webapp/pkg-descr
#	mod_webapp/pkg-plist
#
echo c - mod_webapp
mkdir -p mod_webapp > /dev/null 2>&1
echo x - mod_webapp/Makefile
sed 's/^X//' >mod_webapp/Makefile << 'END-of-mod_webapp/Makefile'
X# New ports collection makefile for:	mod_webapp
X# Date created:		Tue Aug 13 21:38:57 NZST 2002
X# Whom:			Jonathan Chen <jonc@chen.org.nz>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_webapp
XPORTVERSION=	4.0.4
XCATEGORIES=	www
XMASTER_SITES=	http://jakarta.apache.org/builds/jakarta-tomcat-${PORTVERSION:R}/release/v${PORTVERSION}/src/
XDISTNAME=	jakarta-tomcat-connectors-${PORTVERSION}-src
X
XMAINTAINER=	jonc@chen.org.nz
X
XBUILD_DEPENDS+=	autoconf:${PORTSDIR}/devel/autoconf
X.if defined(WITH_APACHE2)
XBUILD_DEPENDS+=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
XRUN_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
X.else
XBUILD_DEPENDS+=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
XRUN_DEPENDS=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
X.endif
X
XUSE_AUTOCONF_VER=
XAUTOCONF=	autoconf
XUSE_GMAKE=	yes
X
XCONFIGURE_WRKSRC=	${WRKSRC}/webapp
XBUILD_WRKSRC=	${CONFIGURE_WRKSRC}
X
X.if defined(WITH_APACHE2)
XCONFIGURE_ARGS=	--with-apxs2=${PREFIX}/sbin/apxs
XMOD_DIR=	libexec/apache2
XWEBAPP_BUILD=	apache-2.0
X.else
XCONFIGURE_ARGS=	--with-apxs=${PREFIX}/sbin/apxs
XMOD_DIR=	libexec/apache
XWEBAPP_BUILD=	apache-1.3
X.endif
X
XPLIST_SUB=	MOD_DIR=${MOD_DIR}
XALL_TARGET=	lib-build ${WEBAPP_BUILD}-build
X
Xpre-build:
X	${MKDIR} ${BUILD_WRKSRC}/build/objs
X
Xdo-install:
X	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${WEBAPP_BUILD}/${PORTNAME}.so ${PREFIX}/${MOD_DIR}
X
X.include <bsd.port.mk>
END-of-mod_webapp/Makefile
echo x - mod_webapp/distinfo
sed 's/^X//' >mod_webapp/distinfo << 'END-of-mod_webapp/distinfo'
XMD5 (jakarta-tomcat-connectors-4.0.4-src.tar.gz) = 05aa51eb1660ab6f45d347cba4da31c2
END-of-mod_webapp/distinfo
echo x - mod_webapp/pkg-comment
sed 's/^X//' >mod_webapp/pkg-comment << 'END-of-mod_webapp/pkg-comment'
XTomcat Connector for Apache
END-of-mod_webapp/pkg-comment
echo x - mod_webapp/pkg-descr
sed 's/^X//' >mod_webapp/pkg-descr << 'END-of-mod_webapp/pkg-descr'
Xmod_webapp is the successor to mod_jserv; a module that connects the
XHTTP stack of the front end Apache web-server(s) with one or more instances
Xof the Tomcat servlet container in the back end.
END-of-mod_webapp/pkg-descr
echo x - mod_webapp/pkg-plist
sed 's/^X//' >mod_webapp/pkg-plist << 'END-of-mod_webapp/pkg-plist'
X%%MOD_DIR%%/mod_webapp.so
END-of-mod_webapp/pkg-plist
exit

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208131026.g7DAQ8Ee046427>