-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
36 lines (28 loc) · 879 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
include $(TOPDIR)/rules.mk
PKG_NAME:=ngrokc
PKG_VERSION:=20160829
PKG_RELEASE:=1
PKG_REV:=4cce60ecd428bf8058e242fb9c38369ab75e350e
PKG_SOURCE_PROTO:=git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=https://github.com/dosgo/ngrok-c.git
PKG_SOURCE_VERSION:=$(PKG_REV)
include $(INCLUDE_DIR)/package.mk
define Package/ngrokc
SECTION:=net
CATEGORY:=Network
SUBMENU:=Web Servers/Proxies
TITLE:=Secure tunnels to localhost(C++ port)
URL:=https://github.com/dosgo/ngrok-c
DEPENDS:=+libc +libpthread +libopenssl +libstdcpp
endef
define Build/Prepare
$(call Build/Prepare/Default,)
$(CP) $(PKG_BUILD_DIR)/Makefile.openssl $(PKG_BUILD_DIR)/Makefile
endef
define Package/ngrokc/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ngrokc $(1)/usr/bin
endef
$(eval $(call BuildPackage,ngrokc))