From owner-freebsd-ports Sun Aug 11 1:30:16 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 748E937B400 for ; Sun, 11 Aug 2002 01:30:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52A1443E42 for ; Sun, 11 Aug 2002 01:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7B8U2JU027424 for ; Sun, 11 Aug 2002 01:30:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7B8U2ca027423; Sun, 11 Aug 2002 01:30:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C53D337B400 for ; Sun, 11 Aug 2002 01:25:35 -0700 (PDT) Received: from midgard.lule2.infologigruppen.se (modgunn.iii-norr.com [213.242.135.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB6B043E77 for ; Sun, 11 Aug 2002 01:25:34 -0700 (PDT) (envelope-from admglz@midgard.lule2.infologigruppen.se) Received: by midgard.lule2.infologigruppen.se (Postfix, from userid 1001) id 2FC7458B2; Sun, 11 Aug 2002 10:25:33 +0200 (CEST) Message-Id: <20020811082533.2FC7458B2@midgard.lule2.infologigruppen.se> Date: Sun, 11 Aug 2002 10:25:33 +0200 (CEST) From: User &Goran Lowkrantz Reply-To: User &Goran Lowkrantz To: FreeBSD-gnats-submit@FreeBSD.org Cc: goran.lowkrantz@ismobile.com X-Send-Pr-Version: 3.113 Subject: ports/41538: Allow default installed Orion to be configured by user Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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