summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--www/squid24/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/www/squid24/Makefile b/www/squid24/Makefile
index a4b2b2f07b93..dc88b9cf442f 100644
--- a/www/squid24/Makefile
+++ b/www/squid24/Makefile
@@ -117,10 +117,14 @@ post-install:
strip ${PREFIX}/libexec/${file} ; \
fi
.endfor
- ${MKDIR} ${PREFIX}/squid/logs
- ${CHOWN} nobody:nogroup ${PREFIX}/squid/logs
- ${MKDIR} ${PREFIX}/squid/cache
- ${CHOWN} nobody:nogroup ${PREFIX}/squid/cache
+ @if [ ! -d ${PREFIX}/squid/logs ]; then \
+ ${MKDIR} ${PREFIX}/squid/logs; \
+ ${CHOWN} nobody:nogroup ${PREFIX}/squid/logs; \
+ fi
+ @if [ ! -d ${PREFIX}/squid/cache ]; then \
+ ${MKDIR} ${PREFIX}/squid/cache; \
+ ${CHOWN} nobody:nogroup ${PREFIX}/squid/cache; \
+ fi
@if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \