1 Adhere to the SOURCE_DATE_EPOCH standard and use it's date when set
2 otherwise fall back to the default behaviour.
4 Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
7 1 file changed, 1 insertion(+), 1 deletion(-)
9 diff --git a/Makefile b/Makefile
10 index 33a451e..9066d5d 100644
13 @@ -108,7 +108,7 @@ all: keyctl request-key key.dns_resolver
14 ###############################################################################
15 #RPATH = -Wl,-rpath,$(LIBDIR)
17 -VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\""
18 +VCPPFLAGS := -DPKGBUILD="\"$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)\""
19 VCPPFLAGS += -DPKGVERSION="\"keyutils-$(VERSION)\""
20 VCPPFLAGS += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""