forked from mchome/openwrt-dogcom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 984 Bytes
/
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
include $(TOPDIR)/rules.mk
PKG_NAME:=dogcom
PKG_VERSION=v1.6.2
PKG_RELEASE:=1
PKG_MAINTAINER:=fuyumi <[email protected]>
PKG_LICENSE:=AGPL-3.0
PKG_LICENSE_FILES:=LICENSE
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/mchome/dogcom.git
PKG_SOURCE_VERSION:=309db8f545d7454b464a5d5d1d7dc4bde313f07a
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/dogcom
SECTION:=net
CATEGORY:=Network
TITLE:=dogcom for OpenWRT
URL:=https://github.com/mchome/dogcom
endef
define Package/dogcom/description
dogcom is drcom-generic implementation in C.
endef
MAKE_FLAGS += \
-C $(PKG_BUILD_DIR)
define Package/dogcom/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dogcom $(1)/usr/bin/dogcom
$(INSTALL_DIR) $(1)/etc
$(INSTALL_BIN) ./files/dogcom.conf $(1)/etc/dogcom.conf
endef
$(eval $(call BuildPackage,dogcom))