Changeset View
Changeset View
Standalone View
Standalone View
devel/p4d/Makefile
# Created by: gordon@FreeBSD.org | # Created by: gordon@FreeBSD.org | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= p4d | PORTNAME= p4d | ||||
PORTVERSION= 2014.2.1045032 | PORTVERSION= 2015.1.1171507 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= ftp://ftp.perforce.com/perforce/${P4VERSION}/bin.${PLATFORM}/ \ | MASTER_SITES= ftp://ftp.perforce.com/perforce/${P4VERSION}/bin.${PLATFORM}/ \ | ||||
http://filehost.perforce.com/perforce/${P4VERSION}/bin.${PLATFORM}/ | http://filehost.perforce.com/perforce/${P4VERSION}/bin.${PLATFORM}/ | ||||
DISTNAME= p4d | DISTNAME= p4d | ||||
EXTRACT_SUFX= | EXTRACT_SUFX= | ||||
EXTRACT_ONLY= # none | EXTRACT_ONLY= # none | ||||
MAINTAINER= gordon@FreeBSD.org | MAINTAINER= gordon@FreeBSD.org | ||||
Show All 10 Lines | |||||
RESTRICTED= Restricted distribution | RESTRICTED= Restricted distribution | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
NO_WRKSUBDIR= yes | NO_WRKSUBDIR= yes | ||||
P4ROOT?= /var/db/p4d | P4ROOT?= /var/db/p4d | ||||
P4LOG?= /var/log/p4d.log | P4LOG?= /var/log/p4d.log | ||||
PLIST_SUB= P4ROOT=${P4ROOT} | |||||
SUB_LIST= P4ROOT=${P4ROOT} \ | SUB_LIST= P4ROOT=${P4ROOT} \ | ||||
P4LOG=${P4LOG} | P4LOG=${P4LOG} | ||||
USE_RC_SUBR= p4d | USE_RC_SUBR= p4d | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.include "${.CURDIR}/../p4/Makefile.inc" | .include "${.CURDIR}/../p4/Makefile.inc" | ||||
USERS= p4admin | USERS= p4admin | ||||
GROUPS= p4admin | GROUPS= p4admin | ||||
post-stage: | |||||
@${MKDIR} ${STAGEDIR}${P4ROOT} | |||||
mat: We try to keep the targets in the order they're run, so that it's easier to read, so, in theory… | |||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${_DISTDIR}/p4d ${STAGEDIR}${PREFIX}/sbin/ | ${INSTALL_PROGRAM} ${_DISTDIR}/p4d ${STAGEDIR}${PREFIX}/sbin/ | ||||
@${MKDIR} ${STAGEDIR}${P4ROOT} | |||||
@${ECHO_CMD} "@exec ${MKDIR} ${P4ROOT}" >> ${TMPPLIST} | |||||
@${ECHO_CMD} "@exec ${CHOWN} p4admin:p4admin ${P4ROOT}" >> ${TMPPLIST} | |||||
@${ECHO_CMD} "@exec ${CHMOD} 750 ${P4ROOT}" >> ${TMPPLIST} | |||||
@${ECHO_CMD} "@unexec ${RMDIR} ${P4ROOT} 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> | .include <bsd.port.post.mk> |
We try to keep the targets in the order they're run, so that it's easier to read, so, in theory, this one should go after do-install.
Now, there's no need to have two targets, so just add the MKDIR to the do-install target.