aboutsummaryrefslogtreecommitdiff
path: root/updater-ng-auto/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-09-13 15:40:11 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-09-13 15:43:05 +0200
commit975d539f263be9e864fd6bd66fabd9fa3bd96b0d (patch)
tree16e8ed1b7ae58a64cef859725c5d0542dce008bc /updater-ng-auto/Makefile
parent74799790484128bc2de80a620b67aa584c204b6e (diff)
downloadturris-myrepo-975d539f263be9e864fd6bd66fabd9fa3bd96b0d.tar.gz
turris-myrepo-975d539f263be9e864fd6bd66fabd9fa3bd96b0d.tar.bz2
turris-myrepo-975d539f263be9e864fd6bd66fabd9fa3bd96b0d.zip
updater-ng localrepo migration
Diffstat (limited to 'updater-ng-auto/Makefile')
-rw-r--r--updater-ng-auto/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/updater-ng-auto/Makefile b/updater-ng-auto/Makefile
index 04b1f6e..ae59e46 100644
--- a/updater-ng-auto/Makefile
+++ b/updater-ng-auto/Makefile
@@ -124,12 +124,19 @@ endef
define Package/$(PKG_NAME)-opkg
TITLE:=OPKG compatibility wrapper for next generation updater
- DEPENDS:=+opkg +localrepo
+ DEPENDS:=+opkg +$(PKG_NAME)-localrepo
endef
define Package/$(PKG_NAME)-opkg/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/opkg $(1)/usr/bin/opkg-pkgupdate-wrapper.sh
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/content2localrepo $(1)/usr/bin/updater-ng-opkg-content2localrepo.sh
+endef
+
+define Package/$(PKG_NAME)-opkg/postinst
+[ -n "$$IPKG_INSTROOT" ] || {
+ /usr/bin/updater-ng-opkg-content2localrepo.sh
+}
endef
# Current implementation of updater can't remove package before replan and so we