aboutsummaryrefslogtreecommitdiffstats
path: root/www/squid27
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2003-01-31 17:02:49 +0800
committeradrian <adrian@FreeBSD.org>2003-01-31 17:02:49 +0800
commit5075a92b7386209736997e0de280b10912bb507b (patch)
tree169bd772c35c4bb38d17d7ff9fe97f5369e7d21b /www/squid27
parentac440bdb539d0c62b07a65d1ed06820ef516f975 (diff)
downloadfreebsd-ports-gnome-5075a92b7386209736997e0de280b10912bb507b.tar.gz
freebsd-ports-gnome-5075a92b7386209736997e0de280b10912bb507b.tar.zst
freebsd-ports-gnome-5075a92b7386209736997e0de280b10912bb507b.zip
Grab the patch against squid24 from a PR..
PR: 42747
Diffstat (limited to 'www/squid27')
-rw-r--r--www/squid27/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/www/squid27/Makefile b/www/squid27/Makefile
index 38770314f07b..ab126f4c2d78 100644
--- a/www/squid27/Makefile
+++ b/www/squid27/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; \