Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2025 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=shadow-tls
  6. PKG_VERSION:=0.2.25
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/ihciah/shadow-tls/tar.gz/v$(PKG_VERSION)?
  10. PKG_HASH:=1d1d436734823ba0302de6e91883ed892ea710769c722a139990194ff5837224
  11. PKG_MAINTAINER:=Tianling Shen <[email protected]>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_BUILD_DEPENDS:=rust/host
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(TOPDIR)/feeds/packages/lang/rust/rust-package.mk
  18. define Package/shadow-tls
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Web Servers/Proxies
  22. TITLE:=A proxy to expose real tls handshake to the firewall
  23. URL:=https://github.com/ihciah/shadow-tls
  24. DEPENDS:=@(aarch64||arm||x86_64)
  25. endef
  26. define Package/shadow-tls/description
  27. A proxy to expose real tls handshake to the firewall.
  28. It works like trojan but it does not require signing certificate.
  29. The firewall will see real tls handshake with valid certificate
  30. that you choose.
  31. endef
  32. $(eval $(call RustBinPackage,shadow-tls))
  33. $(eval $(call BuildPackage,shadow-tls))