Compare commits
10 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0184f07e41 | ||
|
|
5439f5079c | ||
|
|
8a721089f7 | ||
|
|
5643cf0b87 | ||
|
|
02f84207ab | ||
| f8cbf55610 | |||
|
|
b1f8eb88ed | ||
|
|
6b3067c2e4 | ||
|
|
36a5947f4f | ||
|
|
0817e72f8f |
1 changed files with 40 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
Name: ufdbGuard
|
||||
Version: 1.35.8
|
||||
Release: 1%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: A URL filter for squid
|
||||
URL: https://www.urlfilterdb.com/
|
||||
License: GPL-2.0-only
|
||||
|
|
@ -25,10 +25,15 @@ 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(pre): shadow-utils
|
||||
Requires: logrotate
|
||||
|
||||
%description
|
||||
|
|
@ -43,9 +48,14 @@ You can also make your own URL database for ufdbGuard.
|
|||
%prep
|
||||
%setup -q
|
||||
|
||||
iconv -c --to-code=UTF-8 CHANGELOG > CHANGELOG.new
|
||||
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 <<EOF
|
||||
u ufdb - 'ufdbGuard URL filter' /var/lib/ufdbguard -
|
||||
EOF
|
||||
|
||||
%build
|
||||
INSTALL_PROGRAM=./install-sh %configure \
|
||||
--with-ufdb-user=ufdb \
|
||||
|
|
@ -93,13 +103,9 @@ echo 'd /var/run/ufdbguard 0750 ufdb ufdb -' > \
|
|||
%{buildroot}/usr/lib/tmpfiles.d/ufdbGuard.conf
|
||||
%endif
|
||||
|
||||
install -m0644 -D ufdbguard.sysusers.conf %{buildroot}%{_sysusersdir}/ufdbguard.conf
|
||||
|
||||
|
||||
%pre
|
||||
getent group ufdb >/dev/null || groupadd -r ufdb
|
||||
getent passwd ufdb >/dev/null || \
|
||||
useradd -r -g ufdb -d /var/lib/ufdbguard -s /sbin/nologin \
|
||||
-c "ufdbGuard URL filter" ufdb
|
||||
exit 0
|
||||
|
||||
%post
|
||||
%systemd_post ufdbguard.service
|
||||
|
|
@ -129,8 +135,33 @@ exit 0
|
|||
%if %{with tmpfiles}
|
||||
%config(noreplace) %{_tmpfilesdir}/ufdbGuard.conf
|
||||
%endif
|
||||
%{_sysusersdir}/ufdbguard.conf
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.35.8-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jun 13 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 1.35.8-8
|
||||
- Rebuilt for openssl 4.0
|
||||
|
||||
* Tue Jan 20 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.35.8-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.35.8-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.35.8-5
|
||||
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.35.8-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Wed Jan 08 2025 Gwyn Ciesla <gwync@protonmail.com> - 1.35.8-3
|
||||
- Fix FTBFS
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.35.8-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Mon Jun 03 2024 Gwyn Ciesla <gwync@protonmail.com> - 1.35.8-1
|
||||
- 1.35.8
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue