kumquat-buildroot/package/usbguard/usbguard.mk
Fabrice Fontaine ad21d84a58 package/usbguard: bump to version 1.1.1
- This bump fixes unauthorized access via D-Bus (CVE-2019-25058):
  https://github.com/advisories/GHSA-p5wh-m4gj-x2mr
  but dbus is disabled on buildroot
- musl is supported since
  b04e8deaca
- C++17 is now mandatory:
  8c86264986
- Update hash of license file (use license file from gnu.org:
  3292511ab1)

https://github.com/USBGuard/usbguard/blob/usbguard-1.1.1/CHANGELOG.md

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-03-27 17:47:13 +02:00

65 lines
1.7 KiB
Makefile

################################################################################
#
## usbguard
#
################################################################################
USBGUARD_VERSION = 1.1.1
USBGUARD_SITE = https://github.com/USBGuard/usbguard/releases/download/usbguard-$(USBGUARD_VERSION)
USBGUARD_LICENSE = GPL-2.0+
USBGUARD_LICENSE_FILES = LICENSE
USBGUARD_CPE_ID_VENDOR = usbguard_project
USBGUARD_SELINUX_MODULES = usbguard
USBGUARD_CONF_OPTS = \
--with-bundled-catch \
--with-bundled-pegtl \
--disable-debug-build \
--without-dbus \
--without-polkit \
--disable-umockdev
USBGUARD_DEPENDENCIES += libqb protobuf
ifeq ($(BR2_PACKAGE_LIBSODIUM),y)
USBGUARD_CONF_OPTS += --with-crypto-library=sodium
USBGUARD_DEPENDENCIES += libsodium
else ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
USBGUARD_CONF_OPTS += --with-crypto-library=openssl
USBGUARD_DEPENDENCIES += libopenssl
else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
USBGUARD_CONF_ENV += \
ac_cv_path_LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
USBGUARD_CONF_OPTS += --with-crypto-library=gcrypt
USBGUARD_DEPENDENCIES += libgcrypt
endif
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
USBGUARD_CONF_OPTS += --enable-systemd
USBGUARD_DEPENDENCIES += systemd
else
USBGUARD_CONF_OPTS += --disable-systemd
endif
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
USBGUARD_CONF_OPTS += --enable-seccomp
USBGUARD_DEPENDENCIES += libseccomp
else
USBGUARD_CONF_OPTS += --disable-seccomp
endif
ifeq ($(BR2_PACKAGE_LIBCAP_NG),y)
USBGUARD_CONF_OPTS += --enable-libcapng
USBGUARD_DEPENDENCIES += libcap-ng
endif
define USBGUARD_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/usbguard/S20usbguard \
$(TARGET_DIR)/etc/init.d/S20usbguard
endef
define USBGUARD_PERMISSIONS
/etc/usbguard/rules.conf f 0600 0 0 - - - - -
endef
$(eval $(autotools-package))