aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2000-10-28 09:32:51 +0800
committerjeh <jeh@FreeBSD.org>2000-10-28 09:32:51 +0800
commit887bd439d5f43c0a896b99c2a1c0f29001b36eda (patch)
tree41afeafa3476cbf1e729382106ecef0ff4dbf912 /devel
parent476fd13bd921aee5dc3e4c34dc0a8863dc6350a4 (diff)
downloadfreebsd-ports-gnome-887bd439d5f43c0a896b99c2a1c0f29001b36eda.tar.gz
freebsd-ports-gnome-887bd439d5f43c0a896b99c2a1c0f29001b36eda.tar.zst
freebsd-ports-gnome-887bd439d5f43c0a896b99c2a1c0f29001b36eda.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
Diffstat (limited to 'devel')
-rw-r--r--devel/p4/Makefile21
-rw-r--r--devel/p4/distinfo9
-rw-r--r--devel/p4/files/perforce18
-rw-r--r--devel/p4/files/perforce.sh.in11
-rw-r--r--devel/p4/pkg-plist3
-rw-r--r--devel/p4d/Makefile21
-rw-r--r--devel/p4d/distinfo9
-rw-r--r--devel/p4d/files/perforce18
-rw-r--r--devel/p4d/files/perforce.sh.in11
-rw-r--r--devel/p4d/pkg-plist3
-rw-r--r--devel/p4ftpd/Makefile21
-rw-r--r--devel/p4ftpd/distinfo9
-rw-r--r--devel/p4ftpd/files/perforce18
-rw-r--r--devel/p4ftpd/files/perforce.sh.in11
-rw-r--r--devel/p4ftpd/pkg-plist3
-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
-rw-r--r--devel/p4web/Makefile21
-rw-r--r--devel/p4web/distinfo9
-rw-r--r--devel/p4web/files/perforce18
-rw-r--r--devel/p4web/files/perforce.sh.in11
-rw-r--r--devel/p4web/pkg-plist3
-rw-r--r--devel/perforce/Makefile21
-rw-r--r--devel/perforce/distinfo9
-rw-r--r--devel/perforce/files/perforce18
-rw-r--r--devel/perforce/files/perforce.sh.in11
-rw-r--r--devel/perforce/pkg-plist3
30 files changed, 312 insertions, 60 deletions
diff --git a/devel/p4/Makefile b/devel/p4/Makefile
index 3580b0038af8..0ce97841c745 100644
--- a/devel/p4/Makefile
+++ b/devel/p4/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/p4/distinfo b/devel/p4/distinfo
index 60139d009bc9..ef50abcf52b1 100644
--- a/devel/p4/distinfo
+++ b/devel/p4/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/p4/files/perforce b/devel/p4/files/perforce
new file mode 100644
index 000000000000..9c7b8134a405
--- /dev/null
+++ b/devel/p4/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/p4/files/perforce.sh.in b/devel/p4/files/perforce.sh.in
new file mode 100644
index 000000000000..646b16f9bc8d
--- /dev/null
+++ b/devel/p4/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/p4/pkg-plist b/devel/p4/pkg-plist
index ecd114bd72f1..f5fca512c3c6 100644
--- a/devel/p4/pkg-plist
+++ b/devel/p4/pkg-plist
@@ -1,2 +1,5 @@
bin/p4
+bin/p4web
sbin/p4d
+etc/perforce
+etc/rc.d/perforce.sh
diff --git a/devel/p4d/Makefile b/devel/p4d/Makefile
index 3580b0038af8..0ce97841c745 100644
--- a/devel/p4d/Makefile
+++ b/devel/p4d/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/p4d/distinfo b/devel/p4d/distinfo
index 60139d009bc9..ef50abcf52b1 100644
--- a/devel/p4d/distinfo
+++ b/devel/p4d/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/p4d/files/perforce b/devel/p4d/files/perforce
new file mode 100644
index 000000000000..9c7b8134a405
--- /dev/null
+++ b/devel/p4d/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/p4d/files/perforce.sh.in b/devel/p4d/files/perforce.sh.in
new file mode 100644
index 000000000000..646b16f9bc8d
--- /dev/null
+++ b/devel/p4d/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/p4d/pkg-plist b/devel/p4d/pkg-plist
index ecd114bd72f1..f5fca512c3c6 100644
--- a/devel/p4d/pkg-plist
+++ b/devel/p4d/pkg-plist
@@ -1,2 +1,5 @@
bin/p4
+bin/p4web
sbin/p4d
+etc/perforce
+etc/rc.d/perforce.sh
diff --git a/devel/p4ftpd/Makefile b/devel/p4ftpd/Makefile
index 3580b0038af8..0ce97841c745 100644
--- a/devel/p4ftpd/Makefile
+++ b/devel/p4ftpd/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/p4ftpd/distinfo b/devel/p4ftpd/distinfo
index 60139d009bc9..ef50abcf52b1 100644
--- a/devel/p4ftpd/distinfo
+++ b/devel/p4ftpd/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/p4ftpd/files/perforce b/devel/p4ftpd/files/perforce
new file mode 100644
index 000000000000..9c7b8134a405
--- /dev/null
+++ b/devel/p4ftpd/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/p4ftpd/files/perforce.sh.in b/devel/p4ftpd/files/perforce.sh.in
new file mode 100644
index 000000000000..646b16f9bc8d
--- /dev/null
+++ b/devel/p4ftpd/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/p4ftpd/pkg-plist b/devel/p4ftpd/pkg-plist
index ecd114bd72f1..f5fca512c3c6 100644
--- a/devel/p4ftpd/pkg-plist
+++ b/devel/p4ftpd/pkg-plist
@@ -1,2 +1,5 @@
bin/p4
+bin/p4web
sbin/p4d
+etc/perforce
+etc/rc.d/perforce.sh
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
diff --git a/devel/p4web/Makefile b/devel/p4web/Makefile
index 3580b0038af8..0ce97841c745 100644
--- a/devel/p4web/Makefile
+++ b/devel/p4web/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/p4web/distinfo b/devel/p4web/distinfo
index 60139d009bc9..ef50abcf52b1 100644
--- a/devel/p4web/distinfo
+++ b/devel/p4web/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/p4web/files/perforce b/devel/p4web/files/perforce
new file mode 100644
index 000000000000..9c7b8134a405
--- /dev/null
+++ b/devel/p4web/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/p4web/files/perforce.sh.in b/devel/p4web/files/perforce.sh.in
new file mode 100644
index 000000000000..646b16f9bc8d
--- /dev/null
+++ b/devel/p4web/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/p4web/pkg-plist b/devel/p4web/pkg-plist
index ecd114bd72f1..f5fca512c3c6 100644
--- a/devel/p4web/pkg-plist
+++ b/devel/p4web/pkg-plist
@@ -1,2 +1,5 @@
bin/p4
+bin/p4web
sbin/p4d
+etc/perforce
+etc/rc.d/perforce.sh
diff --git a/devel/perforce/Makefile b/devel/perforce/Makefile
index 3580b0038af8..0ce97841c745 100644
--- a/devel/perforce/Makefile
+++ b/devel/perforce/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/perforce/distinfo b/devel/perforce/distinfo
index 60139d009bc9..ef50abcf52b1 100644
--- a/devel/perforce/distinfo
+++ b/devel/perforce/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/perforce/files/perforce b/devel/perforce/files/perforce
new file mode 100644
index 000000000000..9c7b8134a405
--- /dev/null
+++ b/devel/perforce/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/perforce/files/perforce.sh.in b/devel/perforce/files/perforce.sh.in
new file mode 100644
index 000000000000..646b16f9bc8d
--- /dev/null
+++ b/devel/perforce/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/perforce/pkg-plist b/devel/perforce/pkg-plist
index ecd114bd72f1..f5fca512c3c6 100644
--- a/devel/perforce/pkg-plist
+++ b/devel/perforce/pkg-plist
@@ -1,2 +1,5 @@
bin/p4
+bin/p4web
sbin/p4d
+etc/perforce
+etc/rc.d/perforce.sh