mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 17:04:32 +04:00
Upgrades openwisp-config package to 1.2.0 Signed-off-by: Gagan Deep <pandafy.dev@gmail.com>
111 lines
2.9 KiB
Makefile
111 lines
2.9 KiB
Makefile
# SPDX-Identifier-License: GPL-3.0-only
|
|
#
|
|
# openwisp.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=openwisp-config
|
|
PKG_VERSION:=1.2.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MAINTAINER:=Federico Capoano <f.capoano@openwisp.io>
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
|
|
PKG_SOURCE_URL:=https://github.com/openwisp/openwisp-config.git
|
|
PKG_MIRROR_HASH:=30258c3ef4895fbf6e4fed8caee9d0dfbf05aebebd52604d75febac1a11d78bd
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/openwisp-config
|
|
TITLE:=Remote configuration management agent
|
|
CATEGORY:=Administration
|
|
SECTION:=admin
|
|
SUBMENU:=openwisp
|
|
DEPENDS:=+curl \
|
|
+lua \
|
|
+libuci-lua \
|
|
+luafilesystem \
|
|
+luci-lib-nixio \
|
|
+ca-certificates
|
|
PKGARCH:=all
|
|
URL:=https://openwisp.org
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/openwisp-config/conffiles
|
|
/etc/config/openwisp
|
|
/etc/openwisp/
|
|
endef
|
|
|
|
define Package/openwisp-config/install
|
|
$(INSTALL_DIR) \
|
|
$(1)/usr/sbin \
|
|
$(1)/etc/init.d \
|
|
$(1)/etc/config \
|
|
$(1)/usr/lib/openwisp-config \
|
|
$(1)/usr/lib/lua/openwisp \
|
|
$(1)/etc/hotplug.d/iface
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/openwisp.agent \
|
|
$(1)/usr/sbin/openwisp-config
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/openwisp.init \
|
|
$(1)/etc/init.d/openwisp-config
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.config \
|
|
$(1)/etc/config/openwisp
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.hotplug \
|
|
$(1)/etc/hotplug.d/iface/90-openwisp-config
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-reload-config \
|
|
$(1)/usr/sbin/openwisp-reload-config
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/lib/openwisp/utils.lua \
|
|
$(1)/usr/lib/lua/openwisp/utils.lua
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/lib/openwisp/net.lua \
|
|
$(1)/usr/lib/lua/openwisp/net.lua
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-store-unmanaged.lua \
|
|
$(1)/usr/sbin/openwisp-store-unmanaged
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-restore-unmanaged.lua \
|
|
$(1)/usr/sbin/openwisp-restore-unmanaged
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-remove-default-wifi.lua \
|
|
$(1)/usr/sbin/openwisp-remove-default-wifi
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-uci-autoname.lua \
|
|
$(1)/usr/sbin/openwisp-uci-autoname
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-update-config.lua \
|
|
$(1)/usr/sbin/openwisp-update-config
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-get-address.lua \
|
|
$(1)/usr/sbin/openwisp-get-address
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-get-random-number.lua \
|
|
$(1)/usr/sbin/openwisp-get-random-number
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/VERSION $(1)/usr/lib/openwisp-config/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,openwisp-config))
|