Merge pull request #17282 from TDT-AG/pr/20211207-openwisp
openwisp-config: refactoring and update openwisp-config package
This commit is contained in:
commit
45438d033e
1 changed files with 23 additions and 31 deletions
|
@ -5,48 +5,43 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=openwisp-config
|
PKG_NAME:=openwisp-config
|
||||||
PKG_SOURCE_VERSION:=0.5.0
|
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
|
||||||
PKG_SOURCE_URL:=https://github.com/openwisp/openwisp-config.git
|
|
||||||
PKG_MIRROR_HASH:=337a3a9542a0898da9f951256b0d19b6bc87ced98f4ec6dc9646172b551880ef
|
|
||||||
PKG_MAINTAINER:=Federico Capoano <f.capoano@openwisp.io>
|
PKG_MAINTAINER:=Federico Capoano <f.capoano@openwisp.io>
|
||||||
PKG_LICENSE:=GPL3.0-or-later
|
PKG_LICENSE:=GPL3.0-or-later
|
||||||
|
|
||||||
|
PKG_SOURCE_URL:=https://github.com/openwisp/openwisp-config.git
|
||||||
|
PKG_MIRROR_HASH:=b1f5682715cc5b5623b2acf49ebb75d8bac1b58094981b61ede3ca392bdfa269
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_DATE:=2021-12-07
|
||||||
|
PKG_SOURCE_VERSION:=08df34db29180a0d13c2e357723e8c546523014a
|
||||||
PKGARCH:=all
|
PKGARCH:=all
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/openwisp-config/default
|
define Package/openwisp-config
|
||||||
TITLE:=Remote configuration management agent ($(2) variant)
|
TITLE:=Remote configuration management agent
|
||||||
CATEGORY:=Administration
|
CATEGORY:=Administration
|
||||||
SECTION:=admin
|
SECTION:=admin
|
||||||
SUBMENU:=openwisp
|
SUBMENU:=openwisp
|
||||||
DEPENDS:=+curl +lua +libuci-lua +luafilesystem +luci-lib-nixio $(3)
|
DEPENDS:=+curl \
|
||||||
VARIANT:=$(1)
|
+lua \
|
||||||
PKGARCH:=all
|
+libuci-lua \
|
||||||
URL:=http://openwisp.org
|
+luafilesystem \
|
||||||
|
+luci-lib-nixio \
|
||||||
|
+ca-certificates
|
||||||
|
PKGARCH:=all
|
||||||
|
URL:=https://openwisp.org
|
||||||
endef
|
endef
|
||||||
|
|
||||||
Package/openwisp-config-openssl=$(call Package/openwisp-config/default,openssl,OpenSSL,+ca-certificates +libopenssl)
|
|
||||||
Package/openwisp-config-mbedtls=$(call Package/openwisp-config/default,mbedtls,mbedTLS,+ca-certificates +libmbedtls)
|
|
||||||
Package/openwisp-config-wolfssl=$(call Package/openwisp-config/default,wolfssl,WolfSSL,+ca-certificates +libwolfssl)
|
|
||||||
Package/openwisp-config-nossl=$(call Package/openwisp-config/default,nossl,No SSL)
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/openwisp-config-$(BUILD_VARIANT)/conffiles
|
define Package/openwisp-config/conffiles
|
||||||
/etc/config/openwisp
|
/etc/config/openwisp
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIG_OPENWISP_UCI:=ssl
|
define Package/openwisp-config/install
|
||||||
|
|
||||||
ifeq ($(BUILD_VARIANT),nossl)
|
|
||||||
CONFIG_OPENWISP_UCI:=nossl
|
|
||||||
endif
|
|
||||||
|
|
||||||
define Package/openwisp-config-$(BUILD_VARIANT)/install
|
|
||||||
$(INSTALL_DIR) \
|
$(INSTALL_DIR) \
|
||||||
$(1)/usr/sbin \
|
$(1)/usr/sbin \
|
||||||
$(1)/etc/init.d \
|
$(1)/etc/init.d \
|
||||||
|
@ -62,7 +57,7 @@ define Package/openwisp-config-$(BUILD_VARIANT)/install
|
||||||
$(PKG_BUILD_DIR)/openwisp-config/files/openwisp.init \
|
$(PKG_BUILD_DIR)/openwisp-config/files/openwisp.init \
|
||||||
$(1)/etc/init.d/openwisp_config
|
$(1)/etc/init.d/openwisp_config
|
||||||
|
|
||||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/openwisp-config/files/openwisp-$(CONFIG_OPENWISP_UCI).config \
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.config \
|
||||||
$(1)/etc/config/openwisp
|
$(1)/etc/config/openwisp
|
||||||
|
|
||||||
$(INSTALL_BIN) \
|
$(INSTALL_BIN) \
|
||||||
|
@ -104,7 +99,4 @@ define Package/openwisp-config-$(BUILD_VARIANT)/install
|
||||||
$(CP) $(PKG_BUILD_DIR)/VERSION $(1)/etc/openwisp/
|
$(CP) $(PKG_BUILD_DIR)/VERSION $(1)/etc/openwisp/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,openwisp-config-openssl))
|
$(eval $(call BuildPackage,openwisp-config))
|
||||||
$(eval $(call BuildPackage,openwisp-config-mbedtls))
|
|
||||||
$(eval $(call BuildPackage,openwisp-config-wolfssl))
|
|
||||||
$(eval $(call BuildPackage,openwisp-config-nossl))
|
|
||||||
|
|
Loading…
Reference in a new issue