1 # $NetBSD: Makefile,v 1.14 2010/01/21 23:32:10 heinz Exp $
4 DISTNAME= tsocks-1.8beta5
7 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tsocks/}
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 HOMEPAGE= http://tsocks.sourceforge.net/
11 COMMENT= Transparent SOCKS proxying library
14 PKG_DESTDIR_SUPPORT= user-destdir
18 WRKSRC= ${WRKDIR}/tsocks-1.8
23 CONFIGURE_ARGS+= --with-conf=${PKG_SYSCONFDIR}/tsocks.conf
25 EGDIR= ${PREFIX}/share/examples/tsocks
27 SUBST_CLASSES+= tsocks
28 SUBST_STAGE.tsocks= post-configure
29 SUBST_MESSAGE.tsocks= Generating tsocks wrapper script.
30 SUBST_FILES.tsocks= tsocks
31 SUBST_SED.tsocks= -e "s|@SH@|${SH}|g" -e "s|@PREFIX@|${PREFIX}|g"
33 INSTALLATION_DIRS+= ${EGDIR}
36 ${RM} -f ${WRKSRC}/config.cache
37 ${CP} ${FILESDIR}/tsocks.sh ${WRKSRC}/tsocks
40 ${INSTALL_SCRIPT} ${WRKSRC}/tsocks ${DESTDIR}${PREFIX}/bin
41 ${INSTALL_DATA} ${WRKSRC}/tsocks.conf.complex.example \
42 ${DESTDIR}${EGDIR}/tsocks.conf.complex
43 ${INSTALL_DATA} ${WRKSRC}/tsocks.conf.simple.example \
44 ${DESTDIR}${EGDIR}/tsocks.conf.simple
46 .include "../../mk/bsd.pkg.mk"