kenzok8-package/ngrokc/Makefile
2023-01-28 01:28:48 +08:00

41 lines
991 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=ngrokc
PKG_VERSION:=1.55
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/dosgo/ngrok-c.git
PKG_SOURCE_DATE:=2021-09-01
PKG_SOURCE_VERSION:=5da550284ed5bec7fa843c574e52b840e918fa4c
PKG_MIRROR_HASH:=3b62878222f93d267b69a6e8542a381d1ab7aeda9457d3bb3a86cccb8b8feb0b
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_PARALLEL:=1
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 +zlib \
+USE_GLIBC:libatomic
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))