SynoCommunity/spksrc — pull request #1125 by loli71 (2014-07-03 20:52:55+00:00)
Title: squidguard 1.5 package bugs correction and add logs rotation

Bugs correction :
Hello,

Here are the different modification I had done for the squidguard 1.5 package of synocommunity :
- patch sgDb.c filefor error when squidguard try to create new berkleyDB "FATAL: sgDbLoadTextFile: put: Invalid argument"
- patch squid_wrapper.c file to use the good path to squid binary
- patch squidguardmgr.cgi file to
o use the good paths binary/config files
o change owner of new directories/files created by cgi (because cgi run as root and squidguard as squid user)
o use "su - squid -c $SQUID_WRAPPER" command instead of "$SQUID_WRAPPER" in cgi (because cgi run as root and squidguard as squid user)
- Modify squid.conf to suppress the duplicate entries definitions
- Add squidclamav.conf.tpl template file for virus dectection redirection to good clwarn.cgi path
- Add log rotation script logrotate.sh to rotate/compress/purge all log files in /usr/local/squidguard/var/logs directory and avoid to use too many place