Execute the run_permissions macro on pre-11.4 systems and else the

set_permission one if available; (bnc#764120).

OBS-URL: https://build.opensuse.org/package/show/server:mail/exim?expand=0&rev=126
This commit is contained in:
Lars Müller 2013-01-09 19:55:32 +00:00 committed by Git OBS Bridge
parent 9569f69bfe
commit 3cd32e0e68
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 9 19:02:27 UTC 2013 - lars@samba.org
- Execute the run_permissions macro on pre-11.4 systems and else the
set_permission one if available; (bnc#764120).
-------------------------------------------------------------------
Thu Oct 25 10:36:19 UTC 2012 - lars@samba.org

View File

@ -1,7 +1,7 @@
#
# spec file for package exim
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -319,7 +319,11 @@ install -m 0755 $RPM_SOURCE_DIR/eximstats-html-update.py $RPM_BUILD_ROOT/%{_sbin
install -D -m 0644 $RPM_SOURCE_DIR/apparmor.usr.sbin.exim $RPM_BUILD_ROOT/etc/apparmor/profiles/extras/usr.sbin.exim
%post
%if 0%{?suse_version} < 1131
%run_permissions
%else
%set_permissions /usr/sbin/exim
%endif
if ! test -s etc/exim/exim.conf; then
if test -s etc/exim.conf; then
mv etc/exim.conf etc/exim/