aboutsummaryrefslogtreecommitdiff
path: root/devel/p4p
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2000-10-28 01:32:51 +0000
committerJames E. Housley <jeh@FreeBSD.org>2000-10-28 01:32:51 +0000
commitfefed1bf3b9a276d32ce2e6b207354d93157be22 (patch)
tree0ae96339504e1318691deaa6d74cd0ddb50f998d /devel/p4p
parent5321816733b99598b98461ec1e15fa41101a2543 (diff)
downloadports-fefed1bf3b9a276d32ce2e6b207354d93157be22.tar.gz
ports-fefed1bf3b9a276d32ce2e6b207354d93157be22.zip
Update? from version 99.2 to 00.1 (Funny math). Added PORTEPOCH=1
PR: 21863 Submitted by: Samuel Tardieu <sam@inf.enst.fr> MAINTAINER
Notes
Notes: svn path=/head/; revision=34326
Diffstat (limited to 'devel/p4p')
-rw-r--r--devel/p4p/Makefile21
-rw-r--r--devel/p4p/distinfo9
-rw-r--r--devel/p4p/files/perforce18
-rw-r--r--devel/p4p/files/perforce.sh.in11
-rw-r--r--devel/p4p/pkg-plist3
5 files changed, 52 insertions, 10 deletions
diff --git a/devel/p4p/Makefile b/devel/p4p/Makefile
index 3580b0038af8..0ce97841c745 100644
--- a/devel/p4p/Makefile
+++ b/devel/p4p/Makefile
@@ -5,29 +5,38 @@
# $FreeBSD$
#
-PORTNAME= perforce
-PORTVERSION= 99.2
+PORTNAME= perforce
+PORTVERSION= 00.1
+PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/bin.freebsd/ \
http://www.dsmit.com/p4/ \
ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/doc/man/
EXTRACT_SUFX=
-DISTFILES= p4 p4d p4.1 p4d.1
+DISTFILES= p4 p4d p4web p4.1 p4d.1
DIST_SUBDIR= perforce
MAINTAINER= sam@inf.enst.fr
NO_PACKAGE= Restricted distribution
NO_CDROM= Restricted distribution
-NO_BUILD= yes
MAN1= p4.1 p4d.1
do-extract:
@${MKDIR} ${WRKSRC}
+do-build:
+ ${SED} -e "s,@PREFIX@,${PREFIX},g" \
+ < ${FILESDIR}/perforce.sh.in > ${WRKSRC}/perforce.sh
+
do-install:
- ${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4 ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4d ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4 ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4web ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4d ${PREFIX}/sbin/
+ if [ ! -f ${PREFIX}/etc/perforce ]; then \
+ ${INSTALL_DATA} ${FILESDIR}/perforce ${PREFIX}/etc/; \
+ fi
+ ${INSTALL_SCRIPT} ${WRKSRC}/perforce.sh ${PREFIX}/etc/rc.d/
.for PERFMAN in p4 p4d
${INSTALL_MAN} ${DISTDIR}/${DIST_SUBDIR}/${PERFMAN}.1 ${PREFIX}/man/man1
.endfor
diff --git a/devel/p4p/distinfo b/devel/p4p/distinfo
index 60139d009bc9..ef50abcf52b1 100644
--- a/devel/p4p/distinfo
+++ b/devel/p4p/distinfo
@@ -1,4 +1,5 @@
-MD5 (perforce/p4) = 6394c00f803fec549b3d22539bbdbe4a
-MD5 (perforce/p4d) = 0e14a67349b32ac413876b010ad41024
-MD5 (perforce/p4.1) = 316b0cf0e0c6e0ff63ecdb612e45f58a
-MD5 (perforce/p4d.1) = e2f1b2c60690ac4d4d3881faee5aa5e0
+MD5 (perforce/p4) = 9456775cd3acbdf7b61fa5cc9abaa929
+MD5 (perforce/p4d) = f85238c698d4fe724289edd62809a16c
+MD5 (perforce/p4web) = efe8d09184767fd1c8d9b63ce6d9f7d4
+MD5 (perforce/p4.1) = ff71fd46bccf768a1681252d358b2b49
+MD5 (perforce/p4d.1) = 17383209ae44dd2383f62cb47fe4ba78
diff --git a/devel/p4p/files/perforce b/devel/p4p/files/perforce
new file mode 100644
index 000000000000..9c7b8134a405
--- /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 000000000000..646b16f9bc8d
--- /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
diff --git a/devel/p4p/pkg-plist b/devel/p4p/pkg-plist
index ecd114bd72f1..f5fca512c3c6 100644
--- a/devel/p4p/pkg-plist
+++ b/devel/p4p/pkg-plist
@@ -1,2 +1,5 @@
bin/p4
+bin/p4web
sbin/p4d
+etc/perforce
+etc/rc.d/perforce.sh