0
0
Fork 0
haikuports/net-proxy/proxychains_ng/proxychains_ng-4.14~git.recipe

60 lines
1.7 KiB
Bash

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="all !x86_gcc2"
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
}