summaryrefslogtreecommitdiffstats
path: root/www/squid25
diff options
context:
space:
mode:
Diffstat (limited to 'www/squid25')
-rw-r--r--www/squid25/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/www/squid25/Makefile b/www/squid25/Makefile
index 3877031..ab126f4 100644
--- a/www/squid25/Makefile
+++ b/www/squid25/Makefile
@@ -121,10 +121,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; \
OpenPOWER on IntegriCloud