-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
52 lines (40 loc) · 1.35 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
include $(TOPDIR)/rules.mk
PKG_NAME:=cqu-drcom
PKG_RELEASE:=0.03
PKG_LICENSE:=AGPL-3.0
PKG_LICENSE_FILE:=LICENSE.md
PKG_MAINTAINER:=Hagb <[email protected]>
include $(INCLUDE_DIR)/package.mk
define Package/cqu-drcom
SECTION:=net
CATEGORY:=Network
TITLE:=DrCOM unofficial client for CQU
URL:=https://github.com/CQU-drcom/cqu-drcom-openwrt
DEPENDS:=+micropython-drcom-with-lib +coreutils-stdbuf
PKGARCH:=all
endef
define Package/cqu-drcom/description
endef
define Package/cqu-drcom/conffiles
/etc/config/drcom
endef
define Build/Compile
true
endef
define Build/Configure
true
endef
define Build/Install
true
endef
define Package/cqu-drcom/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/libexec $(1)/usr/share/drcom $(1)/etc/config $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/bin/drcom_openwrt $(1)/usr/bin/drcom_openwrt
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/libexec/drcom.sh $(1)/usr/libexec/drcon.sh
$(INSTALL_BIN) $(PKG_BUILD_DIR)/etc/init.d/drcomctl $(1)/etc/init.d/drcomctl
$(INSTALL_DATA) $(PKG_BUILD_DIR)/usr/share/drcom/huxi.conf $(1)/usr/share/drcom/huxi.conf
$(INSTALL_DATA) $(PKG_BUILD_DIR)/usr/share/drcom/a.conf $(1)/usr/share/drcom/a.conf
$(INSTALL_DATA) $(PKG_BUILD_DIR)/usr/share/drcom/b.conf $(1)/usr/share/drcom/b.conf
$(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/config/drcom $(1)/etc/config/drcom
endef
$(eval $(call BuildPackage,cqu-drcom))