0683b25a6f
Disable rust option since it currently doesn't work. Changes in version 0.4.4.6 - 2020-11-12 Tor 0.4.4.6 is the second stable release in the 0.4.4.x series. It backports fixes from later releases, including a fix for TROVE-2020- 005, a security issue that could be used, under certain cases, by an adversary to observe traffic patterns on a limited number of circuits intended for a different relay. o Major bugfixes (security, backport from 0.4.5.1-alpha): - When completing a channel, relays now check more thoroughly to make sure that it matches any pending circuits before attaching those circuits. Previously, address correctness and Ed25519 identities were not checked in this case, but only when extending circuits on an existing channel. Fixes bug 40080; bugfix on 0.2.7.2-alpha. Resolves TROVE-2020-005. o Minor features (directory authorities, backport from 0.4.5.1-alpha): - Authorities now list a different set of protocols as required and recommended. These lists have been chosen so that only truly recommended and/or required protocols are included, and so that clients using 0.2.9 or later will continue to work (even though they are not supported), whereas only relays running 0.3.5 or later will meet the requirements. Closes ticket 40162. - Make it possible to specify multiple ConsensusParams torrc lines. Now directory authority operators can for example put the main ConsensusParams config in one torrc file and then add to it from a different torrc file. Closes ticket 40164. o Minor features (subprotocol versions, backport from 0.4.5.1-alpha): - Tor no longer allows subprotocol versions larger than 63. Previously version numbers up to UINT32_MAX were allowed, which significantly complicated our code. Implements proposal 318; closes ticket 40133. o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha): - Fix a rendezvous cache unit test that was triggering an underflow on the global rend cache allocation. Fixes bug 40125; bugfix on 0.2.8.1-alpha. - Fix another rendezvous cache unit test that was triggering an underflow on the global rend cache allocation. Fixes bug 40126; bugfix on 0.2.8.1-alpha. o Minor bugfixes (compilation, backport from 0.4.5.1-alpha): - Fix compiler warnings that would occur when building with "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha. - Resolve a compilation warning that could occur in test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha. o Minor bugfixes (logging, backport from 0.4.5.1-alpha): - Remove a debug logging statement that uselessly spammed the logs. Fixes bug 40135; bugfix on 0.3.5.0-alpha. o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha): - Avoid a fatal assert() when failing to create a listener connection for an address that was in use. Fixes bug 40073; bugfix on 0.3.5.1-alpha. o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha): - For HSFETCH commands on v2 onion services addresses, check the length of bytes decoded, not the base32 length. Fixes bug 34400; bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.158 2020/11/12 22:56:00 wiz Exp $
|
|
|
|
DISTNAME= tor-0.4.4.6
|
|
CATEGORIES= net security
|
|
MASTER_SITES= https://dist.torproject.org/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.torproject.org/
|
|
COMMENT= Anonymizing overlay network for TCP
|
|
LICENSE= modified-bsd
|
|
|
|
USE_LANGUAGES= c99
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_TOOLS+= perl:test pkg-config
|
|
# There are multiple reports of failure to build with BSD make, due to
|
|
# an apparent lack of firing the rule to create micro-revision.i.
|
|
# Work around this by using gmake, which is tiny compared to the
|
|
# existing perl dependency, and unlikely to be needed on any given
|
|
# system just for tor.
|
|
USE_TOOLS+= gmake bash:test
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
|
|
CONFIGURE_ENV+= CPP=${CPP:Q}
|
|
|
|
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
|
|
|
|
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/*
|
|
|
|
REPLACE_PERL+= scripts/maint/checkSpace.pl
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mmipspro)
|
|
CFLAGS+= -c99
|
|
.endif
|
|
|
|
.include "../../archivers/zstd/buildlink3.mk"
|
|
BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0
|
|
.include "../../devel/libevent/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|