diff options
Diffstat (limited to 'network/squid')
-rw-r--r-- | network/squid/rc.squid | 4 | ||||
-rw-r--r-- | network/squid/squid.SlackBuild | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/network/squid/rc.squid b/network/squid/rc.squid index c3a680046edcb..7aef4777fe146 100644 --- a/network/squid/rc.squid +++ b/network/squid/rc.squid @@ -32,6 +32,10 @@ squid_start() { fi done + # Create piddir and set proper permissions + mkdir -p /var/run/squid + chown root:@SQUIDGROUP@ /var/run/squid + echo "Starting Squid: $SQUIDCMD -F" $SQUIDCMD -F } diff --git a/network/squid/squid.SlackBuild b/network/squid/squid.SlackBuild index a0100a442a058..6182991c7faf6 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 |