mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
@@ -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
|
||||
|
||||
59
net-proxy/proxychains_ng/proxychains_ng-4.14~git.recipe
Normal file
59
net-proxy/proxychains_ng/proxychains_ng-4.14~git.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user