Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # SPDX-License-Identifier: GPL-3.0-only
  2. #
  3. # Copyright (C) 2021 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=microsocks
  6. PKG_VERSION:=1.0.5
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/rofl0r/microsocks/tar.gz/v$(PKG_VERSION)?
  10. PKG_HASH:=939d1851a18a4c03f3cc5c92ff7a50eaf045da7814764b4cb9e26921db15abc8
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_MAINTAINER:=lean
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/microsocks
  18. SECTION:=net
  19. CATEGORY:=Network
  20. SUBMENU:=Web Servers/Proxies
  21. TITLE:=Tiny, portable SOCKS5 server
  22. URL:=https://github.com/rofl0r/microsocks
  23. DEPENDS:=+libpthread
  24. endef
  25. define Package/microsocks/description
  26. A SOCKS5 service that you can run on your remote boxes to tunnel connections
  27. through them, if for some reason SSH doesn't cut it for you.
  28. endef
  29. define Package/microsocks/install
  30. $(INSTALL_DIR) $(1)/usr/bin
  31. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/microsocks $(1)/usr/bin/microsocks
  32. endef
  33. $(eval $(call BuildPackage,microsocks))