1 ################################################################################
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
/ \
30 --disable-more-warnings \
32 --with-crypto
=gnutls \
33 --with-iptables
=/usr
/sbin
/iptables \
37 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_TUI
),y
)
38 NETWORK_MANAGER_DEPENDENCIES
+= newt
39 NETWORK_MANAGER_CONF_OPTS
+= --with-nmtui
=yes
41 NETWORK_MANAGER_CONF_OPTS
+= --with-nmtui
=no
44 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_PPPD
),y
)
45 NETWORK_MANAGER_DEPENDENCIES
+= pppd
46 NETWORK_MANAGER_CONF_OPTS
+= --enable-ppp
48 NETWORK_MANAGER_CONF_OPTS
+= --disable-ppp
51 ifeq ($(BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER
),y
)
52 NETWORK_MANAGER_DEPENDENCIES
+= modem-manager
53 NETWORK_MANAGER_CONF_OPTS
+= --with-modem-manager-1
55 NETWORK_MANAGER_CONF_OPTS
+= --without-modem-manager-1
58 ifeq ($(BR2_PACKAGE_DHCP_CLIENT
),y
)
59 NETWORK_MANAGER_CONF_OPTS
+= --with-dhclient
=/sbin
/dhclient
62 ifeq ($(BR2_PACKAGE_DHCPCD
),y
)
63 NETWORK_MANAGER_CONF_OPTS
+= --with-dhcpcd
=/sbin
/dhcpcd
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
71 define NETWORK_MANAGER_INSTALL_INIT_SYSV
72 $(INSTALL
) -m
0755 -D package
/network-manager
/S45network-manager
$(TARGET_DIR
)/etc
/init.d
/S45network-manager
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
88 $(eval
$(autotools-package
))