1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

- Update to 3.1

PR:		ports/106548
Submitted by:	"ports@c0decafe.net" <ports@c0decafe.net>
Approved by:	maintainer
This commit is contained in:
Martin Wilke 2006-12-12 21:39:24 +00:00
parent d9845c6da4
commit 5851f7b49a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179612
11 changed files with 69 additions and 69 deletions

View File

@ -4,30 +4,29 @@
# $FreeBSD$
PORTNAME= proxychains
PORTVERSION= 2.1
PORTVERSION= 3.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= proxychains
MAINTAINER= mycroft@virgaria.org
COMMENT= Multi-proxifier
COMMENT= Redirect connection through proxy servers
USE_AUTOTOOLS= automake:14 autoconf:213
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
post-extract:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/proxychains/Makefile.in
.if ${OSVERSION} < 600000
BROKEN= Does not compile on 4.x and 5.x
.endif
pre-build:
${RM} ${WRKSRC}/config.h
.if ${OSVERSION} < 700017
EXTRA_PATCHES= ${PATCHDIR}/gethostbyaddr-proto-int
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/proxychains/proxychains ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/proxychains/proxychains.conf \
${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/proxychains/.libs/libproxychains.so.2 \
${PREFIX}/lib
post-configure:
@${ECHO_CMD} '#define PREFIX "${PREFIX}"' >> ${WRKSRC}/config.h
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (proxychains-2.1.tar.gz) = 5f54d41265a20ae48c261a53ca603139
SHA256 (proxychains-2.1.tar.gz) = ca7d6483a2ef8459e0b3c61cc1b0da176628518c16c4c9b9aea8c044554245db
SIZE (proxychains-2.1.tar.gz) = 181095
MD5 (proxychains-3.1.tar.gz) = 4629c156001ab70aa7e98960eb513148
SHA256 (proxychains-3.1.tar.gz) = 9a27657fe9f6e17de9e402ba5c60f9954e7e79fb270c1ef242770f3c01d8515a
SIZE (proxychains-3.1.tar.gz) = 327057

View File

@ -0,0 +1,12 @@
--- proxychains/libproxychains.c Wed Mar 15 18:16:59 2006
+++ proxychains/libproxychains.c Thu Dec 7 15:34:57 2006
@@ -308,8 +308,7 @@
PDEBUG("getnameinfo: %s %s\n", host, serv);
return ret;
}
-struct hostent *gethostbyaddr (const void *addr, socklen_t len,
- int type)
+struct hostent *gethostbyaddr (const void *addr, int len, int type)
{
PDEBUG("TODO: gethostbyaddr hook\n");
if(!init_l)

View File

@ -1,8 +0,0 @@
--- acconfig.h.orig Thu Jun 24 12:07:12 2004
+++ acconfig.h Thu Jun 24 12:07:20 2004
@@ -7,3 +7,5 @@
/* Define if you need the GNU extensions to compile */
#undef _GNU_SOURCE
+
+#undef PREFIX_DIR

View File

@ -1,18 +0,0 @@
--- configure.in.orig Fri May 7 11:34:58 2004
+++ configure.in Thu Jun 24 14:56:30 2004
@@ -12,11 +12,14 @@
AM_INIT_AUTOMAKE(proxychains,2.1)
-AC_PREFIX_DEFAULT(/usr)
+AC_PREFIX_DEFAULT(/usr/local)
if test "x$prefix" = "xNONE"; then
prefix=$ac_default_prefix
ac_configure_args="$ac_configure_args --prefix $prefix"
+else
+ prefix=$prefix
fi
+AC_DEFINE_UNQUOTED(PREFIX_DIR, "${prefix}")
dnl without this order in this file, automake will be confused!
dnl

View File

@ -0,0 +1,11 @@
--- proxychains/Makefile.in.old Sat Dec 9 23:46:05 2006
+++ proxychains/Makefile.in Sat Dec 9 23:48:44 2006
@@ -105,7 +105,7 @@
#proxychains_LDFLAGS = $(all_libraries)
lib_LTLIBRARIES = libproxychains.la
libproxychains_la_LDFLAGS = -version-info 3:0:0 $(all_libraries)
-libproxychains_la_LIBADD = -ldl
+libproxychains_la_LIBADD =
noinst_HEADERS = core.h
libproxychains_la_SOURCES = libproxychains.c core.c
libproxychains_la_METASOURCES = USE_AUTOMOC

View File

@ -0,0 +1,22 @@
--- proxychains/libproxychains.c.orig Wed Mar 15 18:16:59 2006
+++ proxychains/libproxychains.c Sun Dec 10 01:16:37 2006
@@ -160,7 +160,7 @@
if(!(file=fopen("./proxychains.conf","r")))
if(!(file=fopen(buff,"r")))
- if(!(file=fopen("/etc/proxychains.conf","r")))
+ if(!(file=fopen(PREFIX "/etc/proxychains.conf","r")))
{
perror("Can't locate proxychains.conf");
exit(1);
@@ -290,8 +290,8 @@
int getnameinfo (const struct sockaddr * sa,
socklen_t salen, char * host,
- socklen_t hostlen, char * serv,
- socklen_t servlen, unsigned int flags)
+ size_t hostlen, char * serv,
+ size_t servlen, int flags)
{
int ret = 0;
if(!init_l)

View File

@ -1,11 +0,0 @@
--- proxychains/libproxychains.c.orig Fri May 7 11:34:59 2004
+++ proxychains/libproxychains.c Thu Jun 24 10:54:27 2004
@@ -73,7 +73,7 @@
if(!(file=fopen("./proxychains.conf","r")))
if(!(file=fopen(buff,"r")))
- if(!(file=fopen("/etc/proxychains.conf","r")))
+ if(!(file=fopen(PREFIX_DIR "/etc/proxychains.conf","r")))
{
perror("Can't locate proxychains.conf");
exit(1);

View File

@ -1,11 +0,0 @@
--- proxychains/main.c.orig Thu Jun 24 13:13:46 2004
+++ proxychains/main.c Thu Jun 24 13:14:05 2004
@@ -41,7 +41,7 @@
"More help in README file\n");
return 0 ;
}
- putenv("LD_PRELOAD=/usr/lib/libproxychains.so");
+ putenv("LD_PRELOAD=" PREFIX_DIR "/lib/libproxychains.so.2");
execvp(argv[1],&argv[1]);
perror("proxychains can't load process....");
return EXIT_SUCCESS;

View File

@ -4,4 +4,4 @@ This program forces any tcp connection made by any given tcp client
to follow through proxy (or proxy chain). It is a kind of proxifier.
It acts like sockscap / permeo / eborder driver (intercepts TCP calls).
WWW: http://proxylabs.netwu.com/proxychains/index.html
WWW: http://proxychains.sourceforge.net/

View File

@ -1,3 +1,7 @@
bin/proxychains
bin/proxyresolv
etc/proxychains.conf
lib/libproxychains.so.2
lib/libproxychains.so.3
lib/libproxychains.so
lib/libproxychains.la
lib/libproxychains.a