aboutsummaryrefslogtreecommitdiff
path: root/net/proxychains-ng/Makefile
blob: afb28b7c4e4723e58bb5ac9ce32bc73fdf382ae7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$

PORTNAME=	proxychains-ng
PORTVERSION=	4.6
CATEGORIES=	net security
MASTER_SITES=	SF/${PORTNAME}
DISTNAME=	${PORTNAME:S/-ng//}-${PORTVERSION}

MAINTAINER=	nemysis@gmx.ch
COMMENT=	Redirect connection through proxy servers

LICENSE=	GPLv2

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX}
USE_GMAKE=	yes
ALL_TARGET=	all
INSTALL_TARGET=	install install-config
USE_LDCONFIG=	yes

CONFLICTS=	proxychains-[0-9]*

PORTDOCS=	AUTHORS ChangeLog README TODO

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

post-configure:
	@${ECHO_CMD} "PXCHAINS=proxychains" >> ${WRKSRC}/config.mak
	@${ECHO_CMD} "LDSO_PATHNAME=libproxychains-4.so" >> ${WRKSRC}/config.mak

post-patch:
	@${REINPLACE_CMD} \
		-e 's|$$(DESTDIR)$$(sysconfdir)/|$$(DESTDIR)$$(sysconfdir)/proxychains.conf.sample|' \
		${WRKSRC}/Makefile
	@${REINPLACE_CMD} \
		-e 's|libproxychains4.so|libproxychains-4.so|' \
		${WRKSRC}/src/proxyresolv

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/src/proxyresolv ${PREFIX}/bin
	@[ -f ${PREFIX}/etc/proxychains.conf ] || \
		${INSTALL_DATA} ${WRKSRC}/src/proxychains.conf ${PREFIX}/etc/proxychains.conf

.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>