use PraveTmp in systemd unit file

This commit is contained in:
Michal Hlavinka 2012-02-07 15:55:24 +01:00
parent 22b84f8ed2
commit e8ef6d15b1
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,11 @@
diff -up dovecot-2.1.rc5/dovecot.service.in.privatetmp dovecot-2.1.rc5/dovecot.service.in
--- dovecot-2.1.rc5/dovecot.service.in.privatetmp 2012-02-07 15:15:54.977571774 +0100
+++ dovecot-2.1.rc5/dovecot.service.in 2012-02-07 15:15:54.977571775 +0100
@@ -6,6 +6,7 @@ After=local-fs.target network.target
Type=simple
ExecStart=@sbindir@/dovecot -F
NonBlocking=yes
+PrivateTmp=true
[Install]
WantedBy=multi-user.target

View File

@ -3,7 +3,7 @@ Name: dovecot
Epoch: 1 Epoch: 1
Version: 2.1 Version: 2.1
%global prever .rc5 %global prever .rc5
Release: 0.5%{prever}%{?dist} Release: 0.6%{prever}%{?dist}
#dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2 #dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2
License: MIT and LGPLv2 License: MIT and LGPLv2
Group: System Environment/Daemons Group: System Environment/Daemons
@ -24,10 +24,11 @@ Source10: dovecot.tmpfilesd
#our own #our own
Source14: dovecot.conf.5 Source14: dovecot.conf.5
# 3x Fedora/RHEL specific # 4x Fedora/RHEL specific
Patch1: dovecot-2.0-defaultconfig.patch Patch1: dovecot-2.0-defaultconfig.patch
Patch2: dovecot-1.0.beta2-mkcert-permissions.patch Patch2: dovecot-1.0.beta2-mkcert-permissions.patch
Patch3: dovecot-1.0.rc7-mkcert-paths.patch Patch3: dovecot-1.0.rc7-mkcert-paths.patch
Patch4: dovecot-2.1-privatetmp.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel, pam-devel, zlib-devel, bzip2-devel, libcap-devel BuildRequires: openssl-devel, pam-devel, zlib-devel, bzip2-devel, libcap-devel
@ -110,6 +111,7 @@ This package provides the development files for dovecot.
%patch1 -p1 -b .default-settings %patch1 -p1 -b .default-settings
%patch2 -p1 -b .mkcert-permissions %patch2 -p1 -b .mkcert-permissions
%patch3 -p1 -b .mkcert-paths %patch3 -p1 -b .mkcert-paths
%patch4 -p1 -b .privatetmp
%build %build
#required for fdpass.c line 125,190: dereferencing type-punned pointer will break strict-aliasing rules #required for fdpass.c line 125,190: dereferencing type-punned pointer will break strict-aliasing rules
@ -411,6 +413,9 @@ make check
%{_libdir}/%{name}/dict/libdriver_pgsql.so %{_libdir}/%{name}/dict/libdriver_pgsql.so
%changelog %changelog
* Tue Feb 07 2012 Michal Hlavinka <mhlavink@redhat.com> - 1:2.1-0.5.rc6
- use PraveTmp in systemd unit file
* Tue Feb 07 2012 Michal Hlavinka <mhlavink@redhat.com> - 1:2.1-0.5.rc5 * Tue Feb 07 2012 Michal Hlavinka <mhlavink@redhat.com> - 1:2.1-0.5.rc5
- updated to 2.1.rc5 - updated to 2.1.rc5
- director: With >2 directors ring syncing might have stalled during - director: With >2 directors ring syncing might have stalled during