From owner-freebsd-ports@FreeBSD.ORG Tue Jan 4 19:06:44 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 226B316A4CE for ; Tue, 4 Jan 2005 19:06:44 +0000 (GMT) Received: from postman.ripe.net (postman.ripe.net [193.0.0.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id A122343D3F for ; Tue, 4 Jan 2005 19:06:43 +0000 (GMT) (envelope-from marks@ripe.net) Received: by postman.ripe.net (Postfix, from userid 8) id BF28A25354; Tue, 4 Jan 2005 20:06:42 +0100 (CET) Received: from birch.ripe.net (birch.ripe.net [193.0.1.96]) by postman.ripe.net (Postfix) with ESMTP id DF5802535E for ; Tue, 4 Jan 2005 20:06:33 +0100 (CET) Received: from ripe.net (cow.ripe.net [193.0.1.239]) by birch.ripe.net (8.12.10/8.11.6) with SMTP id j04J6X8Q017276 for ; Tue, 4 Jan 2005 20:06:33 +0100 Received: (nullmailer pid 1485 invoked by uid 1001); Tue, 04 Jan 2005 19:06:33 -0000 Date: Tue, 4 Jan 2005 20:06:33 +0100 From: Mark Santcroos To: ports@freebsd.org Message-ID: <20050104190633.GD723@laptop.6bone.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Handles: MS6-6BONE, MS18417-RIPE X-RIPE-Spam-Level: X-RIPE-Spam-Tests: ALL_TRUSTED,BAYES_00 X-RIPE-Spam-Status: N 0.000173 / -5.9 X-RIPE-Signature: c7f5dbb2a7e15182e32e8c98b8336605 Subject: [PATCH] start perforce webserver from rc.d script X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 19:06:44 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline How about the attached patch to start the perforce webserver automatically if PERFORCE_WEB_START is configured in perforce.conf? Mark -- RIPE NCC - Delft University of Technology - The FreeBSD Project marks@ripe.net - m.a.santcroos@ewi.tudelft.nl - marks@freebsd.org --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="perforce.diff" --- perforce.sh Wed Dec 22 11:45:38 2004 +++ perforce.sh Tue Jan 4 18:22:55 2005 @@ -5,6 +5,7 @@ p4d=/usr/local/sbin/p4d p4ftpd=/usr/local/sbin/p4ftpd p4p=/usr/local/sbin/p4p +p4web=/usr/local/bin/p4web case $1 in start) @@ -21,6 +22,10 @@ echo -n ' p4p' $p4p $PERFORCE_PROXY_OPTIONS fi + if [ -x $p4web -a x$PERFORCE_WEB_START = xyes ]; then + echo -n ' p4web' + $p4web $PERFORCE_WEB_OPTIONS & + fi ;; stop) @@ -33,6 +38,9 @@ fi if [ -x $p4p ]; then killall -u 0 p4p > /dev/null 2>&1 && echo -n ' p4p' + fi + if [ -x $p4web ]; then + killall -u 0 p4web > /dev/null 2>&1 && echo -n ' p4web' fi ;; restart) --- perforce.conf Wed Dec 22 11:45:38 2004 +++ perforce.conf Tue Jan 4 20:04:05 2005 @@ -58,3 +58,10 @@ # Uncomment this line to have the proxy server started automatically # #PERFORCE_PROXY_START=yes + +# +# Perforce web server +# +PERFORCE_WEB_PORT="6060" +PERFORCE_WEB_OPTIONS="-b -l -w $PERFORCE_WEB_PORT -p $PERFORCE_PORT" +#PERFORCE_WEB_START=yes --SUOF0GtieIMvvwua--