diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-31 23:29:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-31 23:29:12 +0000 |
commit | 973cd87d30f5763113e830f3343ca33267c79b9a (patch) | |
tree | 4bf086bed72d989e13c80a39d86c9b60be6ed7a3 | |
parent | 695d68c07de840d904af5cd9dac6cb4984814e72 (diff) | |
download | master-187ad058-973cd87d30f5763113e830f3343ca33267c79b9a.tar.gz master-187ad058-973cd87d30f5763113e830f3343ca33267c79b9a.tar.bz2 master-187ad058-973cd87d30f5763113e830f3343ca33267c79b9a.zip |
package/Makefile: override opkg installation time when SOURCE_DATE_EPOCH set
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48585 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
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 |