diff --git a/miniupnpd/genconfig.sh b/miniupnpd/genconfig.sh index 1e0f0b7..d938a38 100755 --- a/miniupnpd/genconfig.sh +++ b/miniupnpd/genconfig.sh @@ -60,6 +60,10 @@ CONFIGFILE_FINAL="config.h" CONFIGMACRO="CONFIG_H_INCLUDED" MINIUPNPD_DATE=`date +"%Y%m%d"` +if [ -n "$SOURCE_DATE_EPOCH" ]; then + MINIUPNPD_DATE=`date --utc --date="@$SOURCE_DATE_EPOCH" +"%Y%m%d"` +fi + # Facility to syslog LOG_MINIUPNPD="LOG_DAEMON"