2013-04-06 23:07:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.17 2013/04/06 21:07:34 rodent Exp $
|
2003-12-03 13:57:20 +01:00
|
|
|
#
|
|
|
|
|
2005-08-04 12:22:21 +02:00
|
|
|
DISTNAME= tsocks-1.8beta5
|
2007-07-26 14:27:18 +02:00
|
|
|
PKGREVISION= 3
|
2003-12-03 13:57:20 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tsocks/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-12-03 13:57:20 +01:00
|
|
|
HOMEPAGE= http://tsocks.sourceforge.net/
|
|
|
|
COMMENT= Transparent SOCKS proxying library
|
2010-01-22 00:32:10 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
2003-12-03 13:57:20 +01:00
|
|
|
|
2009-06-30 02:07:09 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2005-08-04 12:22:21 +02:00
|
|
|
WRKSRC= ${WRKDIR}/tsocks-1.8
|
2003-12-03 13:57:20 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2005-08-04 12:22:21 +02:00
|
|
|
USE_LIBTOOL= yes
|
2003-12-03 13:57:20 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-conf=${PKG_SYSCONFDIR}/tsocks.conf
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/tsocks
|
|
|
|
|
|
|
|
SUBST_CLASSES+= tsocks
|
|
|
|
SUBST_STAGE.tsocks= post-configure
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.tsocks= Generating tsocks wrapper script.
|
2003-12-03 13:57:20 +01:00
|
|
|
SUBST_FILES.tsocks= tsocks
|
2013-04-06 23:07:31 +02:00
|
|
|
SUBST_SED.tsocks= -e "s|@SH@|${SH}|g"
|
|
|
|
SUBST_SED.tsocks+= -e "s|@PREFIX@|${PREFIX}|g"
|
2003-12-03 13:57:20 +01:00
|
|
|
|
2010-01-22 00:40:18 +01:00
|
|
|
INSTALLATION_DIRS+= ${EGDIR}
|
|
|
|
|
2003-12-03 13:57:20 +01:00
|
|
|
post-extract:
|
|
|
|
${RM} -f ${WRKSRC}/config.cache
|
|
|
|
${CP} ${FILESDIR}/tsocks.sh ${WRKSRC}/tsocks
|
|
|
|
|
|
|
|
post-install:
|
2010-01-22 00:40:18 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tsocks ${DESTDIR}${PREFIX}/bin
|
2003-12-03 13:57:20 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tsocks.conf.complex.example \
|
2010-01-22 00:40:18 +01:00
|
|
|
${DESTDIR}${EGDIR}/tsocks.conf.complex
|
2003-12-03 13:57:20 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tsocks.conf.simple.example \
|
2010-01-22 00:40:18 +01:00
|
|
|
${DESTDIR}${EGDIR}/tsocks.conf.simple
|
2003-12-03 13:57:20 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|