\n";
+print "\n";
+
+
+
+exit 0;
diff --git a/root/usr/share/squidGuard/images/blocked.gif b/root/usr/share/squidGuard/images/blocked.gif
new file mode 100644
index 0000000..10dfa18
Binary files /dev/null and b/root/usr/share/squidGuard/images/blocked.gif differ
diff --git a/root/usr/share/squidGuard/images/empty.gif b/root/usr/share/squidGuard/images/empty.gif
new file mode 100644
index 0000000..82e69eb
Binary files /dev/null and b/root/usr/share/squidGuard/images/empty.gif differ
diff --git a/root/usr/share/squidGuard/lang/babel.de b/root/usr/share/squidGuard/lang/babel.de
new file mode 100644
index 0000000..da5903f
--- /dev/null
+++ b/root/usr/share/squidGuard/lang/babel.de
@@ -0,0 +1,20 @@
+Unknown=unbekannt
+Title=403 Verboten
+Msg=Der Zugriff auf die Seite ist nicht erlaubt.
+Tabclientname=Rechnername
+Tabcaption=Zusatzinformationen:
+TabIP=IP-Adresse
+Tabclientuser=Benutzer
+Tabclientgroup=Gruppe
+Taburl=URL
+Tabtargetgroup=Kategorie
+msgproxymaster=Falls ein Fehler vorliegt schicken Sie die Adresse dieser Seite bitte an
+msgrefresh=Nach einer Änderung der Zugriffsrechte müssen Sie evtl. die Seite mit dem <Aktualisieren> bzw. <Neu laden> Button des Browsers oder mit <Strg>+<F5> erneut laden lassen.
+msgtimerefresh=Nach dem Wechsel in eine erlaubte Zeitperiode müssen Sie evtl. die Seite mit dem <Aktualisieren> bzw. <Neu laden> Button des Browsers oder sogar mit <Strg>+<F5> erneut laden lassen.
+msgunknown=Zugriff verweigert, da Ihr Rechner bei $proxy unbekannt ist.
+msginaddr=Die direkte Verwendung von IP-Adressen ist von diesem Rechner aufgrund der geltenden Netzwerk Zugriffregelungen nicht erlaubt.
+msgalternatives=Die folgenden Alternativen wurden gefunden:
+msgnoalternatives=Für diesen Server konnte kein alternativer Domainname gefunden werden:
+msgreferermaster=Bitte erfragen Sie den korrekten Domainnamen von dem Webmaster dieses Servers.
+msgwebmaster=Bitte fragen Sie den Webmaster von dieses Servers nach einem Domainnamen für den Server.
+msgdeflang=Dieser Text erscheint in Deutsch, da Ihr Browser dies als bevorzugte (erste) Sprache einstellt hat, die unterstützt werden. Unterstützte Sprachen:
diff --git a/root/usr/share/squidGuard/lang/babel.en b/root/usr/share/squidGuard/lang/babel.en
new file mode 100644
index 0000000..1b13cd2
--- /dev/null
+++ b/root/usr/share/squidGuard/lang/babel.en
@@ -0,0 +1,20 @@
+Unknown=unknown
+Title=403 Forbidden
+Msg=The access to this site is blocked.
+Tabclientname=Client name
+Tabcaption=Additional information:
+TabIP=Client address
+Tabclientuser=Client user
+Tabclientgroup=Client group
+Taburl=URL
+Tabtargetgroup=Target group
+msgproxymaster=If you think this is an error, send this page to
+msgrefresh=You may need to use the browser's <Reload> button or <Keyboard Shift>+<Browser Reload> to get rid of this page after an access rule change.
+msgtimerefresh=You may need to use the browser's <Reload> button or even <Keyboard Shift>+<Browser Reload> to get rid of this page after transition from a time zone with access restrictions.
+msgunknown=Access denied because your clienten is unknown to $proxy.
+msginaddr=Surfing on plain IP-addresses is denied from this client due to network access policies.
+msgalternatives=The following possible alternatives were found:
+msgnoalternatives=No alternative domainname were found for the server
+msgreferermaster=Send complaints to the webmaster of referer and ask him to correct the link(s) that points to $url in referer with the supposedly correct alternative above.
+msgwebmaster=Please ask the webmaster of that server for the correct domainname.
+msgdeflang=This message is in English because either your browser has "en" listed first in your prefered language list for those languages supported by this program or the chosen language is not supported by this program. Supported languages are:
diff --git a/root/usr/share/squidGuard/lang/babel.es b/root/usr/share/squidGuard/lang/babel.es
new file mode 100644
index 0000000..9b47be1
--- /dev/null
+++ b/root/usr/share/squidGuard/lang/babel.es
@@ -0,0 +1,20 @@
+Unknown=desconocido
+Title=403 Restringido
+Msg=Acceso a este sitio restringido
+Tabclientname=Nombre del cliente
+Tabcaption=Información adicional:
+TabIP=Dirección IP del cliente
+Tabclientuser=Usuario del cliente
+Tabclientgroup=Grupo del cliente
+Taburl=URL
+Tabtargetgroup=Clasificación del destino
+msgproxymaster=Si piensa que esto es incorrecto, manda esta página a
+msgrefresh=Puede que necesitas usar el botón <Refrescar> o <CONTROL>+<F5> para refrescar el contenido de esta página.
+msgtimerefresh=Puede que necesitas usar el botón <Refrescar> o <CONTROL>+<F5> para refrescar el contenido de esta página si el bloqueo es debido a una restricción basada en la hora de acceso.
+msgunknown=Acceso denegado porque cliente es desconocido para proxy.
+msginaddr=La navegación usando direcciones IP está restringida para este cliente por motivos de seguridad.
+msgalternatives=Las siguientes posibles alternativas han sido encontradas:
+msgnoalternatives=No han sido encontradas alternativas para el acceso a
+msgreferermaster=Envíe sus sugerencias al webmaster de referer y pregúntele cómo corregir los lings que apuntan a url en referer con las anteriores alternativas supuestamente correctas.
+msgwebmaster=Envíe sus sugerencias al webmaster para url y pregunte por un nombre de dominio para el servidor.
+msgdeflang=Este mensaje está en español porque es el primero de los lenguajes soportados que están configurados en tu servidor para ser usado en la navegación. Los lenguajes soportados son:
diff --git a/root/usr/share/squidGuard/lang/babel.fr b/root/usr/share/squidGuard/lang/babel.fr
new file mode 100644
index 0000000..7d4173a
--- /dev/null
+++ b/root/usr/share/squidGuard/lang/babel.fr
@@ -0,0 +1,20 @@
+Unknown=inconnu
+Title=403 Interdit
+Msg=L'accés à ce site est bloqué.
+Tabclientname=Nom de la machine
+Tabcaption=Information complémentaire:
+TabIP=Adresse de la machine
+Tabclientuser=Utilisateur
+Tabclientgroup=Groupe
+Taburl=URL
+Tabtargetgroup=Groupe cible
+msgproxymaster=Si vous pensez qu'il s'agit d'une erreur, contactez votre administrateur
+msgrefresh=Vous avez peut-être besoin d'utiliser le bouton <Recharger> ou même <Shift>+<Recharger> après un changement de règles.
+msgtimerefresh=Vous avez peut-être besoin d'utiliser le bouton <Recharger> ou même <Shift>+<Recharger> après un changement de zone temporelle d\'interdiction.
+msgunknown=Accès interdit car votre client est inconnu de proxy.
+msginaddr=Naviguer sur des adresses IP est refusé à cette machine pour des raisons de sécurité.
+msgalternatives=Les alternatives suivantes sont possibles:
+msgnoalternatives=Aucun nom de domaine alternatif n'a été trouvé pour le serveur
+msgreferermaster=Envoyez les demandes au webmaster de le serveur et demandez lui corriger les liens qui pointent sur url dans referer avec l'alternative (supposée correcte) suivante.
+msgwebmaster=Envoyez les demandes au webmaster pour url et demandez un nom de domaine pour le serveur.
+msgdeflang=Ce message est en français car "fr" est la première langue supportée parmi celles que votre navigateur signale comme préférée. Les langues supportées sont:
diff --git a/root/usr/share/squidGuard/lang/babel.nl b/root/usr/share/squidGuard/lang/babel.nl
new file mode 100644
index 0000000..4b61169
--- /dev/null
+++ b/root/usr/share/squidGuard/lang/babel.nl
@@ -0,0 +1,20 @@
+Unknown=onbekend
+Title=403 Verboden
+Msg=De toegang is geblokkeerd.
+Tabclientname=Computernaam
+Tabcaption=Extra informatie:
+TabIP=Computeradres
+Tabclientuser=Gebruiker
+Tabclientgroup=Groep
+Taburl=URL
+Tabtargetgroup=Doelgroep
+msgproxymaster=Als u denkt dat dit onjuist is, zend deze bladzijde aan
+msgrefresh=U moet waarschijnlijk de browser's <Reload> knop gebruiken of zelfs <Shift>+<Reload> na een verandering in de squidGuard regels.
+msgtimerefresh=U moet waarschijnlijk de browser's <Reload> knop gebruiken of zelfs <Shift>+<Reload> na beeindiging van een periode met beperkingen.
+msgunknown=Toegand geweigerd omdat uw client niet bekend is bij proxy.
+msginaddr=Surfen naar harde IP adressen wordt op deze client geweigerd om veiligheidsredenen.
+msgalternatives=De volgende alternatieven zijn mogelijk:
+msgnoalternatives=Geen alternatieve domeinnaam gevonden voor de server.
+msgreferermaster=Zend klachten aan webmaster de referer en vraag deze de link te verbeteren die verwijst naar url op referer met het waarschijnlijk correcte alternatief.
+msgwebmaster=Stuur klachten aan de webmaster voor de address en vraag om een domeinnaam voor de server.
+msgdeflang=Deze melding is in het Nederlands want "nl" is de eerst ondersteunde taal van de talen die uw browser ondersteunt. De ondersteunde talen zijn:
diff --git a/root/usr/share/squidGuard/lang/babel.no b/root/usr/share/squidGuard/lang/babel.no
new file mode 100644
index 0000000..7166cb8
--- /dev/null
+++ b/root/usr/share/squidGuard/lang/babel.no
@@ -0,0 +1,20 @@
+Unknown=ukjent
+Title=403 Sperret
+Msg=Siden er sperret.
+Tabclientname=Klientnavn
+Tabcaption=Tilleggsinformasjon:
+TabIP=Klientadresse
+Tabclientuser=Brukerident
+Tabclientgroup=Klientgruppe
+Taburl=URL
+Tabtargetgroup=Målkategori
+msgproxymaster=Om du mener dette er feil, så send denne siden til
+msgrefresh=Du kan trenge å bruke browserens <Reload> knapp eller til og med <Tastatur Shift>+<Browser Reload> for å bli kvitt denne siden etter endring i adgangskontrollen.
+msgtimerefresh=Du kan trenge å bruke browserens <Reload> knapp eller til og med <Tastatur Shift>+<Browser Reload> for å bli kvitt denne siden ved overgang fra et tidsrom med sperring.
+msgunknown=Adgang nektes fordi denne klienten ikke er definert på proxy.
+msginaddr=Av sikkerhetsgrunner er surfing på IP-adressen ikke tillatt fra denne klienten.
+msgalternatives=Følgende mulige alternativer ble funnet:
+msgnoalternatives=Finner ingen alternative domenenavn for serveren
+msgreferermaster=Send evt. klager til webmaster for referer og be ham rette linken(e) som peker til url i referer med det antatt korrekte alternativet over.
+msgwebmaster=Send evt. klager til webmaster for address og anmod om å få knyttet serveren til et domenenavn.
+msgdeflang=Denne meldingen er på norsk ford "no" er det første støttede sproget av de din nettleser er satt opp til å rapportere som foretrukket. Støttede sprog er:
diff --git a/root/var/service/squid-db-logd/log/run b/root/var/service/squid-db-logd/log/run
new file mode 100644
index 0000000..15ed0d0
--- /dev/null
+++ b/root/var/service/squid-db-logd/log/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+exec \
+ /usr/local/bin/setuidgid smelog \
+ /usr/local/bin/multilog t s5000000 \
+ /var/log/squid-db-logd
+
diff --git a/root/var/service/squid-db-logd/run b/root/var/service/squid-db-logd/run
new file mode 100644
index 0000000..d00475f
--- /dev/null
+++ b/root/var/service/squid-db-logd/run
@@ -0,0 +1,34 @@
+#!/usr/bin/perl -w
+
+use esmith::ConfigDB;
+my $c = esmith::ConfigDB->open_ro or die "Couldn't open ConfigDB\n";
+my $rec = $c->get('squid-db-logd');
+my $dbname = $rec->prop('DbName') || 'squid_log';
+my $dbuser = $rec->prop('DbUser') || 'squid';
+my $dbpass = $rec->prop('DbPassword') || 'squid';
+my $dbhost = $rec->prop('DbHost') || 'localhost';
+
+open(STDERR, ">&STDOUT");
+
+my @args = ("--debug=1", "--dbname=$dbname", "--dbuser=$dbuser", "--dbpass=$dbpass");
+push @args, "--dbhost=$dbhost" if ($dbhost ne 'localhost');
+
+my $squid = $c->get('squid');
+my $squidstatus = $squid->prop('status') || 'disabled';
+
+if ($squidstatus ne 'enabled'){
+ exec("sv", "d", "/service/squid-db-logd");
+ exit(0);
+}
+
+my $squidguard = $c->get('squidguard');
+my $squidguardstatus = $squidguard->prop('status') || 'disabled';
+
+if ($squidguardstatus eq 'enabled'){
+ push @args, "--squidguard";
+}
+
+exec("/usr/local/bin/setuidgid", "squid", "/usr/bin/squid-db-logd", @args)
+ or die "Cannot run the Squid Database Loggind Daemon";
+
+exit(1);
diff --git a/smeserver-webfilter.spec b/smeserver-webfilter.spec
new file mode 100644
index 0000000..1c6dce9
--- /dev/null
+++ b/smeserver-webfilter.spec
@@ -0,0 +1,187 @@
+%define version 0.2.16
+%define release 7
+%define name smeserver-webfilter
+
+
+Summary: web filtering proxy for SME Server
+Name: %{name}
+Version: %{version}
+Release: %{release}%{?dist}
+Epoch: 9
+License: GPL
+Group: Networking/Daemons
+Source: %{name}-%{version}.tar.xz
+
+BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
+BuildArchitectures: noarch
+BuildRequires: e-smith-devtools
+
+Requires: squidGuard >= 1.4
+Requires: squidclamav
+Requires: perl(File::Tail)
+Requires: perl(Getopt::Long)
+Requires: perl(DBI)
+Requires: perl(URI)
+Requires: e-smith-apache >= 2.6.0-19
+Requires: smeserver-php >= 3.0.0-43
+
+Obsoletes: smeserver-squidguard
+Provides: smeserver-squidguard
+AutoReqProv: no
+
+
+%description
+Web proxy filtering based on squidguard and squidclamav
+
+
+%changelog
+* Sat Sep 07 2024 cvs2git.sh aka Brian Read 0.2.16-7.sme
+- Roll up patches and move to git repo [SME: 12338]
+
+* Sat Sep 07 2024 BogusDateBot
+- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
+ by assuming the date is correct and changing the weekday.
+
+* Fri Sep 06 2024 Terry Fage 0.2.16-6.sme
+- apply locale 2024-09-06.patch
+
+* Fri Nov 11 2022 Jean-Philippe Pialasse 0.2.16-5.sme
+- apply locale 2022-11-11 patch
+
+* Sat Aug 13 2022 Brian Read 0.2.16-4.sme
+- Update creatlinks for systemd and fix capitalisation of squidGuard in config db [SME: 11978]
+- Add in DB entries for transparent-proxying
+
+* Thu Aug 04 2022 Brian Read 0.2.16-3.sme
+- update to httpd 2.4 syntax [SME: 12065]
+- Thanks to Zsolt Vasarhelyi
+- Add ---ignoredirs directive to fix Transaction check error
+
+* Wed May 25 2022 Jean-Philippe Pialasse 0.2.16-2.sme
+- import to SME 10 and Koozali buildsys [SME: 11978]
+
+* Thu Nov 19 2015 Daniel Berteaud 0.2.16-1
+- Add pt-br localization (by Jáder Marasca)
+
+* Fri May 15 2015 Daniel Berteaud 0.2.15-1
+- Add Danish localization (by Jan B Thygesen)
+
+* Wed Jun 25 2014 Daniel Berteaud 0.2.14-1
+- fix cleanup cronjob on EL6
+- Pre-create log files to prevent warnings
+
+* Tue Nov 12 2013 Daniel Berteaud 0.2.13-1
+- New branch for SME9
+
+* Fri Sep 6 2013 Daniel Berteaud 0.2.12-1
+- Correctly handle more than two unrestricted IP or network
+
+* Wed Jan 23 2013 Daniel Berteaud 0.2.11-1
+- It's now possible to log on a remote MySQL server
+
+* Wed Oct 24 2012 Daniel Berteaud 0.2.10-1
+- Don't rotate tables, just purge old entries
+
+* Wed Oct 24 2012 Daniel Berteaud 0.2.9-1
+- Handle error:unsupported-request-method in squid logs
+
+* Wed Oct 24 2012 Daniel Berteaud 0.2.8-1
+- Add it locale for the panel, thanks to Nicola Tiana
+
+* Mon Oct 22 2012 Daniel Berteaud 0.2.7-1
+- Use UTF-8 for de locale file
+
+* Mon Oct 22 2012 Daniel Berteaud 0.2.6-1
+- Add de locale to the panel, thanks to Daniel Schiffer
+
+* Fri Oct 19 2012 Daniel Berteaud 0.2.5-1
+- Fix processing of denied CONNECT in squidGuard logs
+- Properly escape domain names
+
+* Fri Oct 19 2012 Daniel Berteaud 0.2.4-1
+- Use larger varchar for URL and domain names
+
+* Thu Oct 18 2012 Daniel Berteaud 0.2.3-1
+- Optimize database inserts
+- Log stderr to stdout in squid-db-logd run script
+- Add missing dbuser option in squid-db-logd
+
+* Wed Oct 17 2012 Daniel Berteaud 0.2.2-1
+- Fix processing CONNECT lines
+
+* Sun Oct 14 2012 Daniel Berteaud 0.2.1-1
+- Ignore stats requests from squidclient
+
+* Sun Oct 7 2012 Daniel Berteaud 0.2.0-1
+- Include Squid Database Logging Daemon (squid-db-logd)
+
+* Sun Oct 7 2012 Daniel Berteaud 0.1.4-1
+- Fix hidding disabled caegories
+
+* Tue Sep 11 2012 Daniel Berteaud 0.1.3-1
+- Add whitelists to squidclamav
+
+* Mon Aug 27 2012 Daniel Berteaud 0.1.2-1
+- Fix en-us locale (label AV Filtering)
+
+* Fri Jul 6 2012 Daniel Berteaud 0.1.1-1
+- Spawn more redirect children
+
+* Mon Apr 16 2012 Daniel Berteaud 0.1.0-1
+- Rename to smeserver-webfilter
+- Add AV filtering with squidclamav
+- Simplified panel
+- Log cron job to dev null
+- Use quiet rsync arg
+
+* Tue Apr 03 2012 Daniel Berteaud 0.1.2-1
+- Fix ownership of log files
+
+* Tue Mar 27 2012 Daniel Berteaud 0.1.1-1
+- Add .log suffix to log files
+
+* Tue Mar 27 2012 Daniel Berteaud 0.1.0-1
+- Move to git
+
+* Tue Feb 21 2012 Daniel Berteaud 0.1-1
+- initial release
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+%{__mkdir_p} root/var/log/squid-db-logd
+perl createlinks
+
+%install
+/bin/rm -rf $RPM_BUILD_ROOT
+(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
+/bin/rm -f %{name}-%{version}-filelist
+/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
+ --dir /var/squidGuard/blacklists 'attr(0750,squid,squid)' \
+ --dir /var/log/squid-db-logd 'attr(0770,smelog,smelog)' \
+ --file /usr/bin/squid-db-logd 'attr(0755,root,root)' \
+ --file /var/service/squid-db-logd/run 'attr(0755,root,root)' \
+ --file /var/service/squid-db-logd/log/run 'attr(0755,root,root)' \
+ --file /var/squidGuard/blacklists/black/domains 'attr(0640,squid,squid) %config(noreplace)' \
+ --file /var/squidGuard/blacklists/black/urls 'attr(0640,squid,squid) %config(noreplace)' \
+ --file /var/squidGuard/blacklists/white/domains 'attr(0640,squid,squid) %config(noreplace)' \
+ --file /var/squidGuard/blacklists/white/urls 'attr(0640,squid,squid) %config(noreplace)' \
+ --file /etc/cron.daily/squid-db-cleanup 'attr(0755,root,root)' \
+ --ignoredir "/var/log/squidGuard" \
+ --file /var/log/squidGuard/deny.log 'attr(0640,squid,squid) %config(noreplace)' \
+ --file /var/log/squidGuard/white.log 'attr(0640,squid,squid) %config(noreplace)' \
+ --file /var/log/squidGuard/squidGuard.log 'attr(0640,squid,squid) %config(noreplace)' \
+ > %{name}-%{version}-filelist
+
+echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
+echo "%doc squid_log.sql" >> %{name}-%{version}-filelist
+%files -f %{name}-%{version}-filelist
+%defattr(-,root,root)
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%preun
+