View | Details | Raw Unified | Return to bug 21863
Collapse All | Expand All

(-)perforce/Makefile (-5 / +13 lines)
Lines 6-33 Link Here
6
#
6
#
7
7
8
PORTNAME= 	perforce
8
PORTNAME= 	perforce
9
PORTVERSION= 	99.2
9
PORTVERSION= 	00.1
10
CATEGORIES=	devel
10
CATEGORIES=	devel
11
MASTER_SITES=	ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/bin.freebsd/ \
11
MASTER_SITES=	ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/bin.freebsd/ \
12
		http://www.dsmit.com/p4/ \
12
		http://www.dsmit.com/p4/ \
13
		ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/doc/man/
13
		ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/doc/man/
14
EXTRACT_SUFX=
14
EXTRACT_SUFX=
15
DISTFILES=	p4 p4d p4.1 p4d.1
15
DISTFILES=	p4 p4d p4web p4.1 p4d.1
16
DIST_SUBDIR=	perforce
16
DIST_SUBDIR=	perforce
17
17
18
MAINTAINER=	sam@inf.enst.fr
18
MAINTAINER=	sam@inf.enst.fr
19
19
20
NO_PACKAGE=	Restricted distribution
20
NO_PACKAGE=	Restricted distribution
21
NO_CDROM=	Restricted distribution
21
NO_CDROM=	Restricted distribution
22
NO_BUILD=	yes
23
MAN1=		p4.1 p4d.1
22
MAN1=		p4.1 p4d.1
24
23
25
do-extract:
24
do-extract:
26
	@${MKDIR} ${WRKSRC}
25
	@${MKDIR} ${WRKSRC}
27
26
27
do-build:
28
	${SED} -e "s,@PREFIX@,${PREFIX},g" \
29
		< files/perforce.sh.in > ${WRKSRC}/perforce.sh
30
28
do-install:
31
do-install:
29
	${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4 ${PREFIX}/bin
32
	${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4 ${PREFIX}/bin/
30
	${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4d ${PREFIX}/sbin
33
	${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4web ${PREFIX}/bin/
34
	${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/p4d ${PREFIX}/sbin/
35
	if [ ! -f ${PREFIX}/etc/perforce ]; then \
36
	  ${INSTALL_DATA} files/perforce ${PREFIX}/etc/; \
37
	fi
38
	${INSTALL_SCRIPT} ${WRKSRC}/perforce.sh ${PREFIX}/etc/rc.d/
31
.for PERFMAN in p4 p4d
39
.for PERFMAN in p4 p4d
32
	${INSTALL_MAN} ${DISTDIR}/${DIST_SUBDIR}/${PERFMAN}.1 ${PREFIX}/man/man1
40
	${INSTALL_MAN} ${DISTDIR}/${DIST_SUBDIR}/${PERFMAN}.1 ${PREFIX}/man/man1
33
.endfor
41
.endfor
(-)perforce/distinfo (-4 / +5 lines)
Lines 1-4 Link Here
1
MD5 (perforce/p4) = 6394c00f803fec549b3d22539bbdbe4a
1
MD5 (perforce/p4) = 9456775cd3acbdf7b61fa5cc9abaa929
2
MD5 (perforce/p4d) = 0e14a67349b32ac413876b010ad41024
2
MD5 (perforce/p4d) = f85238c698d4fe724289edd62809a16c
3
MD5 (perforce/p4.1) = 316b0cf0e0c6e0ff63ecdb612e45f58a
3
MD5 (perforce/p4web) = efe8d09184767fd1c8d9b63ce6d9f7d4
4
MD5 (perforce/p4d.1) = e2f1b2c60690ac4d4d3881faee5aa5e0
4
MD5 (perforce/p4.1) = ff71fd46bccf768a1681252d358b2b49
5
MD5 (perforce/p4d.1) = 17383209ae44dd2383f62cb47fe4ba78
(-)perforce/pkg-plist (+3 lines)
Lines 1-2 Link Here
1
bin/p4
1
bin/p4
2
bin/p4web
2
sbin/p4d
3
sbin/p4d
4
etc/perforce
5
etc/rc.d/perforce.sh
(-)perforce/files/perforce (+18 lines)
Added Link Here
1
#
2
# Perforce FreeBSD configuration file
3
#
4
5
#
6
# Perforce ROOT
7
#
8
PERFORCE_ROOT="/usr/p4root"
9
10
#
11
# Perforce options (see man p4d)
12
#
13
PERFORCE_OPTIONS="-v server=1 -L /var/log/perforce"
14
15
#
16
# Uncomment this line to have the server started automatically
17
#
18
#PERFORCE_START=yes
(-)perforce/files/perforce.sh.in (+11 lines)
Added Link Here
1
#!/bin/sh
2
case $1 in
3
  start)
4
    [ -f @PREFIX@/etc/perforce ] && . @PREFIX@/etc/perforce
5
    if [ x$PERFORCE_START = xyes ]; then
6
      echo -n " perforce server"
7
      p4d -r $PERFORCE_ROOT $PERFORCE_OPTIONS
8
    fi
9
    ;;
10
  *) ;;
11
esac

Return to bug 21863