1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Make the build reproducible
Forwarded: not-needed
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2023-12-19
--- stunnel4-5.70.orig/doc/Makefile.am
+++ stunnel4-5.70/doc/Makefile.am
@@ -14,9 +14,11 @@ DISTCLEANFILES = $(doc_DATA)
SUFFIXES = .pod.in .8.in .html.in
+BUILD_DATE = $(shell date --utc --date=@$(or $(SOURCE_DATE_EPOCH),$(shell date +%s)) +%Y.%m.%d)
+
.pod.in.8.in:
pod2man -u -n stunnel -s 8 -r $(VERSION) \
- -c "stunnel4 TLS Proxy" -d `date +%Y.%m.%d` $< $@
+ -c "stunnel4 TLS Proxy" -d '$(BUILD_DATE)' $< $@
.pod.in.html.in:
pod2html --index --backlink --header \
|