1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/net/tsocks/Makefile
Antoine Brodin 36f28f940c Change DEBUG option to MUTE which does the contrarya
This controls whether tsocks can display error message or not, and is not
related to debugging support (not stripping binaries, compiling with -g...)
2014-03-29 13:09:33 +00:00

50 lines
1.5 KiB
Makefile

# Created by: Marcin Jessa <freebsd@yazzy.org>
# $FreeBSD$
PORTNAME= tsocks
PORTVERSION= 1.8.b5
PORTREVISION= 5
CATEGORIES= net security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/1.8%20beta%205 \
http://ftp1.sourceforge.net/tsocks/ \
http://www.yazzy.org/ports/tsocks/
DISTNAME= ${PORTNAME}-${PORTVERSION:C/.b/beta/}
MAINTAINER= ports@FreeBSD.org
COMMENT= Allow non SOCKS aware applications to use SOCKS without modification
GNU_CONFIGURE= yes
USES= gmake
USE_LDCONFIG= yes
WRKSRC=${WRKDIR}/${PORTNAME}-${PORTVERSION:C/.b.*//}
CONFIGURE_ARGS= --with-conf=${PREFIX}/etc/tsocks.conf \
--libdir=${PREFIX}/lib
OPTIONS_DEFINE= DOCS EXAMPLES HOSTNAMES MUTE OLDMETHOD SOCKSDNS
OPTIONS_DEFAULT= HOSTNAMES
HOSTNAMES_DESC= Enable DNS lookups
OLDMETHOD_DESC= Do not use RTLD_NEXT parameter to dlsym
MUTE_DESC= Disable all error messages
SOCKSDNS_DESC= Intercept DNS requests and attempt to force them to use TCP
HOSTNAMES_CONFIGURE_OFF= --disable-hostnames
MUTE_CONFIGURE_ON= --disable-debug
OLDMETHOD_CONFIGURE_ON= --enable-oldmethod
SOCKSDNS_CONFIGURE_ON= --enable-socksdns
post-patch:
@${REINPLACE_CMD} -e 's|ufds|fds|g' ${WRKSRC}/tsocks.c
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/tsocks
post-install:
${INSTALL_DATA} ${WRKSRC}/tsocks.conf.simple.example ${STAGEDIR}${PREFIX}/etc/tsocks.conf.sample
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/*.example ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}/README
.include <bsd.port.mk>