2006-05-26 04:21:41 +02:00
|
|
|
# $NetBSD: Makefile,v 1.29 2006/05/26 02:21:41 jschauma Exp $
|
2004-08-13 21:33:41 +02:00
|
|
|
#
|
|
|
|
|
2006-05-26 04:21:41 +02:00
|
|
|
DISTNAME= tor-0.1.1.20
|
2004-08-13 21:33:41 +02:00
|
|
|
CATEGORIES= net security
|
2005-02-02 17:41:22 +01:00
|
|
|
MASTER_SITES= http://tor.eff.org/dist/
|
2004-08-13 21:33:41 +02:00
|
|
|
|
2006-05-26 04:21:41 +02:00
|
|
|
MAINTAINER= tv@NetBSD.org
|
2005-02-13 21:27:53 +01:00
|
|
|
HOMEPAGE= http://tor.eff.org/
|
2004-08-13 21:33:41 +02:00
|
|
|
COMMENT= Anonymizing overlay network for TCP
|
|
|
|
|
2005-02-13 21:27:53 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-08-13 21:33:41 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2005-02-13 21:27:53 +01:00
|
|
|
|
|
|
|
TOR_USER?= tor
|
|
|
|
TOR_GROUP?= tor
|
|
|
|
PKG_HOME?= /var/chroot/tor
|
|
|
|
|
|
|
|
RCD_SCRIPTS= tor
|
|
|
|
PKG_GROUPS= ${TOR_GROUP}
|
2006-05-26 04:21:41 +02:00
|
|
|
PKG_USERS= ${TOR_USER}:${TOR_GROUP}::Torifier:${PKG_HOME}
|
2005-02-13 21:27:53 +01:00
|
|
|
USER_GROUP= ${TOR_USER} ${TOR_GROUP}
|
|
|
|
|
|
|
|
OWN_DIR_PERMS+= ${PKG_HOME} ${USER_GROUP} 0755
|
2004-08-13 21:33:41 +02:00
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
2004-08-13 21:33:41 +02:00
|
|
|
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/tor/tor-tsocks.conf \
|
|
|
|
${PKG_SYSCONFDIR}/tor/tor-tsocks.conf
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \
|
|
|
|
${PKG_SYSCONFDIR}/tor/torrc
|
|
|
|
|
2005-02-13 21:27:53 +01:00
|
|
|
RCD_SCRIPT= tor
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= PKG_HOME=${PKG_HOME:Q}
|
|
|
|
FILES_SUBST+= TOR_USER=${TOR_USER:Q} TOR_GROUP=${TOR_GROUP:Q}
|
2005-02-02 17:41:22 +01:00
|
|
|
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mmipspro)
|
|
|
|
CFLAGS+= -c99
|
|
|
|
.endif
|
|
|
|
|
2005-02-13 21:27:53 +01:00
|
|
|
post-patch:
|
|
|
|
${SED} -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
|
|
|
|
-e 's|@PREFIX@|${PREFIX}|g' \
|
|
|
|
-e 's|@PKG_HOME@|${PKG_HOME}|g' \
|
|
|
|
-e 's|@TOR_USER@|${TOR_USER}|g' \
|
|
|
|
-e 's|@TOR_GROUP@|${TOR_GROUP}|g' \
|
|
|
|
-e 's|@RCD_SCRIPTS_SHELL@|${RCD_SCRIPTS_SHELL}|g' \
|
|
|
|
${FILESDIR}/tor.in > ${WRKSRC}/tor.pkgsrc.rc
|
|
|
|
|
|
|
|
post-install:
|
2004-08-13 21:33:41 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/tor
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/config/torrc.sample \
|
|
|
|
${PREFIX}/share/examples/tor/torrc.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/tor-tsocks.conf \
|
|
|
|
${PREFIX}/share/examples/tor/tor-tsocks.conf
|
2005-02-17 18:53:45 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
|
2005-08-04 12:55:31 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tor.pkgsrc.rc ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/tor
|
2004-08-13 21:33:41 +02:00
|
|
|
|
2006-04-06 08:21:32 +02:00
|
|
|
BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1a
|
2005-08-04 12:55:31 +02:00
|
|
|
# XXX the pkgsrc libevent builtin.mk does not detect the version of a builtin
|
|
|
|
# libevent, so we need to force use of the pkgsrc one
|
|
|
|
USE_BUILTIN.libevent= no
|
|
|
|
.include "../../devel/libevent/buildlink3.mk"
|
2005-02-18 05:13:04 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2004-08-13 21:33:41 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|