From b86a6f467151321ed0a49e3532da4cfb82668f09 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:05:53 +0100 Subject: [PATCH] configured for whitelist support [release 20110412-2mamba;Mon May 02 2011] --- README.md | 2 + squidGuard-blacklists-MESD-conf | 83 +++++++++++++++++++++++++++++++++ squidGuard-blacklists-MESD.spec | 66 ++++++++++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 squidGuard-blacklists-MESD-conf create mode 100644 squidGuard-blacklists-MESD.spec diff --git a/README.md b/README.md index 9034fe4..bfc799f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # squidGuard-blacklists-MESD +MESD content filtering blacklists for squidGuard. + diff --git a/squidGuard-blacklists-MESD-conf b/squidGuard-blacklists-MESD-conf new file mode 100644 index 0000000..d393396 --- /dev/null +++ b/squidGuard-blacklists-MESD-conf @@ -0,0 +1,83 @@ +logdir /var/log/squid +dbhome /var/lib/squidGuard/db + +dest ads { + domainlist blacklists/ads/domains + urllist blacklists/ads/urls +} + +dest aggressive { + domainlist blacklists/aggressive/domains + urllist blacklists/aggressive/urls +} + +dest audio-video { + domainlist blacklists/audio-video/domains + urllist blacklists/audio-video/urls +} + +dest drugs { + domainlist blacklists/drugs/domains + urllist blacklists/drugs/urls +} + +dest gambling { + domainlist blacklists/gambling/domains + urllist blacklists/gambling/urls +} + +dest hacking { + domainlist blacklists/hacking/domains + urllist blacklists/hacking/urls +} + +dest mail { + domainlist blacklists/mail/domains +} + +dest porn { + domainlist blacklists/porn/domains + urllist blacklists/porn/urls +} + +dest proxy { + domainlist blacklists/proxy/domains + urllist blacklists/proxy/urls +} + +dest redirector { + domainlist blacklists/redirector/domains + urllist blacklists/redirector/urls +} + +dest spyware { + domainlist blacklists/spyware/domains + urllist blacklists/spyware/urls +} + +dest suspect { + domainlist blacklists/suspect/domains + urllist blacklists/suspect/urls +} + +dest violence { + domainlist blacklists/violence/domains + urllist blacklists/violence/urls +} + +dest warez { + domainlist blacklists/warez/domains + urllist blacklists/warez/urls +} + +dest white { + domainlist blacklists/white/domains +} + +acl { + default { + + pass white !custom !ads !aggressive !audio-video !drugs !gambling !hacking !mail !porn !proxy !redirector !spyware !suspect !violence !warez all + redirect http://localhost/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&url=%u +} +} diff --git a/squidGuard-blacklists-MESD.spec b/squidGuard-blacklists-MESD.spec new file mode 100644 index 0000000..754f7f8 --- /dev/null +++ b/squidGuard-blacklists-MESD.spec @@ -0,0 +1,66 @@ +Name: squidGuard-blacklists-MESD +Version: 20110412 +Release: 2mamba +Summary: MESD content filtering blacklists for squidGuard +Group: Network/Monitoring +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.squidguard.mesd.k12.or.us +Source0: http://squidguard.mesd.k12.or.us/blacklists.tgz +Source1: %{name}-conf +License: Public Domain +Provides: squidguard_blacklists +BuildArch: noarch +Requires(post):squidGuard +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +MESD content filtering blacklists for squidGuard. + +%prep + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -d %{buildroot}/var/lib/squidGuard/db +tar xzvf %{S:0} --strip-components=1 -C %{buildroot}/var/lib/squidGuard/db + +# fix permissions +find %{buildroot}/var/lib/squidGuard/db/ -type d \ + -exec chmod 700 {} \; + +install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/squid/squidGuard.conf + +install -d %{buildroot}/var/lib/squidGuard/db/blacklists/white +touch %{buildroot}/var/lib/squidGuard/db/blacklists/white/domains + +install -d %{buildroot}/var/lib/squidGuard/db/blacklists/custom +touch %{buildroot}/var/lib/squidGuard/db/blacklists/custom/domains + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +if [ $1 -ge 1 ]; then + squidGuard -C all -c %{_sysconfdir}/squid/squidGuard.conf + chown squid.squid %{_localstatedir}/lib/squidGuard/db/blacklists/* -R +fi +: + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/squid/squidGuard.conf +%dir %attr(0700,squid,squid) %{_localstatedir}/lib/squidGuard/db/blacklists +%attr(0700,squid,squid) %{_localstatedir}/lib/squidGuard/db/blacklists +%config(noreplace) %{_localstatedir}/lib/squidGuard/db/blacklists/white/domains +%config(noreplace) %{_localstatedir}/lib/squidGuard/db/blacklists/custom/domains + +%changelog +* Mon May 02 2011 Silvan Calarco 20110412-2mamba +- configured for whitelist support + +* Tue Apr 12 2011 Silvan Calarco 20110412-1mamba +- package created