perforce startup script change

Mark Santcroos marks at ripe.net
Tue Feb 17 13:52:55 PST 2004


What do you think about the attached patch?

It configures the startup (default=disabled) of the perforce webserver.

Mark
-------------- next part --------------
diff -ur old/perforce.conf.in new/perforce.conf.in
--- old/perforce.conf.in	Tue Feb 17 22:40:53 2004
+++ new/perforce.conf.in	Tue Feb 17 22:50:08 2004
@@ -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
diff -ur old/perforce.sh.in new/perforce.sh.in
--- old/perforce.sh.in	Tue Feb 17 22:40:53 2004
+++ new/perforce.sh.in	Tue Feb 17 22:47:56 2004
@@ -5,6 +5,7 @@
 p4d=@PREFIX@/sbin/p4d
 p4ftpd=@PREFIX@/sbin/p4ftpd
 p4p=@PREFIX@/sbin/p4p
+p4web=@PREFIX@/bin/p4web
 
 case $1 in
 start)
@@ -20,6 +21,10 @@
     if [ -x $p4p -a x$PERFORCE_PROXY_START = xyes ]; then
         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
 
     ;;


More information about the freebsd-ports mailing list