mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
36d6e24dcb
Perforce do micro-patches without changing the file names. PR: 192114 Approved by: gordon
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# Created by: gordon@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= p4p
|
|
PORTVERSION= 2014.1.895936
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.perforce.com/perforce/${P4VERSION}/bin.${PLATFORM}/ \
|
|
http://filehost.perforce.com/perforce/r${P4VERSION}/bin.${PLATFORM}/
|
|
DISTNAME= p4p
|
|
EXTRACT_SUFX=
|
|
EXTRACT_ONLY= # none
|
|
|
|
MAINTAINER= gordon@FreeBSD.org
|
|
COMMENT= Perforce server
|
|
|
|
RUN_DEPENDS= p4:${PORTSDIR}/devel/p4
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
P4VERSION= r${PORTVERSION:S/^20//:C/\.[0-9]+$//}
|
|
DIST_SUBDIR= perforce/${PORTVERSION}/bin.${PLATFORM}
|
|
DISTINFO_FILE= ${MASTERDIR}/distinfo.${PLATFORM}
|
|
|
|
RESTRICTED= Restricted distribution
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
P4CACHE?= /var/db/p4p
|
|
P4LOG?= /var/log/p4p.log
|
|
|
|
SUB_LIST= P4CACHE=${P4CACHE} \
|
|
P4LOG=${P4LOG}
|
|
|
|
USE_RC_SUBR= p4p
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "${.CURDIR}/../p4/Makefile.inc"
|
|
|
|
USERS= p4admin
|
|
GROUPS= p4admin
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${_DISTDIR}/p4p ${STAGEDIR}${PREFIX}/sbin/
|
|
@${MKDIR} ${STAGEDIR}${P4CACHE}
|
|
@${ECHO_CMD} "@exec ${MKDIR} ${P4CACHE}" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@exec ${CHOWN} p4admin:p4admin ${P4CACHE}" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@exec ${CHMOD} 750 ${P4CACHE}" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@unexec ${RMDIR} ${P4CACHE} 2>/dev/null || true" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@exec ${TOUCH} ${P4LOG}" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@exec ${CHOWN} p4admin:p4admin ${P4LOG}" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@exec ${CHMOD} 640 ${P4LOG}" >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.post.mk>
|