kumquat-buildroot/package/tor/tor.mk
Bernd Kuhls e2c21905ff package/tor: security bump to 0.3.5.8
Release notes:
https://blog.torproject.org/new-releases-tor-0402-alpha-0358-03411-and-03312

Fixes CVE-2019-8955:
KIST can write above outbuf highwater mark
https://trac.torproject.org/projects/tor/ticket/29168

Updated license hash after upstream commit
https://gitweb.torproject.org/tor.git/commit/LICENSE?h=maint-0.3.5&id=efe55b88987c2539c218fdf1f46f16f9bdc3a8eb
which bumps copyright date to 2019.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-02-23 09:54:21 +01:00

67 lines
1.5 KiB
Makefile

################################################################################
#
# tor
#
################################################################################
TOR_VERSION = 0.3.5.8
TOR_SITE = https://dist.torproject.org
TOR_LICENSE = BSD-3-Clause
TOR_LICENSE_FILES = LICENSE
TOR_DEPENDENCIES = libevent openssl zlib
TOR_AUTORECONF = YES
TOR_CONF_OPTS = \
--disable-gcc-hardening \
--disable-unittests \
--with-libevent-dir=$(STAGING_DIR)/usr \
--with-openssl-dir=$(STAGING_DIR)/usr \
--with-zlib-dir=$(STAGING_DIR)/usr
ifeq ($(BR2_STATIC_LIBS),y)
TOR_CONF_OPTS += \
--enable-static-libevent \
--enable-static-openssl \
--enable-static-tor \
--enable-static-zlib
endif
ifeq ($(BR2_PACKAGE_LIBCAP),y)
TOR_DEPENDENCIES += libcap
endif
ifeq ($(BR2_PACKAGE_XZ),y)
TOR_CONF_OPTS += --enable-lzma
TOR_DEPENDENCIES += host-pkgconf xz
else
TOR_CONF_OPTS += --disable-lzma
endif
ifeq ($(BR2_arm)$(BR2_armeb)$(BR2_i386)$(BR2_x86_64)$(BR2_PACKAGE_LIBSECCOMP),yy)
TOR_CONF_OPTS += --enable-seccomp
TOR_DEPENDENCIES += libseccomp
else
TOR_CONF_OPTS += --disable-seccomp
endif
# uses gnu extensions
TOR_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
TOR_CONF_ENV += LIBS=-latomic
endif
define TOR_INSTALL_CONF
$(INSTALL) -D -m 644 $(@D)/src/config/torrc.minimal \
$(TARGET_DIR)/etc/tor/torrc
endef
TOR_POST_INSTALL_TARGET_HOOKS += TOR_INSTALL_CONF
define TOR_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(@D)/contrib/dist/tor.service \
$(TARGET_DIR)/usr/lib/systemd/system/tor.service
endef
$(eval $(autotools-package))