SHA256
1
0
forked from pool/postfix

Accepting request 481845 from server:mail

1

OBS-URL: https://build.opensuse.org/request/show/481845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postfix?expand=0&rev=140
This commit is contained in:
Yuchen Lin 2017-04-07 12:17:35 +00:00 committed by Git OBS Bridge
commit 29028e59ac
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 20 18:01:36 CET 2017 - kukuk@suse.de
- Require system group mail
- Use mail group name instead of GID
-------------------------------------------------------------------
Mon Mar 6 21:27:38 UTC 2017 - mrueckert@suse.de

View File

@ -42,7 +42,7 @@
%define pf_uid 51
%define pf_gid 51
%define maildrop_gid 59
%define mail_gid 12
%define mail_group mail
%define conf_backup_dir %{_localstatedir}/adm/backup/%{name}
%define omc_pdir %{_datadir}/omc/
%define omc_dir %{_datadir}/omc/svcinfo.d/
@ -107,6 +107,9 @@ Requires(pre): sysvinit(syslog)
%if 0%{?suse_version} >= 1100
BuildRequires: fdupes
%endif
%if 0%{?suse_version} >= 1330
Requires(pre): group(%{mail_group})
%endif
%if 0%{?suse_version} > 1210
BuildRequires: systemd
%{?systemd_requires}
@ -247,7 +250,7 @@ make
groupadd -g %{pf_gid} -o -r %{name} 2> /dev/null || :
groupadd -g %{maildrop_gid} -o -r maildrop 2> /dev/null || :
useradd -r -o -g %{name} -u %{pf_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} %{name} 2> /dev/null || :
usermod -G %{maildrop_gid},%{mail_gid} %{name} 2> /dev/null || :
usermod -G %{maildrop_gid},%{mail_group} %{name} 2> /dev/null || :
mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}/etc/postfix
cp conf/* %{buildroot}/etc/postfix/
@ -401,7 +404,7 @@ fi
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}
usermod -G %{maildrop_gid},%{mail_group} %{name}
# ---------------------------------------------------------------------------
%pre mysql