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.

101 lines
2.6 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:=f0b0866b27a7a75bc33c3bbc4780dd99f5ae693226012ae04e63a303172c2c38
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_VERSION:=1.0.0
  14. PKGARCH:=all
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/openwisp-config
  17. TITLE:=Remote configuration management agent
  18. CATEGORY:=Administration
  19. SECTION:=admin
  20. SUBMENU:=openwisp
  21. DEPENDS:=+curl \
  22. +lua \
  23. +libuci-lua \
  24. +luafilesystem \
  25. +luci-lib-nixio \
  26. +ca-certificates
  27. PKGARCH:=all
  28. URL:=https://openwisp.org
  29. endef
  30. define Build/Compile
  31. endef
  32. define Package/openwisp-config/conffiles
  33. /etc/config/openwisp
  34. endef
  35. define Package/openwisp-config/install
  36. $(INSTALL_DIR) \
  37. $(1)/usr/sbin \
  38. $(1)/etc/init.d \
  39. $(1)/etc/config \
  40. $(1)/etc/openwisp \
  41. $(1)/usr/lib/lua/openwisp
  42. $(INSTALL_BIN) \
  43. $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.agent \
  44. $(1)/usr/sbin/openwisp_config
  45. $(INSTALL_BIN) \
  46. $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.init \
  47. $(1)/etc/init.d/openwisp_config
  48. $(INSTALL_CONF) $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.config \
  49. $(1)/etc/config/openwisp
  50. $(INSTALL_BIN) \
  51. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-reload-config \
  52. $(1)/usr/sbin/openwisp-reload-config
  53. $(INSTALL_BIN) \
  54. $(PKG_BUILD_DIR)/openwisp-config/files/lib/openwisp/utils.lua \
  55. $(1)/usr/lib/lua/openwisp/utils.lua
  56. $(INSTALL_BIN) \
  57. $(PKG_BUILD_DIR)/openwisp-config/files/lib/openwisp/net.lua \
  58. $(1)/usr/lib/lua/openwisp/net.lua
  59. $(INSTALL_BIN) \
  60. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-store-unmanaged.lua \
  61. $(1)/usr/sbin/openwisp-store-unmanaged
  62. $(INSTALL_BIN) \
  63. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-restore-unmanaged.lua \
  64. $(1)/usr/sbin/openwisp-restore-unmanaged
  65. $(INSTALL_BIN) \
  66. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-remove-default-wifi.lua \
  67. $(1)/usr/sbin/openwisp-remove-default-wifi
  68. $(INSTALL_BIN) \
  69. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-uci-autoname.lua \
  70. $(1)/usr/sbin/openwisp-uci-autoname
  71. $(INSTALL_BIN) \
  72. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-update-config.lua \
  73. $(1)/usr/sbin/openwisp-update-config
  74. $(INSTALL_BIN) \
  75. $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-get-address.lua \
  76. $(1)/usr/sbin/openwisp-get-address
  77. $(CP) $(PKG_BUILD_DIR)/VERSION $(1)/etc/openwisp/
  78. endef
  79. $(eval $(call BuildPackage,openwisp-config))