mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
319b2de7f0
Simplify the future removal of GNU_CONFIGURE_MANPREFIX after the manprefix migration is complete. The current placement of GNU_CONFIGURE_MANPREFIX will not result in consecutive blank lines or comments when lines containing GNU_CONFIGURE_MANPREFIX are removed in batches. Notified by: mat
56 lines
1.7 KiB
Makefile
56 lines
1.7 KiB
Makefile
PORTNAME= tsocks
|
|
DISTVERSION= 1.8.b5
|
|
PORTREVISION= 10
|
|
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= ehaupt@FreeBSD.org
|
|
COMMENT= Allow non SOCKS aware applications to use SOCKS without modification
|
|
WWW= https://tsocks.sourceforge.net
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= gmake
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
|
|
CONFIGURE_ARGS= --libdir=${PREFIX}/lib \
|
|
--with-conf=${PREFIX}/etc/tsocks.conf
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/.b.*//}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES HOSTNAMES MUTE OLDMETHOD SOCKSDNS
|
|
OPTIONS_DEFAULT= HOSTNAMES
|
|
|
|
HOSTNAMES_DESC= Enable DNS lookups
|
|
MUTE_DESC= Disable all error messages
|
|
OLDMETHOD_DESC= Do not use RTLD_NEXT parameter to dlsym
|
|
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|/usr|${PREFIX}|' ${WRKSRC}/tsocks
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/inspectsocks ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/validateconf ${STAGEDIR}${PREFIX}/bin
|
|
${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
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so
|
|
|
|
.include <bsd.port.mk>
|