diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fead3ab --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +/ufdbGuard-1.34.5.tar.gz +/ufdbGuard-1.34.6.tar.gz +/ufdbGuard-1.35.1.tar.gz +/ufdbGuard-1.35.2.tar.gz +/ufdbGuard-1.35.3.tar.gz +/ufdbGuard-1.35.4.tar.gz +/ufdbGuard-1.35.5.tar.gz +/ufdbGuard-1.35.6.tar.gz +/ufdbGuard-1.35.7.tar.gz +/ufdbGuard-1.35.8.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..7417316 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ufdbGuard + +The ufdbGuard package \ No newline at end of file diff --git a/dead.package b/dead.package deleted file mode 100644 index a72aec0..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -epel8-playground decommissioned : https://pagure.io/epel/issue/136 diff --git a/sources b/sources new file mode 100644 index 0000000..b1cbb67 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ufdbGuard-1.35.8.tar.gz) = bd10ad7821294aae2900c1a6d8cf4fd9305b636cbc361bebc497ec9b31e52f1addf5537ad8451d163425e958d9cc0150329e9b2c83d5123c7710e2c53dc9d892 diff --git a/ufdbGuard.logrotate b/ufdbGuard.logrotate new file mode 100644 index 0000000..6ab6242 --- /dev/null +++ b/ufdbGuard.logrotate @@ -0,0 +1,8 @@ +/var/log/ufdbguard/*.log { + missingok + monthly + notifempty + compress + copytruncate + su ufdb ufdb +} diff --git a/ufdbGuard.spec b/ufdbGuard.spec new file mode 100644 index 0000000..ae31187 --- /dev/null +++ b/ufdbGuard.spec @@ -0,0 +1,238 @@ +Name: ufdbGuard +Version: 1.35.8 +Release: 9%{?dist} +Summary: A URL filter for squid +URL: https://www.urlfilterdb.com/ +License: GPL-2.0-only + +Source0: https://www.urlfilterdb.com/files/downloads/%{name}-%{version}.tar.gz +Source1: ufdbGuard.logrotate + +%if 0%{?fedora} || 0%{?rhel} >= 7 +%bcond_without tmpfiles +%else +%bcond_with tmpfiles +%endif + +BuildRequires: make +BuildRequires: bzip2-devel +BuildRequires: zlib-devel +BuildRequires: perl-interpreter +BuildRequires: gcc +%if %{?rhel:7}%{!?rhel:0} +%{?systemd_requires} +BuildRequires: systemd +%else +BuildRequires: systemd-rpm-macros +%endif +%if 0%{?fedora} > 44 +BuildRequires: openssl3-devel +BuildRequires: openssl3-devel-engine +%else +BuildRequires: openssl-devel +BuildRequires: openssl-devel-engine +%endif +BuildRequires: bind-utils +BuildRequires: wget +Requires: logrotate + +%description +ufdbGuard is a free URL filter for Squid with additional features like +SafeSearch enforcement for a large number of search engines, safer HTTPS +visits and dynamic detection of proxies (URL filter circumventors). + +ufdbGuard supports free and commercial URL databases that can be +downloaded from various sites and vendors. +You can also make your own URL database for ufdbGuard. + +%prep +%setup -q + +iconv -c --from-code=ISO-8859-1 --to-code=UTF-8 -o CHANGELOG.new CHANGELOG +mv CHANGELOG.new CHANGELOG + +# Create a sysusers.d config file +cat >ufdbguard.sysusers.conf < \ + %{buildroot}/usr/lib/tmpfiles.d/ufdbGuard.conf +%endif + +install -m0644 -D ufdbguard.sysusers.conf %{buildroot}%{_sysusersdir}/ufdbguard.conf + + + +%post +%systemd_post ufdbguard.service + +%preun +%systemd_preun ufdbguard.service + +%postun +%systemd_postun_with_restart ufdbguard.service + + +%files +%license COPYING GPL +%doc README CHANGELOG CREDITS +%config(noreplace) %{_sysconfdir}/sysconfig/ufdbguard +%config(noreplace) %dir %{_sysconfdir}/ufdbguard/ +%config(noreplace) %{_sysconfdir}/ufdbguard/* +%config(noreplace) %{_sysconfdir}/logrotate.d/ufdbGuard +%{_sbindir}/* +%{_mandir}/man1/ufdb* +%{_mandir}/man8/ufdb* +%dir %{_sharedstatedir}/ufdbguard/ +%attr(-, ufdb, ufdb) %dir %{_localstatedir}/log/ufdbguard/ +%{_sharedstatedir}/ufdbguard/* +%{_unitdir}/ufdbguard.service +%attr(-, ufdb, ufdb) %dir %{_var}/run/ufdbguard/ +%if %{with tmpfiles} +%config(noreplace) %{_tmpfilesdir}/ufdbGuard.conf +%endif +%{_sysusersdir}/ufdbguard.conf + +%changelog +* Fri Jul 17 2026 Fedora Release Engineering - 1.35.8-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jun 13 2026 Yaakov Selkowitz - 1.35.8-8 +- Rebuilt for openssl 4.0 + +* Tue Jan 20 2026 Fedora Release Engineering - 1.35.8-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jul 25 2025 Fedora Release Engineering - 1.35.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 1.35.8-5 +- Add sysusers.d config file to allow rpm to create users/groups automatically + +* Sun Jan 19 2025 Fedora Release Engineering - 1.35.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jan 08 2025 Gwyn Ciesla - 1.35.8-3 +- Fix FTBFS + +* Sat Jul 20 2024 Fedora Release Engineering - 1.35.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 03 2024 Gwyn Ciesla - 1.35.8-1 +- 1.35.8 + +* Fri Mar 22 2024 Gwyn Ciesla - 1.35.7-1 +- 1.35.7 +- use upstream unit file + +* Fri Feb 02 2024 Gwyn Ciesla - 1.35.6-1 +- 1.35.6 + +* Sat Jan 27 2024 Fedora Release Engineering - 1.35.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 1.35.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun Mar 05 2023 Gwyn Ciesla - 1.35.5-2 +- migrated to SPDX license + +* Tue Feb 07 2023 Gwyn Ciesla - 1.35.5-1 +- 1.35.5 + +* Sat Jan 21 2023 Fedora Release Engineering - 1.35.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jan 04 2023 Gwyn Ciesla - 1.35.4-1 +- 1.35.4 + +* Sat Jul 23 2022 Fedora Release Engineering - 1.35.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 1.35.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Sep 14 2021 Sahana Prasad - 1.35.3-5 +- Rebuilt with OpenSSL 3.0.0 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.35.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 1.35.3-3 +- Rebuilt for updated systemd-rpm-macros + See https://pagure.io/fesco/issue/2583. + +* Wed Jan 27 2021 Fedora Release Engineering - 1.35.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Nov 02 2020 Gwyn Ciesla - 1.35.3-1 +- 1.35.3 + +* Fri Oct 30 2020 Gwyn Ciesla - 1.35.2-1 +- 1.35.2 + +* Thu Oct 15 2020 Gwyn Ciesla - 1.35.1-1 +- 1.35.1 + +* Wed Sep 02 2020 Gwyn Ciesla - 1.34.6-3 +- Correct logrotate configure. + +* Fri Aug 07 2020 Gwyn Ciesla - 1.34.6-2 +- Correct sysconfig file placement. +- Fix tmpfiles config. + +* Mon Aug 03 2020 Gwyn Ciesla - 1.34.6-1 +- 1.34.6 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.34.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 14 2020 Gwyn Ciesla - 1.34.5-2 +- Review fixes. + +* Fri Apr 17 2020 Gwyn Ciesla - 1.34.5-1 +- Initial package.