You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
2.7 KiB

  1. # openwisp.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v3.
  4. # See /LICENSE for more information.
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=openwisp-config
  7. PKG_RELEASE:=1
  8. PKG_MAINTAINER:=Federico Capoano <f.capoano@openwisp.io>
  9. PKG_LICENSE:=GPL3.0-or-later
  10. PKG_SOURCE_URL:=https://github.com/openwisp/openwisp-config.git
  11. PKG_MIRROR_HASH:=b1f5682715cc5b5623b2acf49ebb75d8bac1b58094981b61ede3ca392bdfa269
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_DATE:=2021-12-07
  14. PKG_SOURCE_VERSION:=08df34db29180a0d13c2e357723e8c546523014a
  15. PKGARCH:=all
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/openwisp-config
  18. TITLE:=Remote configuration management agent
  19. CATEGORY:=Administration
  20. SECTION:=admin
  21. SUBMENU:=openwisp
  22. DEPENDS:=+curl \
  23. +lua \
  24. +libuci-lua \
  25. +luafilesystem \
  26. +luci-lib-nixio \
  27. +ca-certificates
  28. PKGARCH:=all
  29. URL:=https://openwisp.org
  30. endef
  31. define Build/Compile
  32. endef
  33. define Package/openwisp-config/conffiles
  34. /etc/config/openwisp
  35. endef
  36. define Package/openwisp-config/install
  37. $(INSTALL_DIR) \
  38. $(1)/usr/sbin \
  39. $(1)/etc/init.d \
  40. $(1)/etc/config \
  41. $(1)/etc/openwisp \
  42. $(1)/usr/lib/lua/openwisp
  43. $(INSTALL_BIN) \
  44. $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.agent \
  45. $(1)/usr/sbin/openwisp_config
  46. $(INSTALL_BIN) \
  47. $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.init \
  48. $(1)/etc/init.d/openwisp_config
  49. $(INSTALL_CONF) $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.config \
  50. $(1)/etc/config/openwisp
  51. $(INSTALL_BIN) \
  52. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-reload-config \
  53. $(1)/usr/sbin/openwisp-reload-config
  54. $(INSTALL_BIN) \
  55. $(PKG_BUILD_DIR)/openwisp-config/files/lib/openwisp/utils.lua \
  56. $(1)/usr/lib/lua/openwisp/utils.lua
  57. $(INSTALL_BIN) \
  58. $(PKG_BUILD_DIR)/openwisp-config/files/lib/openwisp/net.lua \
  59. $(1)/usr/lib/lua/openwisp/net.lua
  60. $(INSTALL_BIN) \
  61. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-store-unmanaged.lua \
  62. $(1)/usr/sbin/openwisp-store-unmanaged
  63. $(INSTALL_BIN) \
  64. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-restore-unmanaged.lua \
  65. $(1)/usr/sbin/openwisp-restore-unmanaged
  66. $(INSTALL_BIN) \
  67. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-remove-default-wifi.lua \
  68. $(1)/usr/sbin/openwisp-remove-default-wifi
  69. $(INSTALL_BIN) \
  70. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-uci-autoname.lua \
  71. $(1)/usr/sbin/openwisp-uci-autoname
  72. $(INSTALL_BIN) \
  73. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-update-config.lua \
  74. $(1)/usr/sbin/openwisp-update-config
  75. $(INSTALL_BIN) \
  76. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-get-address.lua \
  77. $(1)/usr/sbin/openwisp-get-address
  78. $(CP) $(PKG_BUILD_DIR)/VERSION $(1)/etc/openwisp/
  79. endef
  80. $(eval $(call BuildPackage,openwisp-config))