pkgsrc/net/tor/Makefile
wiz 4ba23aac75 Update to 0.2.5.12, from Christian Sturm in PR 49823.
Changes in version 0.2.5.12 - 2015-04-06
  Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
  could be used by an attacker to crash hidden services, or crash clients
  visiting hidden services. Hidden services should upgrade as soon as
  possible; clients should upgrade whenever packages become available.

  This release also backports a simple improvement to make hidden
  services a bit less vulnerable to denial-of-service attacks.

  o Major bugfixes (security, hidden service):
    - Fix an issue that would allow a malicious client to trigger an
      assertion failure and halt a hidden service. Fixes bug 15600;
      bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
    - Fix a bug that could cause a client to crash with an assertion
      failure when parsing a malformed hidden service descriptor. Fixes
      bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".

  o Minor features (DoS-resistance, hidden service):
    - Introduction points no longer allow multiple INTRODUCE1 cells to
      arrive on the same circuit. This should make it more expensive for
      attackers to overwhelm hidden services with introductions.
      Resolves ticket 15515.
2015-04-08 05:26:02 +00:00

73 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.102 2015/04/08 05:26:02 wiz Exp $
DISTNAME= tor-0.2.5.12
CATEGORIES= net security
MASTER_SITES= http://www.torproject.org/dist/
MAINTAINER= athaba@users.sourceforge.net
HOMEPAGE= http://www.torproject.org/
COMMENT= Anonymizing overlay network for TCP
LICENSE= modified-bsd
.include "../../mk/bsd.prefs.mk"
USE_LANGUAGES= c99
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPP=${CPP:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
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
FILES_SUBST+= PKG_HOME=${PKG_HOME.${TOR_USER}}
FILES_SUBST+= TOR_USER=${TOR_USER} TOR_GROUP=${TOR_GROUP}
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= pre-configure
SUBST_MESSAGE.fix-paths= Fixing absolute paths.
SUBST_FILES.fix-paths= contrib/torify.in
SUBST_SED.fix-paths= -e 's,"/etc/tor,"${PKG_SYSCONFDIR},g'
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples
CHECK_PORTABILITY_SKIP+=contrib/*
.if !empty(PKGSRC_COMPILER:Mmipspro)
CFLAGS+= -c99
.endif
BUILDLINK_API_DEPENDS.libevent+= libevent>=1.2
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.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"