-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
56 lines (46 loc) · 1.29 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
52
53
54
55
56
#
# Copyright (C) 2010-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-zigbeegw
PKG_VERSION:=1.0
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/luci-app-zigbeegw
SECTION:=LuCI
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=LuCI Support for zigbeegw
DEPENDS:=+libc +zigbeegw
PKGARCH:=all
endef
define Package/luci-app-zigbeegw/description
LuCI Support for zigbeegw
endef
define Build/Compile
endef
define Package/luci-app-zigbeegw/install
$(CP) ./files/* $(1)
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./init.d/zigbeegw.init $(1)/etc/init.d/zigbeegw
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./init.d/zigbeegw.conf $(1)/etc/config/zigbeegw
$(INSTALL_DIR) $(1)/etc/hotplug.d/usb
$(INSTALL_CONF) ./hotplug.d/30-mrvldongle $(1)/etc/hotplug.d/usb/
endef
define Package/luci-app-zigbeegw/postinst
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/luci-zigbeegw ) && rm -f /etc/uci-defaults/luci-zigbeegw
chmod 755 /etc/init.d/zigbeegw >/dev/null 2>&1
/etc/init.d/zigbeegw enable >/dev/null 2>&1
exit 0
}
endef
define Package/luci-app-zigbeegw/conffiles
/etc/config/zigbeegw
endef
$(eval $(call BuildPackage,luci-app-zigbeegw))