Preserve timestamps during 'make install'

Patch provided by Robert Scheck
Resolves: rhbz#1307064
This commit is contained in:
Ondřej Lysoněk 2016-08-04 12:04:00 +02:00
parent d4589e6527
commit e4370ecc7d
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/postfix-install b/postfix-install
index 922402b..586e5b0 100644
--- a/postfix-install
+++ b/postfix-install
@@ -304,7 +304,7 @@ compare_or_replace() {
(cmp $src $dst >/dev/null 2>&1 && echo Skipping $dst...) || {
echo Updating $dst...
rm -f $tempdir/junk || exit 1
- cp $src $tempdir/junk || exit 1
+ cp -p $src $tempdir/junk || exit 1
mv -f $tempdir/junk $dst || exit 1
test -z "$owner" || chown $owner $dst || exit 1
test -z "$group" || chgrp $group $dst || exit 1

View File

@ -42,7 +42,7 @@
Name: postfix
Summary: Postfix Mail Transport Agent
Version: 3.1.1
Release: 2%{?dist}
Release: 3%{?dist}
Epoch: 2
Group: System Environment/Daemons
URL: http://www.postfix.org
@ -85,6 +85,7 @@ Patch1: postfix-3.0.0-config.patch
Patch2: postfix-3.1.0-files.patch
Patch3: postfix-3.1.0-alternatives.patch
Patch4: postfix-3.1.0-large-fs.patch
Patch5: postfix-3.1.1-timestamps.patch
Patch9: pflogsumm-1.1.3-datecalc.patch
# Optional patches - set the appropriate environment variables to include
@ -209,6 +210,7 @@ maps with Postfix, you need this.
%patch2 -p1 -b .files
%patch3 -p1 -b .alternatives
%patch4 -p1 -b .large-fs
%patch5 -p1 -b .timestamps
# Change DEF_SHLIB_DIR according to build host
sed -i \
@ -732,6 +734,11 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
* Thu Aug 04 2016 Ondřej Lysoněk <olysonek@redhat.com> - 2:3.1.1-3
- Preserve timestamps during 'make install'
Patch provided by Robert Scheck
Resolves: rhbz#1307064
* Wed Jun 29 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.1.1-2
- Hardened systemd unit file
Resolves: rhbz#1350941