summaryrefslogtreecommitdiff
path: root/updater-ng/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-04-08 15:33:05 +0200
committerKarel Kočí <cynerd@email.cz>2020-04-08 15:33:31 +0200
commitd4a1602762d07a1c03920c823f9ab1d81c431ca2 (patch)
tree1b734a6f51262cd8db0216eb198ba9dcf8e3f8fc /updater-ng/Makefile
parent533edfa5776424398358c85b84a2f6f55e42ba83 (diff)
downloadopenwrt-personal-pkgs-d4a1602762d07a1c03920c823f9ab1d81c431ca2.tar.gz
openwrt-personal-pkgs-d4a1602762d07a1c03920c823f9ab1d81c431ca2.tar.bz2
openwrt-personal-pkgs-d4a1602762d07a1c03920c823f9ab1d81c431ca2.zip
updater-ng: update to use autotools
Diffstat (limited to 'updater-ng/Makefile')
-rw-r--r--updater-ng/Makefile28
1 files changed, 14 insertions, 14 deletions
diff --git a/updater-ng/Makefile b/updater-ng/Makefile
index 0e311da..6dd59b7 100644
--- a/updater-ng/Makefile
+++ b/updater-ng/Makefile
@@ -9,13 +9,17 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=updater-ng
PKG_SOURCE_URL:=https://gitlab.labs.nic.cz/turris/updater/updater.git
-PKG_SOURCE_BRANCH:=openssl-usign
+PKG_SOURCE_BRANCH:=master
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
PKG_BUILD_DEPENDS:=busybox libb64 uthash argp-standalone
+PKG_INSTALL:=1
+PKG_FIXUP:=autoreconf
+
include $(INCLUDE_DIR)/autopkg-branch.mk
include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/autotools.mk
define Package/$(PKG_NAME)
TITLE:=The next generation updater
@@ -25,18 +29,23 @@ define Package/$(PKG_NAME)
+libevent2 \
+libcurl \
+liburiparser \
- +libarchive \
+ +libarchive \
+usign \
+ca-certificates
endef
+CONFIGURE_ARGS += \
+ --disable-tests \
+ --disable-linters \
+ --disable-docs \
+ --with-embed-busybox="$(STAGING_DIR)/bin/busybox-static"
+
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/libupdater.so $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/lib/libupdater.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/pkgupdate $(1)/usr/bin/
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/pkgtransaction $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/* $(1)/usr/bin/
$(INSTALL_BIN) ./files/update_alternatives.sh $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/updater
@@ -63,13 +72,4 @@ define Package/$(PKG_NAME)/conffiles
/etc/config/updater
endef
-
-define Build/Compile
- $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) \
- NO_DOC=1 LUA_COMPILE:=no \
- BUSYBOX_EXEC=$(STAGING_DIR)/bin/busybox-static \
- ARGP_STANDALONE=y \
- UPDATER_VERSION:=$(PKG_VERSION)
-endef
-
$(eval $(call BuildPackage,$(PKG_NAME)))