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
|
|
|
|
2015-03-09 10:54:50 +01:00
|
|
|
NETWORK_MANAGER_VERSION_MAJOR = 1.0
|
2016-02-05 19:37:00 +01:00
|
|
|
NETWORK_MANAGER_VERSION = $(NETWORK_MANAGER_VERSION_MAJOR).10
|
2013-05-26 14:08:30 +02:00
|
|
|
NETWORK_MANAGER_SOURCE = NetworkManager-$(NETWORK_MANAGER_VERSION).tar.xz
|
2013-05-26 14:08:29 +02:00
|
|
|
NETWORK_MANAGER_SITE = http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/$(NETWORK_MANAGER_VERSION_MAJOR)
|
2011-12-02 13:13:09 +01:00
|
|
|
NETWORK_MANAGER_INSTALL_STAGING = YES
|
2012-12-28 10:47:22 +01:00
|
|
|
NETWORK_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib libnl gnutls \
|
2015-12-02 12:27:06 +01:00
|
|
|
libgcrypt wireless_tools util-linux host-intltool readline libndp libgudev
|
2015-04-23 13:12:38 +02:00
|
|
|
NETWORK_MANAGER_LICENSE = GPLv2+ (app), LGPLv2+ (libnm-util)
|
|
|
|
NETWORK_MANAGER_LICENSE_FILES = COPYING libnm-util/COPYING
|
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
|
|
|
|
|
2011-12-02 13:13:09 +01:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS = \
|
2014-12-22 09:12:05 +01:00
|
|
|
--mandir=$(STAGING_DIR)/usr/man/ \
|
|
|
|
--disable-tests \
|
|
|
|
--disable-qt \
|
|
|
|
--disable-more-warnings \
|
|
|
|
--without-docs \
|
|
|
|
--with-crypto=gnutls \
|
|
|
|
--with-iptables=/usr/sbin/iptables \
|
|
|
|
--disable-ifupdown \
|
|
|
|
--disable-ifnet
|
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
|
|
|
|
|
2011-12-02 13:13:09 +01:00
|
|
|
# uClibc by default doesn't have backtrace support, so don't use it
|
2013-06-30 21:29:09 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --disable-crashtrace
|
2011-12-02 13:13:09 +01:00
|
|
|
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
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
|
|
|
|
ln -sf /usr/lib/systemd/system/NetworkManager.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
|
|
|
|
|
|
|
|
ln -sf /usr/lib/systemd/system/NetworkManager.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/NetworkManager.service
|
|
|
|
|
|
|
|
ln -sf /usr/lib/systemd/system/NetworkManager-dispatcher.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|