From rsimmons@mail.wlcg.com  Wed Nov 14 08:55:12 2001
Return-Path: <rsimmons@mail.wlcg.com>
Received: from mail.wlcg.com (mail.wlcg.com [198.92.199.5])
	by hub.freebsd.org (Postfix) with ESMTP id EA4C937B417
	for <freebsd-gnats-submit@freebsd.org>; Wed, 14 Nov 2001 08:55:11 -0800 (PST)
Received: (from root@localhost)
	by mail.wlcg.com (8.11.6/8.11.6) id fAEGtBE25593
	for freebsd-gnats-submit@freebsd.org; Wed, 14 Nov 2001 11:55:11 -0500 (EST)
	(envelope-from rsimmons)
Received: (from rsimmons@localhost)
	by mail.wlcg.com (8.11.6/8.11.6av) id fAEGtAX25582;
	Wed, 14 Nov 2001 11:55:10 -0500 (EST)
	(envelope-from rsimmons)
Message-Id: <200111141655.fAEGtAX25582@mail.wlcg.com>
Date: Wed, 14 Nov 2001 11:55:10 -0500 (EST)
From: Rob Simmons <rsimmons@mail.wlcg.com>
Reply-To: Rob Simmons <rsimmons@mail.wlcg.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Update orion port for config of rmi server during install
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31984
>Category:       ports
>Synopsis:       Update orion port for config of rmi server during install
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    znerd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 14 09:00:04 PST 2001
>Closed-Date:    Mon Mar 4 11:48:56 PST 2002
>Last-Modified:  Mon Mar 04 11:58:57 PST 2002
>Originator:     Rob Simmons
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD mail 4.4-STABLE FreeBSD 4.4-STABLE #1: Tue Oct 9 11:45:16
EDT 2001 rsimmons@mail:/usr/obj/usr/src/sys/WASABI i386


	
>Description:
Update to the orionserver port so that the port that the rmi server runs
on can be configured during install.  This patch also shows users, by
example, where they can configure the host that the rmi server is bound to.
>How-To-Repeat:
>Fix:
--- www/orion/Makefile.orig     Wed Nov 14 11:23:56 2001
+++ www/orion/Makefile  Wed Nov 14 11:40:26 2001
@@ -43,6 +43,7 @@
 GROUP_ID?=     ${USER_ID}
 PW?=           /usr/sbin/pw
 LISTEN_PORT?=  8090
+RMI_PORT?=     23791
 AUTO_START?=   YES
 
 .include <bsd.port.pre.mk>
@@ -57,6 +58,7 @@
        @${ECHO} "   Using Jikes:             ${WITH_JIKES}"
        @${ECHO} "   Running as (user/group): ${USER_NAME}/${GROUP_NAME} (${USER_ID}:${GROUP_ID})"
        @${ECHO} "   Port to listen at:       ${LISTEN_PORT}"
+       @${ECHO} "   Port for rmi server:     ${RMI_PORT}"
        @${ECHO} "   Starting after install:  ${AUTO_START}"
 
 do-install:
@@ -82,6 +84,11 @@
        ${CAT} ${WRKSRC}/config/default-web-site.xml \
        | ${SED} "/port=\"80\"/s//port=\"${LISTEN_PORT}\"/" \
        > ${ORION_HOME}/config/default-web-site.xml
+
+       @# Configure the port for the rmi server to listen to
+       ${CAT} ${WRKSRC}/config/rmi.xml \
+       | ${SED} "/<rmi-server>/s//<rmi-server host=\"\[ALL\]\" port=\"${RMI_PORT}\">/" \
+       > ${ORION_HOME}/config/rmi.xml
 
        @# Install the 'orionctl' script
        ${CAT} ${FILESDIR}/${ORIONCTL_NAME} \
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->znerd 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Thu Dec 20 10:22:30 PST 2001 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31984 

From: Ernst de Haan <ernsth@nl.euro.net>
To: freebsd-gnats-submit@FreeBSD.org, rsimmons@mail.wlcg.com
Cc: Maxim Sobolev <sobomax@FreeBSD.org>
Subject: Re: ports/31984: Update orion port for config of rmi server during install
Date: Fri, 21 Dec 2001 08:52:16 +0100

 I will integrate this patch (somewhat modified) in the next release. It looks 
 very good! In this next release I will also probably disable that Orion is 
 started right after installation, because when one does 'make install' 
 nothing should automatically be started. Perhaps a 'make run' should do 
 that... Still thinking about this.
State-Changed-From-To: open->closed 
State-Changed-By: znerd 
State-Changed-When: Mon Mar 4 11:48:56 PST 2002 
State-Changed-Why:  
Submitted a somewhat modified patch to the current www/orion port. 
Thanks, Rob! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31984 
>Unformatted:
