-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (28 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-seu-net
PKG_VERSION:=1.27
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
DEPENDS:=+curl
TITLE:=LuCI support for seu network login and logout
PKGARCH:=all
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/conffiles
/etc/config/seu-net
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/etc/init.d $(1)/usr/bin/seu-net $(1)/etc/config $(1)/usr/lib/lua/luci $(1)/etc/uci-defaults $(1)/usr/share/rpcd/acl.d
$(CP) ./luasrc/* $(1)/usr/lib/lua/luci
$(INSTALL_CONF) ./root/etc/config/seu-net $(1)/etc/config
$(INSTALL_BIN) ./root/etc/init.d/seu-net $(1)/etc/init.d
$(INSTALL_BIN) ./root/etc/uci-defaults/luci-seu-net $(1)/etc/uci-defaults/luci-seu-net
$(INSTALL_BIN) ./root/usr/bin/seu-net/seu-net $(1)/usr/bin/seu-net
$(INSTALL_DATA) ./root/usr/share/rpcd/acl.d/luci-app-seu-net.json $(1)/usr/share/rpcd/acl.d/luci-app-seu-net.json
endef
$(eval $(call BuildPackage,$(PKG_NAME)))