From 973cd87d30f5763113e830f3343ca33267c79b9a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 31 Jan 2016 23:29:12 +0000 Subject: package/Makefile: override opkg installation time when SOURCE_DATE_EPOCH set Signed-off-by: Alexander Couzens Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48585 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'package/Makefile') 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 -- cgit v1.2.3