summaryrefslogtreecommitdiff
path: root/network/squid/squid.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/squid/squid.SlackBuild')
-rw-r--r--network/squid/squid.SlackBuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/network/squid/squid.SlackBuild b/network/squid/squid.SlackBuild
index a0100a442a..6182991c7f 100644
--- a/network/squid/squid.SlackBuild
+++ b/network/squid/squid.SlackBuild
@@ -110,9 +110,10 @@ cp -a \
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown root:root $PKG/usr/doc/$PRGNAM-$VERSION/*
-mkdir -p $PKG/etc/{logrotate.d,rc.d}
-cat $CWD/rc.squid > $PKG/etc/rc.d/rc.squid.new
+mkdir -p $PKG/etc/rc.d
+sed -e "s,@SQUIDGROUP@,$SQUIDGROUP," $CWD/rc.squid > $PKG/etc/rc.d/rc.squid.new
+mkdir -p $PKG/etc/logrotate.d
sed -e "s,@USER@,$SQUIDUSER," -e "s,@GROUP@,$SQUIDGROUP," $CWD/squid.logrotate \
> $PKG/etc/logrotate.d/squid.new