package/Makefile: override opkg installation time when SOURCE_DATE_EPOCH set
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2016 23:29:12 +0000 (23:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2016 23:29:12 +0000 (23:29 +0000)
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48585

package/Makefile

index 12bd0ae0c2b5b9a57e08e3b2028648b9f90eba23..1a78fde47a6a281623d0517bfd8e32868584cd73 100644 (file)
@@ -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