package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / network-manager / network-manager.mk
blob98879d655b37fd2aff55d6426e05ed49fa6b9c7d
1 ################################################################################
3 # network-manager
5 ################################################################################
7 NETWORK_MANAGER_VERSION_MAJOR = 1.0
8 NETWORK_MANAGER_VERSION = $(NETWORK_MANAGER_VERSION_MAJOR).6
9 NETWORK_MANAGER_SOURCE = NetworkManager-$(NETWORK_MANAGER_VERSION).tar.xz
10 NETWORK_MANAGER_SITE = http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/$(NETWORK_MANAGER_VERSION_MAJOR)
11 NETWORK_MANAGER_INSTALL_STAGING = YES
12 NETWORK_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib libnl gnutls \
13 libgcrypt wireless_tools util-linux host-intltool readline libndp libgudev
14 NETWORK_MANAGER_LICENSE = GPLv2+ (app), LGPLv2+ (libnm-util)
15 NETWORK_MANAGER_LICENSE_FILES = COPYING libnm-util/COPYING
17 NETWORK_MANAGER_CONF_ENV = \
18 ac_cv_path_LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config \
19 ac_cv_file__etc_fedora_release=no \
20 ac_cv_file__etc_mandriva_release=no \
21 ac_cv_file__etc_debian_version=no \
22 ac_cv_file__etc_redhat_release=no \
23 ac_cv_file__etc_SuSE_release=no
26 NETWORK_MANAGER_CONF_OPTS = \
27 --mandir=$(STAGING_DIR)/usr/man/ \
28 --disable-tests \
29 --disable-qt \
30 --disable-more-warnings \
31 --without-docs \
32 --with-crypto=gnutls \
33 --with-iptables=/usr/sbin/iptables \
34 --disable-ifupdown \
35 --disable-ifnet
37 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_TUI),y)
38 NETWORK_MANAGER_DEPENDENCIES += newt
39 NETWORK_MANAGER_CONF_OPTS += --with-nmtui=yes
40 else
41 NETWORK_MANAGER_CONF_OPTS += --with-nmtui=no
42 endif
44 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_PPPD),y)
45 NETWORK_MANAGER_DEPENDENCIES += pppd
46 NETWORK_MANAGER_CONF_OPTS += --enable-ppp
47 else
48 NETWORK_MANAGER_CONF_OPTS += --disable-ppp
49 endif
51 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER),y)
52 NETWORK_MANAGER_DEPENDENCIES += modem-manager
53 NETWORK_MANAGER_CONF_OPTS += --with-modem-manager-1
54 else
55 NETWORK_MANAGER_CONF_OPTS += --without-modem-manager-1
56 endif
58 ifeq ($(BR2_PACKAGE_DHCP_CLIENT),y)
59 NETWORK_MANAGER_CONF_OPTS += --with-dhclient=/sbin/dhclient
60 endif
62 ifeq ($(BR2_PACKAGE_DHCPCD),y)
63 NETWORK_MANAGER_CONF_OPTS += --with-dhcpcd=/sbin/dhcpcd
64 endif
66 # uClibc by default doesn't have backtrace support, so don't use it
67 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
68 NETWORK_MANAGER_CONF_OPTS += --disable-crashtrace
69 endif
71 define NETWORK_MANAGER_INSTALL_INIT_SYSV
72 $(INSTALL) -m 0755 -D package/network-manager/S45network-manager $(TARGET_DIR)/etc/init.d/S45network-manager
73 endef
75 define NETWORK_MANAGER_INSTALL_INIT_SYSTEMD
76 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
78 ln -sf /usr/lib/systemd/system/NetworkManager.service \
79 $(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
81 ln -sf /usr/lib/systemd/system/NetworkManager.service \
82 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/NetworkManager.service
84 ln -sf /usr/lib/systemd/system/NetworkManager-dispatcher.service \
85 $(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
86 endef
88 $(eval $(autotools-package))