aboutsummaryrefslogtreecommitdiff
path: root/net/proxychains-ng
diff options
context:
space:
mode:
authorDaniel Bermond <danielbermond@gmail.com>2019-09-23 17:59:04 +0000
committerDaniel Bermond <danielbermond@gmail.com>2019-09-24 20:31:46 +0000
commit63379c3d351edc057842fa3fd6dc695b751f285d (patch)
treeffbc545f0469e2078dec6a675f046c778f277565 /net/proxychains-ng
parenta2bbedb880ff9d37549c1e0e334177ce0dc88937 (diff)
proxychains-ng: new package
Compile tested: R7800 (arm_cortex-a15_neon-vfpv4), OpenWrt git master Run tested: R7800 (arm_cortex-a15_neon-vfpv4), OpenWrt git master Signed-off-by: Daniel Bermond <danielbermond@gmail.com>
Diffstat (limited to 'net/proxychains-ng')
-rw-r--r--net/proxychains-ng/Makefile67
1 files changed, 67 insertions, 0 deletions
diff --git a/net/proxychains-ng/Makefile b/net/proxychains-ng/Makefile
new file mode 100644
index 000000000..7ed4e5ba3
--- /dev/null
+++ b/net/proxychains-ng/Makefile
@@ -0,0 +1,67 @@
+#
+# Copyright (C) 2019 Daniel Bermond
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=proxychains-ng
+PKG_VERSION:=4.14
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/rofl0r/proxychains-ng/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=ab31626af7177cc2669433bb244b99a8f98c08031498233bb3df3bcc9711a9cc
+
+PKG_MAINTAINER:=Daniel Bermond <dbermond@archlinux.org>
+PKG_LICENSE:=GPL-2.0-or-later
+PKG_LICENSE_FILES:=COPYING
+
+PKG_BUILD_PARALLEL:=1
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/proxychains-ng
+ SECTION:=net
+ CATEGORY:=Network
+ TITLE:=Redirect TCP traffic to a HTTP or SOCKS proxy
+ URL:=https://github.com/rofl0r/proxychains/
+endef
+
+define Package/proxychains-ng/description
+ A hook preloader that allows to redirect TCP traffic of
+ existing dynamically linked programs through one or more
+ SOCKS or HTTP proxies.
+endef
+
+define Build/Compile
+ $(call Build/Compile/Default,all)
+endef
+
+define Build/Install
+ $(call Build/Install/Default,install install-config)
+endef
+
+define Package/proxychains-ng/conffiles
+/etc/proxychains.conf
+endef
+
+define Package/proxychains-ng/install
+ # binary executable
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/proxychains4 $(1)/usr/bin/
+ $(LN) proxychains4 $(1)/usr/bin/proxychains
+
+ # library
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libproxychains4.so $(1)/usr/lib/
+
+ # config
+ $(INSTALL_DIR) $(1)/etc
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/proxychains.conf $(1)/etc/
+endef
+
+$(eval $(call BuildPackage,proxychains-ng))