- Use ${PW} variable.

PR:		122910
Submitted by:	Matthew Seaman <m.seaman@infracaninophile.co.uk> (maintainer)
This commit is contained in:
Martin Wilke 2008-04-24 22:29:35 +00:00
parent 532af5b042
commit 54e7944d3e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=211907
2 changed files with 6 additions and 6 deletions

View File

@ -66,7 +66,7 @@ SUB_LIST+= PKGNAME=${PKGNAME}
SUB_FILES+= pkg-message
.include <bsd.port.pre.mk>
_PLA_GID!= /usr/sbin/pw group show -n ${PLA_GRP} | ${CUT} -d : -f 3
_PLA_GID!= ${PW} group show -n ${PLA_GRP} | ${CUT} -d : -f 3
.if empty(_PLA_GID)
_PLA_GID= 80
.endif
@ -84,11 +84,11 @@ pre-everything::
${ECHO_MSG} "please use the net/phpldapadmin098 port instead."
${ECHO_MSG} ""
.if defined(WITH_SUPHP) && !defined(WITHOUT_SUPHP)
@if /usr/sbin/pw show -n pldapadm >/dev/null 2>&1 ; then \
@if ${PW} show -n pldapadm >/dev/null 2>&1 ; then \
${ECHO_MSG} "===> WARNING ******************************" ; \
${ECHO_MSG} "The default username used by ${PKNAME} has changed"; \
${ECHO_MSG} "to ${PLA_USR} -- you should delete the old user:" ; \
${ECHO_MSG} " # /usr/sbin/pw user del -n pldapadm" ; \
${ECHO_MSG} " # ${PW} user del -n pldapadm" ; \
${ECHO_MSG} "" ; \
fi
.endif

View File

@ -65,7 +65,7 @@ SUB_LIST+= PKGNAME=${PKGNAME}
SUB_FILES+= pkg-message
.include <bsd.port.pre.mk>
_PLA_GID!= /usr/sbin/pw group show -n ${PLA_GRP} | ${CUT} -d : -f 3
_PLA_GID!= ${PW} group show -n ${PLA_GRP} | ${CUT} -d : -f 3
.if empty(_PLA_GID)
_PLA_GID= 80
.endif
@ -84,11 +84,11 @@ pre-everything::
${ECHO_MSG} "net/phpldapadmin port instead."
${ECHO_MSG} ""
.if defined(WITH_SUPHP) && !defined(WITHOUT_SUPHP)
@if /usr/sbin/pw show -n pldapadm >/dev/null 2>&1 ; then \
@if ${PW} show -n pldapadm >/dev/null 2>&1 ; then \
${ECHO_MSG} "===> WARNING ******************************" ; \
${ECHO_MSG} "The default username used by ${PKNAME} has changed"; \
${ECHO_MSG} "to ${PLA_USR} -- you should delete the old user:" ; \
${ECHO_MSG} " # /usr/sbin/pw user del -n pldapadm" ; \
${ECHO_MSG} " # ${PW} user del -n pldapadm" ; \
${ECHO_MSG} "" ; \
fi
.endif