1 ################################################################################
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
= \
29 --disable-more-warnings \
31 --with-crypto
=gnutls \
32 --with-iptables
=/usr
/sbin
/iptables \
36 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_TUI
),y
)
37 NETWORK_MANAGER_DEPENDENCIES
+= newt
38 NETWORK_MANAGER_CONF_OPTS
+= --with-nmtui
=yes
40 NETWORK_MANAGER_CONF_OPTS
+= --with-nmtui
=no
43 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_PPPD
),y
)
44 NETWORK_MANAGER_DEPENDENCIES
+= pppd
45 NETWORK_MANAGER_CONF_OPTS
+= --enable-ppp
47 NETWORK_MANAGER_CONF_OPTS
+= --disable-ppp
50 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER
),y
)
51 NETWORK_MANAGER_DEPENDENCIES
+= modem-manager
52 NETWORK_MANAGER_CONF_OPTS
+= --with-modem-manager-1
54 NETWORK_MANAGER_CONF_OPTS
+= --without-modem-manager-1
57 ifeq ($(BR2_PACKAGE_DHCP_CLIENT
),y
)
58 NETWORK_MANAGER_CONF_OPTS
+= --with-dhclient
=/sbin
/dhclient
61 ifeq ($(BR2_PACKAGE_DHCPCD
),y
)
62 NETWORK_MANAGER_CONF_OPTS
+= --with-dhcpcd
=/sbin
/dhcpcd
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
70 define NETWORK_MANAGER_INSTALL_INIT_SYSV
71 $(INSTALL
) -m
0755 -D package
/network-manager
/S45network-manager
$(TARGET_DIR
)/etc
/init.d
/S45network-manager
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
87 $(eval
$(autotools-package
))