summaryrefslogtreecommitdiffstats
path: root/devel/p4p/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/p4p/files')
-rw-r--r--devel/p4p/files/perforce18
-rw-r--r--devel/p4p/files/perforce.sh.in11
2 files changed, 29 insertions, 0 deletions
diff --git a/devel/p4p/files/perforce b/devel/p4p/files/perforce
new file mode 100644
index 0000000..9c7b813
--- /dev/null
+++ b/devel/p4p/files/perforce
@@ -0,0 +1,18 @@
+#
+# Perforce FreeBSD configuration file
+#
+
+#
+# Perforce ROOT
+#
+PERFORCE_ROOT="/usr/p4root"
+
+#
+# Perforce options (see man p4d)
+#
+PERFORCE_OPTIONS="-v server=1 -L /var/log/perforce"
+
+#
+# Uncomment this line to have the server started automatically
+#
+#PERFORCE_START=yes
diff --git a/devel/p4p/files/perforce.sh.in b/devel/p4p/files/perforce.sh.in
new file mode 100644
index 0000000..646b16f
--- /dev/null
+++ b/devel/p4p/files/perforce.sh.in
@@ -0,0 +1,11 @@
+#!/bin/sh
+case $1 in
+ start)
+ [ -f @PREFIX@/etc/perforce ] && . @PREFIX@/etc/perforce
+ if [ x$PERFORCE_START = xyes ]; then
+ echo -n " perforce server"
+ p4d -r $PERFORCE_ROOT $PERFORCE_OPTIONS
+ fi
+ ;;
+ *) ;;
+esac
OpenPOWER on IntegriCloud