2010-05-10 17:02:18 +02:00
|
|
|
# New ports collection makefile for: p4p
|
|
|
|
# Date created: 3 Apr 2010
|
|
|
|
# Whom: gordon@FreeBSD.org
|
2000-06-10 08:22:55 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2010-05-10 17:02:18 +02:00
|
|
|
PORTNAME= p4p
|
2012-01-14 03:39:35 +01:00
|
|
|
PORTVERSION= 2011.1.393975
|
2000-06-10 08:22:55 +02:00
|
|
|
CATEGORIES= devel
|
2010-05-10 17:02:18 +02:00
|
|
|
MASTER_SITES= ftp://ftp.perforce.com/perforce/${P4VERSION}/bin.${PLATFORM}/ \
|
|
|
|
http://filehost.perforce.com/perforce/r${P4VERSION}/bin.${PLATFORM}/
|
|
|
|
DISTNAME= p4p
|
2000-06-10 08:22:55 +02:00
|
|
|
EXTRACT_SUFX=
|
2001-09-01 20:57:08 +02:00
|
|
|
EXTRACT_ONLY= # none
|
2000-06-10 08:22:55 +02:00
|
|
|
|
2010-05-10 17:02:18 +02:00
|
|
|
MAINTAINER= gordon@FreeBSD.org
|
|
|
|
COMMENT= Perforce server
|
|
|
|
|
|
|
|
RUN_DEPENDS= p4:${PORTSDIR}/devel/p4
|
2000-06-10 08:22:55 +02:00
|
|
|
|
2011-11-22 06:10:44 +01:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
2007-05-26 20:16:54 +02:00
|
|
|
|
2010-05-10 17:02:18 +02:00
|
|
|
P4VERSION= r${PORTVERSION:S/^20//:C/\.[0-9]+$//}
|
|
|
|
DIST_SUBDIR= perforce/${PORTVERSION}/bin.${PLATFORM}
|
2010-10-28 23:00:21 +02:00
|
|
|
DISTINFO_FILE= ${MASTERDIR}/distinfo.${PLATFORM}
|
2006-08-27 22:34:34 +02:00
|
|
|
|
2006-09-03 02:56:27 +02:00
|
|
|
RESTRICTED= Restricted distribution
|
2000-06-10 08:22:55 +02:00
|
|
|
|
2010-05-10 17:02:18 +02:00
|
|
|
NO_BUILD= yes
|
2001-09-01 20:57:08 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2010-05-10 17:02:18 +02:00
|
|
|
P4CACHE?= /var/db/p4p
|
|
|
|
P4LOG?= /var/log/p4p.log
|
|
|
|
|
|
|
|
SUB_LIST= P4CACHE=${P4CACHE} \
|
|
|
|
P4LOG=${P4LOG}
|
|
|
|
|
|
|
|
USE_RC_SUBR= p4p.sh
|
2004-12-20 10:48:54 +01:00
|
|
|
|
2005-04-08 16:53:59 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-05-10 17:02:18 +02:00
|
|
|
.include "${.CURDIR}/../p4/Makefile.inc"
|
|
|
|
|
|
|
|
USERS= p4admin
|
|
|
|
GROUPS= p4admin
|
2001-09-01 20:57:08 +02:00
|
|
|
|
2000-06-10 08:22:55 +02:00
|
|
|
do-install:
|
2010-05-10 17:02:18 +02:00
|
|
|
${INSTALL_PROGRAM} ${_DISTDIR}/p4p ${PREFIX}/sbin/
|
2001-09-01 20:57:08 +02:00
|
|
|
|
|
|
|
post-install:
|
2010-05-10 17:02:18 +02:00
|
|
|
${MKDIR} ${DESTDIR}${P4CACHE}
|
|
|
|
${CHOWN} p4admin:p4admin ${DESTDIR}${P4CACHE}
|
|
|
|
${CHMOD} 750 ${DESTDIR}${P4CACHE}
|
|
|
|
${TOUCH} ${DESTDIR}${P4LOG}
|
|
|
|
${CHOWN} p4admin:p4admin ${DESTDIR}${P4LOG}
|
|
|
|
${CHMOD} 640 ${DESTDIR}${P4LOG}
|
|
|
|
@${ECHO_CMD} "@exec ${MKDIR} ${DESTDIR}${P4CACHE}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${CHOWN} p4admin:p4admin ${DESTDIR}${P4CACHE}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${CHMOD} 750 ${DESTDIR}${P4CACHE}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${TOUCH} ${DESTDIR}${P4LOG}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${CHOWN} p4admin:p4admin ${DESTDIR}${P4LOG}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${CHMOD} 640 ${DESTDIR}${P4LOG}" >> ${TMPPLIST}
|
2000-06-10 08:22:55 +02:00
|
|
|
|
2001-09-01 20:57:08 +02:00
|
|
|
.include <bsd.port.post.mk>
|