kumquat-buildroot/package/sngrep/sngrep.mk
Fabrice Fontaine 922e0d8451 package/sngrep: security bump to version 1.7.0
Fix CVE-2023-31981 and CVE-2023-31982

https://github.com/irontec/sngrep/blob/v1.7.0/ChangeLog
https://github.com/irontec/sngrep/compare/v1.6.0...v1.7.0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2023-09-15 23:23:04 +02:00

52 lines
1.5 KiB
Makefile

################################################################################
#
# sngrep
#
################################################################################
SNGREP_VERSION = 1.7.0
SNGREP_SITE = \
https://github.com/irontec/sngrep/releases/download/v$(SNGREP_VERSION)
SNGREP_LICENSE = GPL-3.0+
SNGREP_LICENSE_FILES = LICENSE
SNGREP_CPE_ID_VENDOR = irontec
SNGREP_AUTORECONF = YES
SNGREP_DEPENDENCIES = libpcap ncurses host-pkgconf
SNGREP_CONF_ENV += \
$(if $(BR2_STATIC_LIBS),LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`")
SNGREP_CONF_OPTS += --disable-unicode
# openssl and gnutls can't be enabled at the same time.
ifeq ($(BR2_PACKAGE_OPENSSL),y)
SNGREP_DEPENDENCIES += openssl
SNGREP_CONF_OPTS += --with-openssl --without-gnutls
# gnutls support also requires libgcrypt
else ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
SNGREP_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
SNGREP_DEPENDENCIES += gnutls libgcrypt
SNGREP_CONF_OPTS += --with-gnutls --without-openssl
else
SNGREP_CONF_OPTS += --without-gnutls --without-openssl
endif
ifeq ($(BR2_PACKAGE_PCRE2),y)
SNGREP_DEPENDENCIES += pcre2
SNGREP_CONF_OPTS += --without-pcre --with-pcre2
else ifeq ($(BR2_PACKAGE_PCRE),y)
SNGREP_DEPENDENCIES += pcre
SNGREP_CONF_OPTS += --with-pcre --without-pcre2
else
SNGREP_CONF_OPTS += --without-pcre --without-pcre2
endif
ifeq ($(BR2_PACKAGE_ZLIB),y)
SNGREP_DEPENDENCIES += zlib
SNGREP_CONF_OPTS += --with-zlib
else
SNGREP_CONF_OPTS += --without-zlib
endif
$(eval $(autotools-package))