You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2019-2022 Daniel Bermond
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=proxychains-ng
  9. PKG_VERSION:=4.16
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/rofl0r/proxychains-ng/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=5f66908044cc0c504f4a7e618ae390c9a78d108d3f713d7839e440693f43b5e7
  14. PKG_MAINTAINER:=Daniel Bermond <dbermond@archlinux.org>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/proxychains-ng
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=Redirect TCP traffic to a HTTP or SOCKS proxy
  24. URL:=https://github.com/rofl0r/proxychains/
  25. endef
  26. define Package/proxychains-ng/description
  27. A hook preloader that allows to redirect TCP traffic of
  28. existing dynamically linked programs through one or more
  29. SOCKS or HTTP proxies.
  30. endef
  31. define Build/Compile
  32. $(call Build/Compile/Default,all)
  33. endef
  34. define Build/Install
  35. $(call Build/Install/Default,install install-config)
  36. endef
  37. define Package/proxychains-ng/conffiles
  38. /etc/proxychains.conf
  39. endef
  40. define Package/proxychains-ng/install
  41. # binary executable
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/proxychains4 $(1)/usr/bin/
  44. $(LN) proxychains4 $(1)/usr/bin/proxychains
  45. # library
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libproxychains4.so $(1)/usr/lib/
  48. # config
  49. $(INSTALL_DIR) $(1)/etc
  50. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/proxychains.conf $(1)/etc/
  51. endef
  52. $(eval $(call BuildPackage,proxychains-ng))