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:
parent
992c58140e
commit
b43dbdfffa
@ -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
|
Sun Oct 27 18:18:54 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package fetchmail
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,13 +18,13 @@
|
|||||||
|
|
||||||
Name: fetchmail
|
Name: fetchmail
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
|
BuildRequires: krb5-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: opie
|
BuildRequires: opie
|
||||||
BuildRequires: postfix
|
BuildRequires: postfix
|
||||||
BuildRequires: procmail
|
BuildRequires: procmail
|
||||||
BuildRequires: pwdutils
|
BuildRequires: pwdutils
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: krb5-devel
|
|
||||||
%if 0%{?suse_version} > 1220
|
%if 0%{?suse_version} > 1220
|
||||||
BuildRequires: gpg-offline
|
BuildRequires: gpg-offline
|
||||||
%endif
|
%endif
|
||||||
@ -144,6 +144,9 @@ rm -r contrib/gai*
|
|||||||
%pre
|
%pre
|
||||||
usr/sbin/useradd -r -g daemon -s /bin/false \
|
usr/sbin/useradd -r -g daemon -s /bin/false \
|
||||||
-c "mail retrieval daemon" -d /var/lib/fetchmail fetchmail 2>/dev/null || :
|
-c "mail retrieval daemon" -d /var/lib/fetchmail fetchmail 2>/dev/null || :
|
||||||
|
%if 0%{?suse_version} >=1230
|
||||||
|
%service_add_pre %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%if 0%{?suse_version} >=1230
|
%if 0%{?suse_version} >=1230
|
||||||
@ -157,6 +160,11 @@ touch var/log/fetchmail
|
|||||||
chown fetchmail var/log/fetchmail
|
chown fetchmail var/log/fetchmail
|
||||||
chmod 0600 var/log/fetchmail
|
chmod 0600 var/log/fetchmail
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%if 0%{?suse_version} >=1230
|
||||||
|
%service_del_preun %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if 0%{?suse_version} >=1230
|
%if 0%{?suse_version} >=1230
|
||||||
%service_del_postun %{name}.service
|
%service_del_postun %{name}.service
|
||||||
|
Loading…
Reference in New Issue
Block a user