forked from pool/postfix
Accepting request 477282 from home:wrosenauer:devel
Current Postfix breaks other packages' builds if they are relying on a working postfix configuration in buildroot (e.g. mailman). Postfix tries to add users and groups w/o the proper requires. I've converted the current lines with the ones documented currently here: https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups OBS-URL: https://build.opensuse.org/request/show/477282 OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=254
This commit is contained in:
parent
b6f400e587
commit
dfac6ec4c2
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 6 14:04:13 UTC 2017 - wr@rosenauer.org
|
||||
|
||||
- make sure that system users can be created in %pre
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 18 14:01:35 UTC 2017 - kukuk@suse.com
|
||||
|
||||
|
10
postfix.spec
10
postfix.spec
@ -92,9 +92,11 @@ BuildRequires: openldap2-devel
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: postgresql-devel
|
||||
BuildRequires: shadow
|
||||
Requires: iproute2
|
||||
Requires(pre): permissions
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): shadow
|
||||
Provides: smtp_daemon
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Conflicts: sendmail exim
|
||||
@ -396,10 +398,10 @@ if [ -z "$VERSIONTEST" -a -f %{pf_queue_directory}/pid/master.pid ]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
%{_sbindir}/groupadd -g %{pf_gid} -o -r %{name} 2> /dev/null || :
|
||||
%{_sbindir}/groupadd -g %{maildrop_gid} -o -r maildrop 2> /dev/null || :
|
||||
%{_sbindir}/useradd -r -o -g %{name} -u %{pf_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} %{name} 2> /dev/null || :
|
||||
%{_sbindir}/usermod -G %{maildrop_gid},%{mail_gid} %{name} 2> /dev/null || :
|
||||
getent group %{name} >/dev/null || groupadd -g %{pf_gid} -o -r %{name}
|
||||
getent group maildrop >/dev/null || groupadd -g %{maildrop_gid} -o -r maildrop
|
||||
getent passwd %{name} >/dev/null || useradd -r -o -g %{name} -u %{pf_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} %{name}
|
||||
usermod -G %{maildrop_gid},%{mail_gid} %{name}
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
%pre mysql
|
||||
|
Loading…
Reference in New Issue
Block a user