76f8f38074
P4D, the Perforce Server, manages the Perforce central file repository (the "depot"), tracks Perforce user operations, and records activity in the Perforce SCM database. You need one Perforce Server to support all of the users in your enterprise.
40 lines
983 B
Makefile
40 lines
983 B
Makefile
# $NetBSD: Makefile,v 1.1.1.2 2002/09/01 02:25:04 schmonz Exp $
|
|
#
|
|
|
|
DISTNAME= p4d
|
|
HOMEPAGE= http://www.perforce.com/perforce/products/p4d.html
|
|
COMMENT= Perforce SCM server
|
|
|
|
P4BINONLY= # defined
|
|
|
|
.include "../../devel/p4/Makefile.common"
|
|
|
|
FILES_SUBST+= P4USER=${P4USER:Q}
|
|
FILES_SUBST+= P4ROOT=${P4ROOT:Q}
|
|
FILES_SUBST+= P4PORT=${P4PORT:Q}
|
|
FILES_SUBST+= P4LOG=${P4LOG:Q}
|
|
FILES_SUBST+= P4JOURNAL=${P4JOURNAL:Q}
|
|
|
|
PKG_GROUPS?= ${P4GROUP}
|
|
PKG_USERS?= ${P4USER}:${P4GROUP}::Perforce\\ Server:${P4ROOT}
|
|
|
|
OWN_DIRS_PERMS= ${P4ROOT} ${P4USER} ${P4GROUP} 750
|
|
|
|
RCD_SCRIPTS= p4d
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
P4USER?= perforce
|
|
P4GROUP?= p4admin
|
|
P4ROOT?= /var/perforce
|
|
P4PORT?= 1666
|
|
P4LOG?= log
|
|
P4JOURNAL?= journal
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${PREFIX}/sbin
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/p4d.sh > ${WRKDIR}/p4d
|
|
${INSTALL_SCRIPT} ${WRKDIR}/p4d ${RCD_SCRIPTS_EXAMPLEDIR}
|
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|