proxychains_ng: new recipe (#5212)

Co-authored-by: arckat324
This commit is contained in:
arckat324
2020-09-21 15:17:03 +02:00
committed by GitHub
parent 75c5bfafe7
commit f08e29b535
2 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
From cb48ea6c6a796146fa76046496d50099a68439ea Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 13 Sep 2020 07:57:15 +0000
Subject: Fix void/char type for gethostbyaddr
diff --git a/src/libproxychains.c b/src/libproxychains.c
index 318c937..ad024b9 100644
--- a/src/libproxychains.c
+++ b/src/libproxychains.c
@@ -683,7 +683,7 @@ int pc_getnameinfo(const struct sockaddr *sa, socklen_t salen,
return 0;
}
-struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type) {
+struct hostent *gethostbyaddr(const char *addr, socklen_t len, int type) {
INIT();
PDEBUG("TODO: proper gethostbyaddr hook\n");
--
2.28.0

View File

@@ -0,0 +1,59 @@
SUMMARY="A tool to use SOCKS or HTTP proxy with programs that don't support it"
DESCRIPTION="ProxyChains is a UNIX program, that hooks network-related libc \
functions in DYNAMICALLY LINKED programs via a preloaded DLL (dlsym(), \
LD_PRELOAD) and redirects the connections through SOCKS4a/5 or HTTP proxies.
It supports TCP only (no UDP/ICMP etc).
The way it works is basically a HACK; so it is possible that it doesn't \
work with your program, especially when it's a script, or starts \
numerous processes like background daemons or uses dlopen() to load \
"modules" (bug in glibc dynlinker).
It should work with simple compiled (C/C++) dynamically linked programs \
though."
HOMEPAGE="https://github.com/rofl0r/proxychains-ng"
LICENSE="GNU GPL v2"
COPYRIGHT="2013-2019 rolf0r"
REVISION="1"
srcGitRev="e6c47646601a9a7b4551174bd60f0cd00829e8af"
SOURCE_URI="https://github.com/rofl0r/proxychains-ng/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="bbc92c7d8fc11928c712d1e857a9c19e92c17f7f99447f982a015b34aba28247"
SOURCE_FILENAME="proxychains-ng-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="proxychains-ng-$srcGitRev"
PATCHES="proxychains_ng-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
GLOBAL_WRITABLE_FILES="
settings/proxychains.conf keep-old
"
PROVIDES="
proxychains_ng$secondaryArchSuffix = $portVersion
cmd:proxychains4$secondaryArchSuffix
lib:libproxychains4$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
make install-config
}