From ad8169546cbcb5b2ed59cef332bb6b1dc5e389ef Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 31 Jan 2016 23:29:12 +0000 Subject: [PATCH] package/Makefile: override opkg installation time when SOURCE_DATE_EPOCH set Signed-off-by: Alexander Couzens Signed-off-by: Felix Fietkau SVN-Revision: 48585 --- package/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/package/Makefile b/package/Makefile index 12bd0ae0c2b5..1a78fde47a6a 100644 --- a/package/Makefile +++ b/package/Makefile @@ -117,6 +117,7 @@ $(curdir)/install: $(TMP_DIR)/.build $(curdir)/system/opkg/host/install IPKG_INSTROOT=$(TARGET_DIR) $$(which bash) ./etc/rc.common $$script enable; \ done || true \ ) + $(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(TARGET_DIR)/usr/lib/opkg/status) @-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf @-find $(TARGET_DIR) -name .svn | $(XARGS) rm -rf @-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f -- 2.30.2