d5162e790d
The 1.42 version of connman comes with the following CVEs fixes : - CVE-2022-32292 - CVE-2022-32293 - CVE-2023-28488 The first two CVEs have been fixed wuth upstream patches [0] which we carry since2f2b4c80f4
(package/connman: fix CVE-2022-3229{2,3}), now included in this version bump; the third CVE [2] is also fixed by this version bump [3]. [0] https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=d1a5ede5d255bde8ef707f8441b997563b9312bd https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=72343929836de80727a27d6744c869dff045757c https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=416bfaff988882c553c672e5bfc2d4f648d29e8a [1]2f2b4c80f4
package/connman: fix CVE-2022-3229{2,3} [2] https://nvd.nist.gov/vuln/detail/CVE-2023-28488 [3] https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=99e2c16ea1cced34a5dc450d76287a1c3e762138 Signed-off-by: Clement Ramirez <ramirez.clement3@gmail.com> [yann.morin.1998@free.fr: - squash CVE-2023-28488 backport with version bump - reword commit log ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
124 lines
3.0 KiB
Makefile
124 lines
3.0 KiB
Makefile
################################################################################
|
|
#
|
|
# connman
|
|
#
|
|
################################################################################
|
|
|
|
CONNMAN_VERSION = 1.42
|
|
CONNMAN_SOURCE = connman-$(CONNMAN_VERSION).tar.xz
|
|
CONNMAN_SITE = $(BR2_KERNEL_MIRROR)/linux/network/connman
|
|
CONNMAN_DEPENDENCIES = libglib2 dbus
|
|
CONNMAN_INSTALL_STAGING = YES
|
|
CONNMAN_LICENSE = GPL-2.0
|
|
CONNMAN_LICENSE_FILES = COPYING
|
|
CONNMAN_CPE_ID_VENDOR = intel
|
|
|
|
CONNMAN_CONF_OPTS = --with-dbusconfdir=/etc
|
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
CONNMAN_CONF_OPTS += --with-systemdunitdir=/usr/lib/systemd/system
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_BLUETOOTH),y)
|
|
CONNMAN_CONF_OPTS += --enable-bluetooth
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-bluetooth
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_DEBUG),y)
|
|
CONNMAN_CONF_OPTS += --enable-debug
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-debug
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_ETHERNET),y)
|
|
CONNMAN_CONF_OPTS += --enable-ethernet
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-ethernet
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_IPTABLES),y)
|
|
CONNMAN_CONF_OPTS += --with-firewall=iptables
|
|
CONNMAN_DEPENDENCIES += iptables
|
|
else ifeq ($(BR2_PACKAGE_CONNMAN_NFTABLES),y)
|
|
CONNMAN_CONF_OPTS += --with-firewall=nftables
|
|
CONNMAN_DEPENDENCIES += libmnl nftables
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_LOOPBACK),y)
|
|
CONNMAN_CONF_OPTS += --enable-loopback
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-loopback
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_NEARD),y)
|
|
CONNMAN_CONF_OPTS += --enable-neard
|
|
CONNMAN_DEPENDENCIES += neard
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-neard
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_OFONO),y)
|
|
CONNMAN_CONF_OPTS += --enable-ofono
|
|
CONNMAN_DEPENDENCIES += ofono
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-ofono
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_STATS),y)
|
|
CONNMAN_CONF_OPTS += --enable-stats
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-stats
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_WIFI),y)
|
|
CONNMAN_CONF_OPTS += --enable-wifi
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-wifi
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_WIREGUARD),y)
|
|
CONNMAN_CONF_OPTS += --enable-wireguard
|
|
CONNMAN_DEPENDENCIES += libmnl
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-wireguard
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_WISPR),y)
|
|
CONNMAN_CONF_OPTS += --enable-wispr
|
|
CONNMAN_DEPENDENCIES += gnutls
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-wispr
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IWD),y)
|
|
CONNMAN_CONF_OPTS += --enable-iwd
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-iwd
|
|
endif
|
|
|
|
define CONNMAN_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
|
|
endef
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_CLIENT),y)
|
|
CONNMAN_LICENSE += , GPL-2.0+ (client)
|
|
CONNMAN_CONF_OPTS += --enable-client
|
|
CONNMAN_DEPENDENCIES += readline
|
|
|
|
define CONNMAN_INSTALL_CM
|
|
$(INSTALL) -m 0755 -D $(@D)/client/connmanctl $(TARGET_DIR)/usr/bin/connmanctl
|
|
endef
|
|
|
|
CONNMAN_POST_INSTALL_TARGET_HOOKS += CONNMAN_INSTALL_CM
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-client
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
|
|
CONNMAN_DEPENDENCIES += libexecinfo
|
|
CONNMAN_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lexecinfo"
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|