package/nbd: add option for the trdump utility
[buildroot-gz.git] / package / network-manager / network-manager.mk
blob3d7a1bf018d7295c5fb7ea4d7ed75053beab267d
1 ################################################################################
3 # network-manager
5 ################################################################################
7 NETWORK_MANAGER_VERSION_MAJOR = 1.4
8 NETWORK_MANAGER_VERSION = $(NETWORK_MANAGER_VERSION_MAJOR).2
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 --disable-tests \
28 --disable-qt \
29 --disable-more-warnings \
30 --without-docs \
31 --with-crypto=gnutls \
32 --with-iptables=/usr/sbin/iptables \
33 --disable-ifupdown \
34 --disable-ifnet
36 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_TUI),y)
37 NETWORK_MANAGER_DEPENDENCIES += newt
38 NETWORK_MANAGER_CONF_OPTS += --with-nmtui=yes
39 else
40 NETWORK_MANAGER_CONF_OPTS += --with-nmtui=no
41 endif
43 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_PPPD),y)
44 NETWORK_MANAGER_DEPENDENCIES += pppd
45 NETWORK_MANAGER_CONF_OPTS += --enable-ppp
46 else
47 NETWORK_MANAGER_CONF_OPTS += --disable-ppp
48 endif
50 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER),y)
51 NETWORK_MANAGER_DEPENDENCIES += modem-manager
52 NETWORK_MANAGER_CONF_OPTS += --with-modem-manager-1
53 else
54 NETWORK_MANAGER_CONF_OPTS += --without-modem-manager-1
55 endif
57 ifeq ($(BR2_PACKAGE_DHCP_CLIENT),y)
58 NETWORK_MANAGER_CONF_OPTS += --with-dhclient=/sbin/dhclient
59 endif
61 ifeq ($(BR2_PACKAGE_DHCPCD),y)
62 NETWORK_MANAGER_CONF_OPTS += --with-dhcpcd=/sbin/dhcpcd
63 endif
65 # uClibc by default doesn't have backtrace support, so don't use it
66 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
67 NETWORK_MANAGER_CONF_OPTS += --disable-crashtrace
68 endif
70 define NETWORK_MANAGER_INSTALL_INIT_SYSV
71 $(INSTALL) -m 0755 -D package/network-manager/S45network-manager $(TARGET_DIR)/etc/init.d/S45network-manager
72 endef
74 define NETWORK_MANAGER_INSTALL_INIT_SYSTEMD
75 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
77 ln -sf /usr/lib/systemd/system/NetworkManager.service \
78 $(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
80 ln -sf /usr/lib/systemd/system/NetworkManager.service \
81 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/NetworkManager.service
83 ln -sf /usr/lib/systemd/system/NetworkManager-dispatcher.service \
84 $(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
85 endef
87 $(eval $(autotools-package))