-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (44 loc) · 1.21 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
57
#
# Copyright (C) 2018 Guohao Tan <[email protected]>
#
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=idrcom
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/idrcom
SECTION:=net
CATEGORY:=Network
TITLE:=Lightweight Stable Dr.COM Client
MAINTAINER:=Guohao Tan <[email protected]>
URL:=https://github.com/koho/idrcom
DEPENDS:=+libpthread
endef
define Package/idrcom/description
idrcom is a lightweight stable Dr.COM client for embedded devices.
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Package/idrcom/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/idrcom $(1)/usr/bin
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) files/idrcom.init $(1)/etc/init.d/idrcom
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) files/idrcom.conf $(1)/etc/idrcom.conf
endef
define Package/idrcom/postrm
#!/bin/sh
rm -rf /tmp/idrcom.log
rm -rf /etc/rc.d/S100idrcom
rm -rf /etc/rc.d/K20idrcom
endef
$(eval $(call BuildPackage,idrcom))