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
|
|
|
|
|
|
|
NETWORK_MANAGER_VERSION_MAJOR = 0.9
|
2014-07-06 00:04:12 +02:00
|
|
|
NETWORK_MANAGER_VERSION = $(NETWORK_MANAGER_VERSION_MAJOR).10.0
|
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 \
|
2014-06-13 10:31:29 +02:00
|
|
|
libgcrypt wireless_tools util-linux host-intltool readline libndp
|
2014-06-24 20:55:30 +02:00
|
|
|
NETWORK_MANAGER_LICENSE = GPLv2+ (app), LGPLv2+ (libnm-util, libgsystem)
|
|
|
|
NETWORK_MANAGER_LICENSE_FILES = COPYING libnm-util/COPYING libgsystem/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 = \
|
2011-12-02 13:13:09 +01:00
|
|
|
--mandir=$(STAGING_DIR)/usr/man/ \
|
|
|
|
--disable-tests \
|
2014-04-04 17:22:53 +02:00
|
|
|
--disable-qt \
|
2011-12-02 13:13:09 +01:00
|
|
|
--disable-more-warnings \
|
|
|
|
--without-docs \
|
|
|
|
--with-crypto=gnutls \
|
2013-05-26 14:08:30 +02:00
|
|
|
--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)
|
|
|
|
NETWORK_MANAGER_DEPENDENCIES += newt
|
2014-09-27 21:32:44 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-nmtui=yes
|
2014-06-13 10:31:30 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +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)
|
|
|
|
NETWORK_MANAGER_DEPENDENCIES += pppd
|
2014-09-27 21:32:44 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --enable-ppp
|
2014-03-14 11:26:33 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +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)
|
|
|
|
NETWORK_MANAGER_DEPENDENCIES += modem-manager
|
2014-09-27 21:32:44 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-modem-manager-1
|
2014-03-14 11:26:34 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +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-09-27 21:32:44 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-dhclient=/usr/sbin/dhclient
|
2014-01-07 11:29:20 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DHCPCD),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
NETWORK_MANAGER_CONF_OPTS += --with-dhcpcd=/usr/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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|