pkgsrc/net/tsocks/Makefile
jmmv 7a21537448 Initial import of tsocks, version 1.7:
tsocks allows non SOCKS aware applications (e.g telnet, ssh, ftp etc) to use
SOCKS without any modification.  It does this by intercepting the calls that
applications make to establish network connections and negotating them through
a SOCKS server as necessary.

tsocks is based on the 'shared library interceptor' concept.  Through use of
the LD_PRELOAD environment variable, tsocks is automatically loaded into the
process space of every executed program.
2003-12-03 12:57:20 +00:00

40 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2003/12/03 12:57:20 jmmv Exp $
#
DISTNAME= tsocks-1.7
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tsocks/}
MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= http://tsocks.sourceforge.net/
COMMENT= Transparent SOCKS proxying library
GNU_CONFIGURE= YES
USE_BUILDLINK2= YES
USE_GMAKE= YES
CONFIGURE_ARGS+= --with-conf=${PKG_SYSCONFDIR}/tsocks.conf
EGDIR= ${PREFIX}/share/examples/tsocks
SUBST_CLASSES+= tsocks
SUBST_STAGE.tsocks= post-configure
SUBST_MESSAGE.tsocks= "Generating tsocks wrapper script."
SUBST_FILES.tsocks= tsocks
SUBST_SED.tsocks= -e "s|@SH@|${SH}|g" -e "s|@PREFIX@|${PREFIX}|g"
post-extract:
${RM} -f ${WRKSRC}/config.cache
${CP} ${FILESDIR}/tsocks.sh ${WRKSRC}/tsocks
post-configure: subst-tsocks
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/tsocks ${PREFIX}/bin
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/tsocks.conf.complex.example \
${EGDIR}/tsocks.conf.complex
${INSTALL_DATA} ${WRKSRC}/tsocks.conf.simple.example \
${EGDIR}/tsocks.conf.simple
.include "../../mk/bsd.pkg.mk"