openwisp-config: update to 1.0.0
[feed/packages.git] / admin / openwisp-config / Makefile
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
7 PKG_NAME:=openwisp-config
8 PKG_RELEASE:=1
9
10 PKG_MAINTAINER:=Federico Capoano <f.capoano@openwisp.io>
11 PKG_LICENSE:=GPL3.0-or-later
12
13 PKG_SOURCE_URL:=https://github.com/openwisp/openwisp-config.git
14 PKG_MIRROR_HASH:=f0b0866b27a7a75bc33c3bbc4780dd99f5ae693226012ae04e63a303172c2c38
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_VERSION:=1.0.0
17 PKGARCH:=all
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/openwisp-config
22 TITLE:=Remote configuration management agent
23 CATEGORY:=Administration
24 SECTION:=admin
25 SUBMENU:=openwisp
26 DEPENDS:=+curl \
27 +lua \
28 +libuci-lua \
29 +luafilesystem \
30 +luci-lib-nixio \
31 +ca-certificates
32 PKGARCH:=all
33 URL:=https://openwisp.org
34 endef
35
36 define Build/Compile
37 endef
38
39 define Package/openwisp-config/conffiles
40 /etc/config/openwisp
41 endef
42
43 define Package/openwisp-config/install
44 $(INSTALL_DIR) \
45 $(1)/usr/sbin \
46 $(1)/etc/init.d \
47 $(1)/etc/config \
48 $(1)/etc/openwisp \
49 $(1)/usr/lib/lua/openwisp
50
51 $(INSTALL_BIN) \
52 $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.agent \
53 $(1)/usr/sbin/openwisp_config
54
55 $(INSTALL_BIN) \
56 $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.init \
57 $(1)/etc/init.d/openwisp_config
58
59 $(INSTALL_CONF) $(PKG_BUILD_DIR)/openwisp-config/files/openwisp.config \
60 $(1)/etc/config/openwisp
61
62 $(INSTALL_BIN) \
63 $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-reload-config \
64 $(1)/usr/sbin/openwisp-reload-config
65
66 $(INSTALL_BIN) \
67 $(PKG_BUILD_DIR)/openwisp-config/files/lib/openwisp/utils.lua \
68 $(1)/usr/lib/lua/openwisp/utils.lua
69
70 $(INSTALL_BIN) \
71 $(PKG_BUILD_DIR)/openwisp-config/files/lib/openwisp/net.lua \
72 $(1)/usr/lib/lua/openwisp/net.lua
73
74 $(INSTALL_BIN) \
75 $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-store-unmanaged.lua \
76 $(1)/usr/sbin/openwisp-store-unmanaged
77
78 $(INSTALL_BIN) \
79 $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-restore-unmanaged.lua \
80 $(1)/usr/sbin/openwisp-restore-unmanaged
81
82 $(INSTALL_BIN) \
83 $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-remove-default-wifi.lua \
84 $(1)/usr/sbin/openwisp-remove-default-wifi
85
86 $(INSTALL_BIN) \
87 $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-uci-autoname.lua \
88 $(1)/usr/sbin/openwisp-uci-autoname
89
90 $(INSTALL_BIN) \
91 $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-update-config.lua \
92 $(1)/usr/sbin/openwisp-update-config
93
94 $(INSTALL_BIN) \
95 $(PKG_BUILD_DIR)/openwisp-config/files/sbin/openwisp-get-address.lua \
96 $(1)/usr/sbin/openwisp-get-address
97
98 $(CP) $(PKG_BUILD_DIR)/VERSION $(1)/etc/openwisp/
99 endef
100
101 $(eval $(call BuildPackage,openwisp-config))