Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2002 10:25:33 +0200 (CEST)
From:      User &Goran Lowkrantz <goran.lowkrantz@ismobile.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        goran.lowkrantz@ismobile.com
Subject:   ports/41538: Allow default installed Orion to be configured by user
Message-ID:  <20020811082533.2FC7458B2@midgard.lule2.infologigruppen.se>

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

>Number:         41538
>Category:       ports
>Synopsis:       Allow default installed Orion to be configured by user
>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:   Sun Aug 11 01:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     User &Goran Lowkrantz
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
isMobile AB
>Environment:
System: FreeBSD midgard.lule2.infologigruppen.se 4.5-STABLE FreeBSD 4.5-STABLE #2: Sat Mar 9 10:31:55 CET 2002 root@midgard.lule2.infologigruppen.se:/usr/obj/usr/src/sys/MIDGARD i386


	
>Description:
	The Orion port uses a startup program with fixed command line arguments to start
	and stop the application server. This means that it's impossible to change the
	configuration of the service. By adding a command line flat '-p' and a configuration
	file in the base directory, orion.properties, this configuration file can be used
	to set proerties of the server.
	See http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp for a description
	of how it works.
>How-To-Repeat:

>Fix:

	See the following patches and minimal orion.properties file.

--- patch-aa begins here ---
diff -c orion/Makefile orion-new/Makefile
*** orion/Makefile	Sat Aug 10 12:42:45 2002
--- orion-new/Makefile	Sun Aug 11 09:52:39 2002
***************
*** 113,118 ****
--- 113,119 ----
  
  	@${ECHO_CMD} -n ">> Copying files to destination directory..."
  	@${CP} -R ${WRKSRC}/* ${APP_HOME}
+ 	@${CP} ${PATCHDIR}/orion.properties ${APP_HOME}
  	@${CP} ${WRKDIR}/default-web-site.xml ${WRKDIR}/rmi.xml ${APP_HOME}/config
  	@${ECHO_CMD} " [ DONE ]"
  
***************
*** 126,132 ****
  	@${ECHO_CMD} -n ">> Compiling and installing control program..."
  	@${SED} \
  	-e "/%%JAVA_ARGS%%/s///g" \
! 	-e "/%%JAR_ARGS%%/s///g" \
  	${WRKDIR}/daemonctl.c > ${WRKDIR}/daemonctl_.c
  	@cd ${WRKDIR} && ${CC} -ansi -o ${CONTROL_SCRIPT_NAME} daemonctl_.c
  	@${CP} ${WRKDIR}/${CONTROL_SCRIPT_NAME} ${CONTROL_SCRIPT}
--- 127,133 ----
  	@${ECHO_CMD} -n ">> Compiling and installing control program..."
  	@${SED} \
  	-e "/%%JAVA_ARGS%%/s///g" \
! 	-e "/%%JAR_ARGS%%/s//\"-p\",/g" \
  	${WRKDIR}/daemonctl.c > ${WRKDIR}/daemonctl_.c
  	@cd ${WRKDIR} && ${CC} -ansi -o ${CONTROL_SCRIPT_NAME} daemonctl_.c
  	@${CP} ${WRKDIR}/${CONTROL_SCRIPT_NAME} ${CONTROL_SCRIPT}
--- patch-aa ends here ---

--- patch-ab begins here ---
diff -c orion/pkg-plist orion-new/pkg-plist
*** orion/pkg-plist	Tue Mar 12 23:18:23 2002
--- orion-new/pkg-plist	Sun Aug 11 09:41:14 2002
***************
*** 317,322 ****
--- 317,323 ----
  %%T%%/taglibassembler.jar
  %%T%%/parser.jar
  %%T%%/orionconsole.jar
+ %%T%%/orion.properties
  %%T%%/orion.jar
  %%T%%/tools.jar
  %%T%%/mail.jar
--- patch-ab ends here ---

--- orion.properties begins here ---
#
# Properties read by Orion on startup
#
--- orion.properties ends here ---


>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?20020811082533.2FC7458B2>