diff options
author | James E. Housley <jeh@FreeBSD.org> | 2000-10-28 01:32:51 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2000-10-28 01:32:51 +0000 |
commit | fefed1bf3b9a276d32ce2e6b207354d93157be22 (patch) | |
tree | 0ae96339504e1318691deaa6d74cd0ddb50f998d /devel/perforce | |
parent | Add gnurobots 1.0D, a game/diversion where you construct a program for a (diff) |
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/perforce')
-rw-r--r-- | devel/perforce/Makefile | 21 | ||||
-rw-r--r-- | devel/perforce/distinfo | 9 | ||||
-rw-r--r-- | devel/perforce/files/perforce | 18 | ||||
-rw-r--r-- | devel/perforce/files/perforce.sh.in | 11 | ||||
-rw-r--r-- | devel/perforce/pkg-plist | 3 |
5 files changed, 52 insertions, 10 deletions
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 |