pkgsrc/net/tor/Makefile
wiz 0040198a83 tor: update to 0.3.2.10.
Changes in version 0.3.2.10 - 2018-03-03
  Tor 0.3.2.10 is the second stable release in the 0.3.2 series. It
  backports a number of bugfixes, including important fixes for security
  issues.

  It includes an important security fix for a remote crash attack
  against directory authorities, tracked as TROVE-2018-001.

  Additionally, it backports a fix for a bug whose severity we have
  upgraded: Bug 24700, which was fixed in 0.3.3.2-alpha, can be remotely
  triggered in order to crash relays with a use-after-free pattern. As
  such, we are now tracking that bug as TROVE-2018-002 and
  CVE-2018-0491, and backporting it to earlier releases.  This bug
  affected versions 0.3.2.1-alpha through 0.3.2.9, as well as version
  0.3.3.1-alpha.

  This release also backports our new system for improved resistance to
  denial-of-service attacks against relays.

  This release also fixes several minor bugs and annoyances from
  earlier releases.

  Relays running 0.3.2.x SHOULD upgrade to one of the versions released
  today, for the fix to TROVE-2018-002.  Directory authorities should
  also upgrade. (Relays on earlier versions might want to update too for
  the DoS mitigations.)
2018-03-04 07:46:06 +00:00

73 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.129 2018/03/04 07:46:06 wiz Exp $
DISTNAME= tor-0.3.2.10
CATEGORIES= net security
MASTER_SITES= http://www.torproject.org/dist/
MAINTAINER= reezer@reezer.org
HOMEPAGE= http://www.torproject.org/
COMMENT= Anonymizing overlay network for TCP
LICENSE= modified-bsd
USE_LANGUAGES= c99
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPP=${CPP:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
# one test failure in 0.3.0.10
# https://trac.torproject.org/projects/tor/ticket/23250
TEST_TARGET= check
TOR_USER?= tor
TOR_GROUP?= tor
PKG_GECOS.${TOR_USER}= Torifier
PKG_HOME.${TOR_USER}= ${VARBASE}/chroot/tor
BUILD_DEFS+= VARBASE
PKG_SYSCONFSUBDIR= tor
PKG_GROUPS_VARS+= TOR_GROUP
PKG_USERS_VARS= TOR_USER
RCD_SCRIPTS= tor
RCD_SCRIPT_SRC.tor= ${FILESDIR}/tor.in
PKG_GROUPS= ${TOR_GROUP}
PKG_USERS= ${TOR_USER}:${TOR_GROUP}
USER_GROUP= ${TOR_USER} ${TOR_GROUP}
OWN_DIRS_PERMS+= ${PKG_HOME.${TOR_USER}} ${USER_GROUP} 0700
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \
${PKG_SYSCONFDIR}/torrc
PRINT_PLIST_AWK+= /^man\/man/ { $$0 = "$${PLIST.doc}" $$0 }
PRINT_PLIST_AWK+= /^share\/doc/ { $$0 = "$${PLIST.doc}" $$0 }
FILES_SUBST+= PKG_HOME=${PKG_HOME.${TOR_USER}}
FILES_SUBST+= TOR_USER=${TOR_USER} TOR_GROUP=${TOR_GROUP}
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples
CHECK_PORTABILITY_SKIP+=contrib/*
.include "../../mk/bsd.prefs.mk"
.if !empty(PKGSRC_COMPILER:Mmipspro)
CFLAGS+= -c99
.endif
BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
## We include this after other b3.mk files since we use PTHREAD_TYPE.
##
.include "options.mk"
.include "../../mk/bsd.pkg.mk"