aboutsummaryrefslogtreecommitdiffstats
path: root/net/proxychains-ng/Makefile
blob: 3bb5658fd60378fd4dde5a9491ffa419cd4aa08b (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
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$

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

MAINTAINER= nemysis@FreeBSD.org
COMMENT=    Redirect connection through proxy servers

LICENSE=    GPLv2

USES=       gmake tar:bzip2
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${PREFIX}
ALL_TARGET= all
INSTALL_TARGET= install
USE_LDCONFIG=   yes

CONFLICTS=  proxychains-[0-9]*

PORTDOCS=   AUTHORS README
OPTIONS_DEFINE= DOCS

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|libproxychains4.so|libproxychains-4.so|' \
        ${WRKSRC}/src/proxyresolv

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/src/proxyresolv ${STAGEDIR}${PREFIX}/bin/
    ${INSTALL_DATA} ${WRKSRC}/src/proxychains.conf \
        ${STAGEDIR}${PREFIX}/etc/proxychains.conf.sample

    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>