From 491bb4765eb18812be235aaa1f5537ff214f0feb Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 20 May 2015 12:43:25 +0200 Subject: [PATCH 076/257] usr.sbin/ntp: Allow to set MKREPRO_DATE and MKREPRO_TIME to get reproducible builds Obtained from: ElectroBSD --- usr.sbin/ntp/libntp/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr.sbin/ntp/libntp/Makefile b/usr.sbin/ntp/libntp/Makefile index 74babee5d841..f7c82f345af4 100644 --- a/usr.sbin/ntp/libntp/Makefile +++ b/usr.sbin/ntp/libntp/Makefile @@ -85,6 +85,13 @@ CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \ CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H +.if defined(MKREPRO_DATE) +CFLAGS+= -DMKREPRO_DATE="\"${MKREPRO_DATE}\"" +.endif +.if defined(MKREPRO_TIME) +CFLAGS+= -DMKREPRO_TIME="\"${MKREPRO_TIME}\"" +.endif + CLEANFILES+= .version version.c version.c: -- 2.11.0