mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
879c68354c
http://www.perforce.com/perforce/products/p4web.html PR: ports/145824 Submitted by: gordon Approved by: tabthorpe (mentor)
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# New ports collection makefile for: p4web
|
|
# Date created: 3 Apr 2010
|
|
# Whom: gordon@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= p4web
|
|
PORTVERSION= 2009.2.228098
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.perforce.com/perforce/${P4VERSION}/bin.${PLATFORM}/ \
|
|
http://filehost.perforce.com/perforce/r${P4VERSION}/bin.${PLATFORM}/
|
|
DISTNAME= p4web
|
|
EXTRACT_SUFX=
|
|
EXTRACT_ONLY= # none
|
|
|
|
MAINTAINER= gordon@FreeBSD.org
|
|
COMMENT= Perforce server
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386 sparc64
|
|
|
|
P4VERSION= r${PORTVERSION:S/^20//:C/\.[0-9]+$//}
|
|
DIST_SUBDIR= perforce/${PORTVERSION}/bin.${PLATFORM}
|
|
MD5_FILE= ${MASTERDIR}/distinfo.${PLATFORM}
|
|
|
|
RESTRICTED= Restricted distribution
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
P4LOG?= /var/log/p4web.log
|
|
|
|
SUB_LIST= P4LOG=${P4LOG}
|
|
|
|
USE_RC_SUBR= p4web.sh
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "${.CURDIR}/../p4/Makefile.inc"
|
|
|
|
USERS= p4admin
|
|
GROUPS= p4admin
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${_DISTDIR}/p4web ${PREFIX}/sbin/
|
|
|
|
post-install:
|
|
${TOUCH} ${DESTDIR}${P4LOG}
|
|
${CHOWN} p4admin:p4admin ${DESTDIR}${P4LOG}
|
|
${CHMOD} 640 ${DESTDIR}${P4LOG}
|
|
@${ECHO_CMD} "@exec ${TOUCH} ${DESTDIR}${P4LOG}" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@exec ${CHOWN} p4admin:p4admin ${DESTDIR}${P4LOG}" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@exec ${CHMOD} 640 ${DESTDIR}${P4LOG}" >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.post.mk>
|