Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37eb9837d1 | ||
|
|
1a6a58b3f5 | ||
|
|
b9e9f5ec8f | ||
|
|
ff033da9b6 | ||
|
|
b9110f9cd2 |
1 changed files with 26 additions and 9 deletions
|
|
@ -2,11 +2,12 @@
|
|||
|
||||
Name: postgrey
|
||||
Version: 1.37
|
||||
Release: 22%{?dist}
|
||||
Release: 27%{?dist}
|
||||
Summary: Postfix Greylisting Policy Server
|
||||
# File headers only state "GNU GPL", but the LICENSE sections state v2 and "any
|
||||
# later version"
|
||||
License: GPLv2+
|
||||
# Automatically converted from old format: GPLv2+ - review is highly recommended.
|
||||
License: GPL-2.0-or-later
|
||||
URL: http://postgrey.schweikert.ch/
|
||||
Source0: http://postgrey.schweikert.ch/pub/postgrey-%{version}.tar.gz
|
||||
Source1: postgrey.service
|
||||
|
|
@ -30,7 +31,6 @@ BuildRequires: systemd
|
|||
#Requires: perl(Sys::Syslog)
|
||||
# Requiring postfix for its directories and GID.
|
||||
Recommends: postfix
|
||||
Requires(pre): shadow-utils
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
|
|
@ -51,6 +51,11 @@ sed -i 's|nogroup|postgrey|g' postgrey
|
|||
sed -i 's|POD ||g;s|perldoc|man|g' README
|
||||
install -pm0644 %{SOURCE2} README.Fedora
|
||||
|
||||
# Create a sysusers.d config file
|
||||
cat >postgrey.sysusers.conf <<EOF
|
||||
u postgrey - 'Postfix Greylisting Service' %{_localstatedir}/spool/postfix/postgrey -
|
||||
EOF
|
||||
|
||||
%build
|
||||
# We only have perl scripts, so just "build" the man page.
|
||||
pod2man \
|
||||
|
|
@ -90,12 +95,8 @@ install -pDm0644 postgrey.8 \
|
|||
install -pDm0755 contrib/postgreyreport \
|
||||
%{buildroot}%{_sbindir}/postgreyreport
|
||||
|
||||
%pre
|
||||
getent group postgrey >/dev/null || groupadd -r postgrey
|
||||
getent passwd postgrey >/dev/null || \
|
||||
useradd -r -g postgrey -d %{_localstatedir}/spool/postfix/postgrey -s /sbin/nologin \
|
||||
-c "Postfix Greylisting Service" postgrey
|
||||
exit 0
|
||||
install -m0644 -D postgrey.sysusers.conf %{buildroot}%{_sysusersdir}/postgrey.conf
|
||||
|
||||
|
||||
%post
|
||||
%systemd_post postgrey.service
|
||||
|
|
@ -128,8 +129,24 @@ exit 0
|
|||
%{_sbindir}/postgreyreport
|
||||
%{_mandir}/man8/postgrey.8*
|
||||
%dir %attr(0751,postgrey,postfix) %{_localstatedir}/spool/postfix/postgrey/
|
||||
%{_sysusersdir}/postgrey.conf
|
||||
|
||||
%changelog
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.37-26
|
||||
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||
|
||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 1.37-24
|
||||
- convert license to SPDX
|
||||
|
||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue