kumquat-buildroot/package/sylpheed/sylpheed.mk
Fabrice Fontaine 634dcbd50d package/sylpheed: fix CVE-2021-37746
textview_uri_security_check in textview.c in Claws Mail before 3.18.0,
and Sylpheed through 3.7.0, does not have sufficient link checks before
accepting a click.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-08-15 09:25:39 +02:00

38 lines
1.2 KiB
Makefile

################################################################################
#
# sylpheed
#
################################################################################
SYLPHEED_VERSION_MAJOR = 3.7
SYLPHEED_VERSION = $(SYLPHEED_VERSION_MAJOR).0
SYLPHEED_SOURCE = sylpheed-$(SYLPHEED_VERSION).tar.xz
SYLPHEED_SITE = http://sylpheed.sraoss.jp/sylpheed/v$(SYLPHEED_VERSION_MAJOR)
SYLPHEED_LICENSE = GPL-2.0+ (executables), LGPL-2.1+ (library, attachment plugin)
SYLPHEED_LICENSE_FILES = COPYING COPYING.LIB
SYLPHEED_CPE_ID_VENDOR = sylpheed_project
SYLPHEED_CONF_OPTS = --disable-gtkspell --disable-gpgme
SYLPHEED_DEPENDENCIES = host-pkgconf libgtk2
# 0001-harden-link-checker-before-accepting-click.patch
SYLPHEED_IGNORE_CVES += CVE-2021-37746
# Remove the -I$(includedir) from the Makefiles
# because it refers to the host /usr/include.
define SYLPHEED_PRECONFIGURE
for i in $$(find $(@D) -name "Makefile*"); do \
sed -i 's:-I$$(includedir)::g' $$i; \
done
endef
SYLPHEED_PRE_CONFIGURE_HOOKS += SYLPHEED_PRECONFIGURE
ifeq ($(BR2_PACKAGE_OPENSSL),y)
SYLPHEED_DEPENDENCIES += openssl
SYLPHEED_CONF_OPTS += --enable-ssl
else
SYLPHEED_CONF_OPTS += --disable-ssl
endif
$(eval $(autotools-package))