From: Felix Fietkau Date: Sun, 31 Jan 2016 23:29:12 +0000 (+0000) Subject: package/Makefile: override opkg installation time when SOURCE_DATE_EPOCH set X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ad8169546cbcb5b2ed59cef332bb6b1dc5e389ef;p=openwrt%2Fstaging%2Fkaloz.git package/Makefile: override opkg installation time when SOURCE_DATE_EPOCH set Signed-off-by: Alexander Couzens Signed-off-by: Felix Fietkau SVN-Revision: 48585 --- diff --git a/package/Makefile b/package/Makefile index 12bd0ae0c2..1a78fde47a 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