SHA256
1
0
forked from pool/fetchmail

Accepting request 234980 from home:jsegitz:branches:server:mail

- added necessary macros for systemd files

OBS-URL: https://build.opensuse.org/request/show/234980
OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=54
This commit is contained in:
Vítězslav Čížek 2014-05-21 12:22:56 +00:00 committed by Git OBS Bridge
parent 992c58140e
commit b43dbdfffa
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 21 09:51:34 UTC 2014 - jsegitz@novell.com
- added necessary macros for systemd files
-------------------------------------------------------------------
Sun Oct 27 18:18:54 UTC 2013 - p.drouand@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package fetchmail
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 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
@ -18,13 +18,13 @@
Name: fetchmail
BuildRequires: automake
BuildRequires: krb5-devel
BuildRequires: openssl-devel
BuildRequires: opie
BuildRequires: postfix
BuildRequires: procmail
BuildRequires: pwdutils
BuildRequires: python-devel
BuildRequires: krb5-devel
%if 0%{?suse_version} > 1220
BuildRequires: gpg-offline
%endif
@ -144,6 +144,9 @@ rm -r contrib/gai*
%pre
usr/sbin/useradd -r -g daemon -s /bin/false \
-c "mail retrieval daemon" -d /var/lib/fetchmail fetchmail 2>/dev/null || :
%if 0%{?suse_version} >=1230
%service_add_pre %{name}.service
%endif
%post
%if 0%{?suse_version} >=1230
@ -157,6 +160,11 @@ touch var/log/fetchmail
chown fetchmail var/log/fetchmail
chmod 0600 var/log/fetchmail
%preun
%if 0%{?suse_version} >=1230
%service_del_preun %{name}.service
%endif
%postun
%if 0%{?suse_version} >=1230
%service_del_postun %{name}.service