pkgsrc/net/tor/Makefile
jschauma cabbde19c6 update tor to version 0.1.1.22:
Changes in version 0.1.1.22 - 2006-07-05
o Major bugfixes:
  - Fix a big bug that was causing servers to not find themselves
    reachable if they changed IP addresses. Since only 0.1.1.22+
    servers can do reachability testing correctly, now we automatically
    make sure to test via one of these.
  - Fix to allow clients and mirrors to learn directory info from
    descriptor downloads that get cut off partway through.
  - Directory authorities had a bug in deciding if a newly published
    descriptor was novel enough to make everybody want a copy -- a few
    servers seem to be publishing new descriptors many times a minute.
o Minor bugfixes:
  - Fix a rare bug that was causing some servers to complain about
    "closing wedged cpuworkers" and skip some circuit create requests.
  - Make the Exit flag in directory status documents actually work.


While here, patch sample config file to log to syslog per default to make
sure that tor starts as a daemon with the default config.
2006-07-09 15:03:54 +00:00

68 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2006/07/09 15:03:54 jschauma Exp $
#
DISTNAME= tor-0.1.1.22
CATEGORIES= net security
MASTER_SITES= http://tor.eff.org/dist/
MAINTAINER= tv@NetBSD.org
HOMEPAGE= http://tor.eff.org/
COMMENT= Anonymizing overlay network for TCP
.include "../../mk/bsd.prefs.mk"
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
TOR_USER?= tor
TOR_GROUP?= tor
PKG_HOME?= /var/chroot/tor
RCD_SCRIPTS= tor
PKG_GROUPS= ${TOR_GROUP}
PKG_USERS= ${TOR_USER}:${TOR_GROUP}::Torifier:${PKG_HOME}
USER_GROUP= ${TOR_USER} ${TOR_GROUP}
OWN_DIRS_PERMS+= ${PKG_HOME} ${USER_GROUP} 0755
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
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
FILES_SUBST+= PKG_HOME=${PKG_HOME:Q}
FILES_SUBST+= TOR_USER=${TOR_USER:Q} TOR_GROUP=${TOR_GROUP:Q}
.if !empty(PKGSRC_COMPILER:Mmipspro)
CFLAGS+= -c99
.endif
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:Q}'|g' \
${FILESDIR}/tor.in > ${WRKSRC}/tor.pkgsrc.rc
post-install:
${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
${INSTALL_DATA_DIR} ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
${INSTALL_SCRIPT} ${WRKSRC}/tor.pkgsrc.rc ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/tor
BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1a
# 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"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"