diff options
author | edwin <edwin@FreeBSD.org> | 2003-01-30 06:47:58 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-01-30 06:47:58 +0000 |
commit | 9298925d011c4064d6e74526e394ad1f6049ad23 (patch) | |
tree | 06d812e79cbc009e15497d7bc68fcfb594d632d2 /devel/p4web/files | |
parent | 56e0fd76977a49ce82a297fd409c0c894ad1039e (diff) | |
download | FreeBSD-ports-9298925d011c4064d6e74526e394ad1f6049ad23.zip FreeBSD-ports-9298925d011c4064d6e74526e394ad1f6049ad23.tar.gz |
Maintainer update: Perforce has released new version for i386, 2002.2
PR: ports/46745
Submitted by: David Marshall <marshall@chezmarshall.com>
Diffstat (limited to 'devel/p4web/files')
-rw-r--r-- | devel/p4web/files/perforce.conf.in | 22 | ||||
-rw-r--r-- | devel/p4web/files/perforce.sh.in | 9 |
2 files changed, 30 insertions, 1 deletions
diff --git a/devel/p4web/files/perforce.conf.in b/devel/p4web/files/perforce.conf.in index a98aa38..5db4fde 100644 --- a/devel/p4web/files/perforce.conf.in +++ b/devel/p4web/files/perforce.conf.in @@ -15,11 +15,21 @@ PERFORCE_ROOT="@PERFORCE_ROOT@" PERFORCE_USER="@PERFORCE_USER@" # -# p4d port (default: 1666) +# p4d/p4p port (default: 1666) # PERFORCE_PORT="@PERFORCE_PORT@" # +# p4p cache directory +# +PERFORCE_PROXY_CACHE="@PERFORCE_CACHE@" + +# +# p4p target server (default: perforce:1666) +# +PERFORCE_PROXY_TARGET="@PERFORCE_TARGET@" + +# # p4d options (see man p4d) # PERFORCE_OPTIONS="-d -p $PERFORCE_PORT -v server=1 -L @PERFORCE_LOGS@/p4d.log" @@ -38,3 +48,13 @@ PERFORCE_FTPD_OPTIONS="-d -p $PERFORCE_PORT -v server=1 -L @PERFORCE_LOGS@/p4ftp # Uncomment this line to have the server started automatically # #PERFORCE_FTPD_START=yes + +# +# p4p options (see p4p -h) +# +PERFORCE_PROXY_OPTIONS="-d -p $PERFORCE_PORT -t $PERFORCE_PROXY_TARGET -r $PERFORCE_PROXY_CACHE -v server=1 -L @PERFORCE_LOGS@/p4p.log" + +# +# Uncomment this line to have the proxy server started automatically +# +#PERFORCE_PROXY_START=yes diff --git a/devel/p4web/files/perforce.sh.in b/devel/p4web/files/perforce.sh.in index 38cdb14..4590c51 100644 --- a/devel/p4web/files/perforce.sh.in +++ b/devel/p4web/files/perforce.sh.in @@ -4,6 +4,7 @@ p4d=@PREFIX@/sbin/p4d p4ftpd=@PREFIX@/sbin/p4ftpd +p4p=@PREFIX@/sbin/p4p case $1 in start) @@ -16,6 +17,11 @@ start) echo -n ' p4ftpd' $p4ftpd $PERFORCE_FTPD_OPTIONS fi + if [ -x $p4p -a x$PERFORCE_PROXY_START = xyes ]; then + echo -n ' p4p' + $p4p $PERFORCE_PROXY_OPTIONS + fi + ;; stop) [ -f @PREFIX@/etc/perforce.conf ] && . @PREFIX@/etc/perforce.conf @@ -25,6 +31,9 @@ stop) if [ -x $p4d ]; then killall -u $PERFORCE_USER p4d >/dev/null 2>&1 && echo -n ' p4d' fi + if [ -x $p4p ]; then + killall -u 0 p4p > /dev/null 2>&1 && echo -n ' p4p' + fi ;; restart) $0 stop |