From 95aa7cd52acf292b4feb773f45080cd8e49625d6 Mon Sep 17 00:00:00 2001
From: samm2 <samm2@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Sat, 16 Sep 2023 07:30:14 +0000
Subject: [PATCH] macOS: set files timestamps in the ISO to SOURCE_DATE_EPOCH
 value

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5554 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 smartmontools/ChangeLog   | 1 +
 smartmontools/Makefile.am | 1 +
 2 files changed, 2 insertions(+)

diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index eeb5a7ec8..adbe3c887 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -4,6 +4,7 @@ $Id$
 
 	CI: export SOURCE_DATE_EPOCH on macOS as tools are expecting it as an
 	environment variable
+	macOS: set files timestamps in the ISO to SOURCE_DATE_EPOCH value
 
 2023-09-15  Oleksii Samorukov  <samm@os2.kiev.ua>
 
diff --git a/smartmontools/Makefile.am b/smartmontools/Makefile.am
index 732f595b9..9a04309fb 100644
--- a/smartmontools/Makefile.am
+++ b/smartmontools/Makefile.am
@@ -1186,6 +1186,7 @@ $(pkg_darwin):
 # build darwon dmg image
 $(dmg_darwin):
 	@cp $(srcdir)/os_darwin/pkg/installer/README.html $(distdir_darwin)/dmg
+	@find $(distdir_darwin)/dmg | xargs touch -d "@${SOURCE_DATE_EPOCH}"
 	@xorriso -as mkisofs -V 'smartmontools' -no-pad -r -o $(distdir_darwin)/smartmontools-$(VERSION).iso \
 		-hfs-bless "$(distdir_darwin)/dmg/" "$(distdir_darwin)/dmg/"
 	@dmg dmg $(distdir_darwin)/smartmontools-$(VERSION).iso $(dmg_darwin)
-- 
GitLab