Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2002 18:29:21 -0500
From:      Dave Glowacki <dglo@hyde.ssec.wisc.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        greg@greg.rim.or.jp
Subject:   ports/39902: Convert www/apache-jserv to use bsd.java.mk
Message-ID:  <200206262329.g5QNTL920193@hyde.ssec.wisc.edu>

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

>Number:         39902
>Category:       ports
>Synopsis:       Convert www/apache-jserv to use bsd.java.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 26 17:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dave Glowacki
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD eusebius.glowacki.org 4.6-STABLE FreeBSD 4.6-STABLE #8: Tue Jun 25 16:32:43 CDT 2002 dglo@eusebius.glowacki.org:/usr/src/sys/compile/EUSEBIUS i386

>Description:
	Convert www/apache-jserv to use the new bsd.java.mk structure,
	so it doesn't try to install jdk-1.1.8 when the user
	has a newer version of java installed.

	(Yeah, I know I should be running on Tomcat, but JServ
	still works, so...)
>How-To-Repeat:
>Fix:

	Apply the following patch to the Makefile in www/apache-jserv:

--- Makefile.orig	Sat Jun 15 20:54:07 2002
+++ Makefile	Wed Jun 26 18:17:11 2002
@@ -14,8 +14,10 @@
 
 MAINTAINER=	greg@greg.rim.or.jp
 
-BUILD_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk11\
-		${LOCALBASE}/sbin/apachectl:${PORTSDIR}/www/apache13\
+USE_JAVA=	1.1+
+NEED_JAVAC=	yes
+
+BUILD_DEPENDS=	${LOCALBASE}/sbin/apachectl:${PORTSDIR}/www/apache13\
 		${LOCALBASE}/share/java/classes/jsdk.jar:${PORTSDIR}/java/jsdk
 RUN_DEPENDS=	${JAVAVM}:${PORTSDIR}/java/javavmwrapper\
 		${LOCALBASE}/sbin/apachectl:${PORTSDIR}/www/apache13\
@@ -33,10 +35,10 @@
 		--with-logdir=/var/log\
 		--sysconfdir=${PREFIX}/etc/apache\
 		--with-apxs=${LOCALBASE}/sbin/apxs\
-		--with-jdk-home=${LOCALBASE}/jdk1.1.8\
+		--with-jdk-home=${JAVA_HOME}\
 		--with-JSDK=${LOCALBASE}/share/java/classes/jsdk.jar\
-		--with-java=${LOCALBASE}/jdk1.1.8/bin/java\
-		--with-javac=${LOCALBASE}/jdk1.1.8/bin/javac\
+		--with-java=${JAVA}\
+		--with-javac=${JAVAC}\
 		--with-servlets=${PREFIX}/share/java/servlets\
 		--with-gnu-ld\
 		--enable-compressed-jar\
>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?200206262329.g5QNTL920193>