-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
51 lines (41 loc) · 1.22 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# author:atrandys
# www.atrandys.com
#
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-udptools
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=LuCI for udp2raw and udpspeeder
PKGARCH:=all
endef
define Package/$(PKG_NAME)/description
LuCI for udp2raw and udpspeeder.
endef
define Build/Prepare
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
$(INSTALL_DATA) ./src/luci/i18n/udptools.zh-cn.lmo $(1)/usr/lib/lua/luci/i18n/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
$(INSTALL_DATA) ./src/luci/controller/*.lua $(1)/usr/lib/lua/luci/controller/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi
$(INSTALL_DATA) ./src/luci/model/cbi/*.lua $(1)/usr/lib/lua/luci/model/cbi/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view
$(INSTALL_DATA) ./src/luci/view/*.htm $(1)/usr/lib/lua/luci/view/
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./src/etc/config/udptools $(1)/etc/config/udptools
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./src/etc/init.d/udptools $(1)/etc/init.d/udptools
endef
$(eval $(call BuildPackage,$(PKG_NAME)))