2024-01-05 18:05:58 +01:00
|
|
|
Name: squidGuard-blacklists-UT1
|
|
|
|
Version: 20110617
|
2024-01-05 18:05:59 +01:00
|
|
|
Release: 3mamba
|
2024-01-05 18:05:58 +01:00
|
|
|
Summary: UT1 (Université Toulouse 1) content filtering blacklists for squidGuard
|
|
|
|
Group: Network/Monitoring
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 18:05:59 +01:00
|
|
|
URL: https://dsi.ut-capitole.fr/blacklists/
|
2024-01-05 18:05:58 +01:00
|
|
|
Source0: ftp://ftp.univ-tlse1.fr/pub/reseau/cache/squidguard_contrib/blacklists.tar.gz
|
|
|
|
Source1: %{name}-conf
|
|
|
|
License: Public Domain
|
|
|
|
Provides: squidguard_blacklists
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires(post):squidGuard
|
|
|
|
|
|
|
|
%description
|
|
|
|
UT1 (Université Toulouse 1) content filtering blacklists for squidGuard.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
install -d %{buildroot}/var/lib/squidGuard/db
|
|
|
|
tar xzvf %{S:0} -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
|
2024-01-05 18:05:59 +01:00
|
|
|
* Fri Oct 27 2023 Automatic Build System <autodist@mambasoft.it> 20110617-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Fri Oct 27 2023 Automatic Build System <autodist@mambasoft.it> 20110617-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
2024-01-05 18:05:58 +01:00
|
|
|
* Fri Jun 17 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 20110617-1mamba
|
|
|
|
- update to 20110617
|
|
|
|
|
|
|
|
* Mon May 02 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 20110412-2mamba
|
|
|
|
- configured for whitelist support
|
|
|
|
|
|
|
|
* Tue Apr 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 20110412-1mamba
|
|
|
|
- package created
|