mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
2026.8.3 - 2026-08-28 chore: Remove stale metrics timeout TODO - 2026-08-28 TUN-10798: Parse Quick Tunnel allowed mail rules - 2026-08-27 chore: Clean up unused code - 2026-08-26 chore: bump gorilla/websocket for GO-2026-6278 - 2026-08-26 VULN-142146: Update GitLab R2 token path (cloudflared-pkgs) to protected branches - 2026-08-26 TUN-10820: Remove test-only stdin reconnect control - 2026-08-26 TUN-10822: Remove fetching protocol percentage from remote - 2026-08-25 TUN-10725: Remove unused certificate configuration - 2026-08-20 chore: Update distrolesss images in amd64 2026.8.2 - 2026-08-14 VULN-141859: Revert path normalization 2026.8.1 - 2026-08-13 VULN-141859: Fix missing trailing slash 2026.8.0 - 2026-08-12 AUTH-9041 Generate ephemeral keypair for login token transfer - 2026-08-12 VULN-141859: Normalize request path - 2026-08-11 TUN-10748: Add FIPS image variant for Cloudflared tunnel - 2026-08-10 AUTH-9012 Verify Access app identity with signed metadata - 2026-08-07 chore: Bump grpc to v.1.83.0 to fix vulnerability - 2026-07-08 TUN-10557: Bump quic-go v0.59.1 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
66 lines
2.0 KiB
Makefile
66 lines
2.0 KiB
Makefile
# SPDX-License-Identifier: GPL-3.0-only
|
|
#
|
|
# Copyright (C) 2021 ImmortalWrt.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=cloudflared
|
|
PKG_VERSION:=2026.8.3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/cloudflare/cloudflared/tar.gz/$(PKG_VERSION)?
|
|
PKG_HASH:=04cd85af52c2c012f08212c878b4c403eadf410865f2356a80f361d475d2fc92
|
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|
|
|
PKG_BUILD_DEPENDS:=golang/host
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_FLAGS:=no-mips16
|
|
|
|
GO_PKG:=github.com/cloudflare/cloudflared
|
|
GO_PKG_LDFLAGS_X:=main.Version=$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../../lang/golang/golang-package.mk
|
|
|
|
define Package/cloudflared
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Web Servers/Proxies
|
|
TITLE:=Cloudflare Tunnel client
|
|
URL:=https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/get-started/
|
|
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
|
|
endef
|
|
|
|
define Package/cloudflared/description
|
|
Contains the command-line client for Cloudflare Tunnel, a tunneling
|
|
daemon that proxies traffic from the Cloudflare network to your origins.
|
|
|
|
This daemon sits between Cloudflare network and your origin (e.g. a
|
|
webserver). Cloudflare attracts client requests and sends them to you
|
|
via this daemon, without requiring you to poke holes on your firewall
|
|
--- your origin can remain as closed as possible.
|
|
endef
|
|
|
|
define Package/cloudflared/conffiles
|
|
/etc/config/cloudflared
|
|
/etc/cloudflared/
|
|
endef
|
|
|
|
define Package/cloudflared/install
|
|
$(call GoPackage/Package/Install/Bin,$(1))
|
|
|
|
$(INSTALL_DIR) $(1)/etc/cloudflared/
|
|
$(INSTALL_CONF) $(CURDIR)/files/sample_config.yml $(1)/etc/cloudflared/config.yml
|
|
$(INSTALL_DIR) $(1)/etc/config/
|
|
$(INSTALL_CONF) $(CURDIR)/files/cloudflared.config $(1)/etc/config/cloudflared
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
$(INSTALL_BIN) $(CURDIR)/files/cloudflared.init $(1)/etc/init.d/cloudflared
|
|
endef
|
|
|
|
$(eval $(call GoBinPackage,cloudflared))
|
|
$(eval $(call BuildPackage,cloudflared))
|