freebsd-ports/net/proxychains-ng/Makefile
2019-03-17 10:34:15 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= proxychains-ng
PORTVERSION= 4.14
DISTVERSIONPREFIX= v
CATEGORIES= net security
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Redirect connection through proxy servers
LICENSE= GPLv2
USES= gmake tar:bzip2
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= rofl0r
GNU_CONFIGURE= yes
CONFLICTS= proxychains-[0-9]*
PORTDOCS= AUTHORS README TODO
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}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/proxychains
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libproxychains-4.so
.include <bsd.port.mk>