View | Details | Raw Unified | Return to bug 175068
Collapse All | Expand All

(-)./Makefile (-12 / +31 lines)
Lines 2-31 Link Here
2
# $FreeBSD: head/net/proxychains/Makefile 306081 2012-10-18 19:13:07Z ak $
2
# $FreeBSD: head/net/proxychains/Makefile 306081 2012-10-18 19:13:07Z ak $
3
3
4
PORTNAME=	proxychains
4
PORTNAME=	proxychains
5
PORTVERSION=	3.1
5
PORTVERSION=	4.4
6
PORTREVISION=	1
6
CATEGORIES=	net security
7
CATEGORIES=	net
7
MASTER_SITES=	SF/${PORTNAME}-ng/
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION}
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	nemysis@gmx.ch
11
COMMENT=	Redirect connection through proxy servers
10
COMMENT=	Redirect connection through proxy servers
12
11
12
LICENSE=	GPLv2
13
14
USE_BZIP2=	yes
13
GNU_CONFIGURE=	yes
15
GNU_CONFIGURE=	yes
14
USE_GMAKE=	yes
16
USE_GMAKE=	yes
17
ALL_TARGET=	all install-config
15
USE_LDCONFIG=	yes
18
USE_LDCONFIG=	yes
16
19
17
post-patch:
20
PORTDOCS=	AUTHORS ChangeLog README TODO
18
	@${REINPLACE_CMD} -e 's!$$(srcdir)/proxychains.conf!$$(srcdir)/proxychains.conf.sample!' \
21
19
		-e 's!libproxychains_la_LIBADD = -ldl!libproxychains_la_LIBADD =!' \
22
.include <bsd.port.options.mk>
20
		${WRKSRC}/proxychains/Makefile.in
21
	@${MV} ${WRKSRC}/proxychains/proxychains.conf \
22
		${WRKSRC}/proxychains/proxychains.conf.sample
23
23
24
post-configure:
24
post-configure:
25
	@${ECHO_CMD} '#define PREFIX "${PREFIX}"' >> ${WRKSRC}/config.h
25
	@${ECHO_CMD} 'INSTALL_FLAGS=-m' >> ${WRKSRC}/config.mak
26
27
post-patch:
28
	@${REINPLACE_CMD} \
29
		-e 's|/usr/local|${PREFIX}|g' \
30
		-e 's|libproxychains4|libproxychains-4|' \
31
		-e 's|proxychains4|proxychains|' \
32
		-e 's|^CFLAGS  +=.*|CFLAGS  += -Wall|' \
33
		-e 's|$$(DESTDIR)/$$(sysconfdir)/|$$(DESTDIR)/$$(sysconfdir)/proxychains.conf.sample|' \
34
		${WRKSRC}/Makefile
35
	@${REINPLACE_CMD} \
36
		-e 's|4.2.2.2|8.8.8.8|'  \
37
		-e 's|libproxychains.so|libproxychains-4.so|' \
38
		${WRKSRC}/src/proxyresolv
26
39
27
post-install:
40
post-install:
41
	${INSTALL_SCRIPT} ${WRKSRC}/src/proxyresolv ${PREFIX}/bin
28
	@[ -f ${PREFIX}/etc/proxychains.conf ] || ${CP} ${PREFIX}/etc/proxychains.conf.sample \
42
	@[ -f ${PREFIX}/etc/proxychains.conf ] || ${CP} ${PREFIX}/etc/proxychains.conf.sample \
29
		${PREFIX}/etc/proxychains.conf
43
		${PREFIX}/etc/proxychains.conf
30
44
45
.if ${PORT_OPTIONS:MDOCS}
46
	${MKDIR} ${DOCSDIR}
47
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
48
.endif
49
31
.include <bsd.port.mk>
50
.include <bsd.port.mk>
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (proxychains-3.1.tar.gz) = 9a27657fe9f6e17de9e402ba5c60f9954e7e79fb270c1ef242770f3c01d8515a
1
SHA256 (proxychains-4.4.tar.bz2) = 930269f52795e4803b7b1f3b0be6d2eb333b58c757623205364dad741f7d26fc
2
SIZE (proxychains-3.1.tar.gz) = 327057
2
SIZE (proxychains-4.4.tar.bz2) = 26786
(-)./files/patch-proxychains-libproxychains.c (-22 lines)
Lines 1-22 Link Here
1
--- proxychains/libproxychains.c.orig	Wed Mar 15 18:16:59 2006
2
+++ proxychains/libproxychains.c	Sun Dec 10 01:16:37 2006
3
@@ -160,7 +160,7 @@
4
 
5
 	if(!(file=fopen("./proxychains.conf","r")))
6
 	if(!(file=fopen(buff,"r")))
7
-	if(!(file=fopen("/etc/proxychains.conf","r")))
8
+	if(!(file=fopen(PREFIX "/etc/proxychains.conf","r")))
9
 	{
10
 		perror("Can't locate proxychains.conf");
11
 		exit(1);
12
@@ -290,8 +290,8 @@
13
 
14
 int getnameinfo (const struct sockaddr * sa,
15
 			socklen_t salen, char * host,
16
-			socklen_t hostlen, char * serv,
17
-			socklen_t servlen, unsigned int flags)
18
+			size_t hostlen, char * serv,
19
+			size_t servlen, int flags)
20
 {
21
 	int ret = 0;
22
 	if(!init_l)
(-)./pkg-descr (-6 / +4 lines)
Lines 1-7 Link Here
1
ProxyChains
1
ProxyChains is a UNIX program, that hooks network-related libc functions
2
in dynamically linked programs via a preloaded DLL and redirects the
3
connections through SOCKS4a/5 or HTTP proxies.
2
4
3
This program forces any tcp connection made by any given tcp client
5
WWW: http://sourceforge.net/projects/proxychains-ng/
4
to follow through proxy (or proxy chain). It is a kind of proxifier.
5
It acts like sockscap / permeo / eborder driver (intercepts TCP calls).
6
7
WWW:	http://proxychains.sourceforge.net/
(-)./pkg-plist (-4 / +1 lines)
Lines 3-9 Link Here
3
@unexec if cmp -s %D/etc/proxychains.conf %D/etc/proxychains.conf.sample; then rm -f %D/etc/proxychains.conf; fi
3
@unexec if cmp -s %D/etc/proxychains.conf %D/etc/proxychains.conf.sample; then rm -f %D/etc/proxychains.conf; fi
4
etc/proxychains.conf.sample
4
etc/proxychains.conf.sample
5
@exec [ -f %D/etc/proxychains.conf ] || cp %D/etc/proxychains.conf.sample %D/etc/proxychains.conf
5
@exec [ -f %D/etc/proxychains.conf ] || cp %D/etc/proxychains.conf.sample %D/etc/proxychains.conf
6
lib/libproxychains.so.3
6
lib/libproxychains-4.so
7
lib/libproxychains.so
8
lib/libproxychains.la
9
lib/libproxychains.a

Return to bug 175068