Move the CHOWN to the build-phase where the usernames actually exist.
Noticed by: QAT.
This commit is contained in:
parent
63e4fa118f
commit
e39a0a5253
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=220470
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= squidGuard
|
||||
PORTVERSION= 1.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.squidguard.org/Downloads/
|
||||
|
||||
|
@ -71,7 +72,6 @@ post-build:
|
|||
@${MV} -f ${_DATADIR}/blacklists/README ${WRKDIR}/README.blacklists
|
||||
@${MV} -f ${_DATADIR}/blacklists/* ${_DATADIR}/
|
||||
@${RM} -r ${_DATADIR}/blacklists
|
||||
@${CHOWN} -R ${SQUID_UID}:${SQUID_GID} ${_DATADIR}
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
|
@ -82,6 +82,7 @@ pre-install:
|
|||
@${ECHO_MSG} "===> Installing blacklists"
|
||||
@${MKDIR} ${DATADIR}
|
||||
@${CP} -Rpf ${_DATADIR}/* ${DATADIR}/
|
||||
@${CHOWN} -R ${SQUID_UID}:${SQUID_GID} ${DATADIR}
|
||||
@${CHMOD} -R 550 ${DATADIR}
|
||||
@${ECHO_MSG} " -> Blacklists installed in: ${DATADIR}"
|
||||
.else
|
||||
|
|
Loading…
Reference in a new issue