2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-12-02 13:13:09 +01:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# network-manager
|
2011-12-02 13:13:09 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-26 14:08:29 +02:00
|
|
|
|
2019-11-04 14:03:44 +01:00
|
|
|
NETWORK_MANAGER_VERSION_MAJOR = 1.20
|
2019-11-04 14:03:45 +01:00
|
|
|
NETWORK_MANAGER_VERSION = $(NETWORK_MANAGER_VERSION_MAJOR).4
|
2013-05-26 14:08:30 +02:00
|
|
|
NETWORK_MANAGER_SOURCE = NetworkManager-$(NETWORK_MANAGER_VERSION).tar.xz
|
2019-07-25 10:21:34 +02:00
|
|
|
NETWORK_MANAGER_SITE = https://download.gnome.org/sources/NetworkManager/$(NETWORK_MANAGER_VERSION_MAJOR)
|
2011-12-02 13:13:09 +01:00
|
|
|
NETWORK_MANAGER_INSTALL_STAGING = YES
|
package/network-manager: add missing dependency on libglib2
Commit 7643ab05de860011e749aa720c92d5de150bee0a
("package/network-manager: drop obsolete dependencies") was a bit too
brutal in its dependency removal, as it forgot that removing dbus-glib
as a dependency would make libglib2 no longer part of the dependencies
of network-manager.
However, network-manager does require libglib2. From configure.ac:
PKG_CHECK_MODULES(GLIB, [gio-unix-2.0 >= 2.37.6 gmodule-2.0],
[AC_SUBST(LOG_DRIVER, '$(top_srcdir)/build-aux/tap-driver.sh')
AC_SUBST(AM_TESTS_FD_REDIRECT, '--tap')],
[PKG_CHECK_MODULES(GLIB, gio-unix-2.0 >= 2.40 gmodule-2.0)
AC_SUBST(LOG_DRIVER, '$(top_srcdir)/build-aux/test-driver')])
So this commit re-adds libglib2 as a dependency, and propagates the
appropriate "depends on". Nothing selects BR2_PACKAGE_NETWORK_MANAGER,
so we don't have to propagate these additional "depends on" anywhere.
Fixes:
http://autobuild.buildroot.net/results/2025b1bd721bb5c5fa6638ccf389d2fd8fd10339/
https://bugs.busybox.net/show_bug.cgi?id=12326
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Lubomir Rintel <lkundrak@v3.sk>
Cc: Christian Stewart <christian@paral.in>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-11-27 23:27:23 +01:00
|
|
|
NETWORK_MANAGER_DEPENDENCIES = host-pkgconf udev gnutls libglib2 \
|
2019-09-06 11:26:13 +02:00
|
|
|
libgcrypt wireless_tools util-linux host-intltool readline libndp
|
package/network-manager: fix legal-info following the 1.20.0 bump
In commit aee34c479a5f845ed84ca0fac60250843742bec6, network-manager
was bumped to 1.20.0. As part of this bump, the libnm-util/ subfolder
was removed, and therefore libnm-util/COPYING no longer exists,
breaking the legal-info of this package.
The only remaining COPYING file is at the top-level. However, it
documents only the GPL-2.0 license, while in fact many parts of
network-manager, especially libraries, are under LGPL-2.0. This is
well explained in the CONTRIBUTING file, which states:
"""
Legal
-----
NetworkManager is partly licensed under terms of GNU Lesser General Public License
version 2 or later (LGPL-2.0+). That is for example the case for libnm.
For historical reasons, the daemon itself is licensed under terms of GNU General
Public License, version 2 or later (GPL-2.0+). See the license comment in the source
files.
Note that all new contributions to NetworkManager MUST be made under terms of
LGPL-2.0+, that is also the case for parts that are currently licensed GPL-2.0+.
The reason for that is that we might eventually relicense everything as LGPL and
new contributions already must agree with that future change.
"""
So, we keep GPL-2.0 and LGPL-2.0 as license, drop libnm-util/COPYING
from the LICENSE_FILES variable, and instead add the CONTRIBUTING
file. We also add a comment above the LICENSE variable.
Fixes:
http://autobuild.buildroot.net/results/44ce11d110a508821f76aae7ce996c1814c6a453/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-09-07 15:18:25 +02:00
|
|
|
# Even though the COPYING file only contains the GPL-2.0 text, many
|
|
|
|
# parts of network-manager are under LGPL-2.0. See the "Legal" section
|
|
|
|
# of the CONTRIBUTING file for details.
|
|
|
|
NETWORK_MANAGER_LICENSE = GPL-2.0+ (app), LGPL-2.0+ (libnm)
|
2019-11-04 14:03:44 +01:00
|
|
|
NETWORK_MANAGER_LICENSE_FILES = COPYING CONTRIBUTING
|
2011-12-02 13:13:09 +01:00
|
|
|
|
|
|
|
NETWORK_MANAGER_CONF_ENV = \
|
2013-05-26 14:08:30 +02:00
|
|
|
ac_cv_path_LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config \
|
|
|
|
ac_cv_file__etc_fedora_release=no \
|
|
|
|
ac_cv_file__etc_mandriva_release=no \
|
|
|
|
ac_cv_file__etc_debian_version=no \
|
|
|
|
ac_cv_file__etc_redhat_release=no \
|
|
|
|
ac_cv_file__etc_SuSE_release=no
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS = \
|
2014-12-22 09:12:05 +01:00
|
|
|
--disable-tests \
|
|
|
|
--disable-qt \
|
|
|
|
--disable-more-warnings \
|
|
|
|
--with-crypto=gnutls \
|
|
|
|
--with-iptables=/usr/sbin/iptables \
|
2019-06-01 12:53:50 +02:00
|
|
|
--disable-ifupdown
|
2017-05-11 15:56:38 +02:00
|
|
|
|
2017-05-11 15:56:39 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OFONO),y)
|
|
|
|
NETWORK_MANAGER_DEPENDENCIES += ofono
|
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-ofono
|
|
|
|
else
|
|
|
|
NETWORK_MANAGER_CONF_OPTS += --without-ofono
|
|
|
|
endif
|
|
|
|
|
2017-05-11 15:56:38 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
NETWORK_MANAGER_DEPENDENCIES += libcurl
|
|
|
|
NETWORK_MANAGER_CONF_OPTS += --enable-concheck
|
|
|
|
else
|
|
|
|
NETWORK_MANAGER_CONF_OPTS += --disable-concheck
|
|
|
|
endif
|
2011-12-02 13:13:09 +01:00
|
|
|
|
2014-06-13 10:31:30 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_TUI),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NETWORK_MANAGER_DEPENDENCIES += newt
|
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-nmtui=yes
|
2014-06-13 10:31:30 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-nmtui=no
|
2014-06-13 10:31:30 +02:00
|
|
|
endif
|
|
|
|
|
2014-03-14 11:26:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_PPPD),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NETWORK_MANAGER_DEPENDENCIES += pppd
|
|
|
|
NETWORK_MANAGER_CONF_OPTS += --enable-ppp
|
2014-03-14 11:26:33 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --disable-ppp
|
2014-03-14 11:26:33 +01:00
|
|
|
endif
|
|
|
|
|
2014-03-14 11:26:34 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NETWORK_MANAGER_DEPENDENCIES += modem-manager
|
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-modem-manager-1
|
2014-03-14 11:26:34 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --without-modem-manager-1
|
2014-03-14 11:26:34 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-07 11:29:20 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DHCP_CLIENT),y)
|
2014-11-18 18:01:57 +01:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-dhclient=/sbin/dhclient
|
2014-01-07 11:29:20 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DHCPCD),y)
|
2014-11-18 18:01:57 +01:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-dhcpcd=/sbin/dhcpcd
|
2014-01-07 11:29:20 +01:00
|
|
|
endif
|
|
|
|
|
2018-02-02 00:45:16 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_OVS),y)
|
|
|
|
NETWORK_MANAGER_CONF_OPTS += --enable-ovs
|
|
|
|
NETWORK_MANAGER_DEPENDENCIES += jansson
|
|
|
|
else
|
|
|
|
NETWORK_MANAGER_CONF_OPTS += --disable-ovs
|
|
|
|
endif
|
|
|
|
|
2013-05-26 14:08:30 +02:00
|
|
|
define NETWORK_MANAGER_INSTALL_INIT_SYSV
|
2011-12-02 13:13:09 +01:00
|
|
|
$(INSTALL) -m 0755 -D package/network-manager/S45network-manager $(TARGET_DIR)/etc/init.d/S45network-manager
|
|
|
|
endef
|
|
|
|
|
2014-12-02 09:53:39 +01:00
|
|
|
define NETWORK_MANAGER_INSTALL_INIT_SYSTEMD
|
|
|
|
ln -sf /usr/lib/systemd/system/NetworkManager.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|