diff options
author | Daniel Mack <zonque@gmail.com> | 2011-12-02 13:13:09 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-01-02 14:53:38 +0100 |
commit | e991961d4ef6282f5ace22eade80edc75a9c100b (patch) | |
tree | 48f2bc6660a6426d1f2b4bd060d16731e71c63e3 /package/network-manager/network-manager.mk | |
parent | 68902f743729b3482bb6bc2ae9d0306aa9c00f65 (diff) |
Add package for Gnome NetworkManager
Even though it's most commonly used on desktops, this piece of software
also works well on embedded devices.
The package file only resolved mandatory dependencies. Things like
iptables and dnsmasq are only required if 'shared' connections are used,
and have hence not been made hard prerequisites.
There are probably too many i18n related files installed to the target.
That might need some more tweaking.
[Peter: fix Kconfig dependencies, add execinfo patch, fix libgcrypt-config
path, uClibc build fix]
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/network-manager/network-manager.mk')
-rw-r--r-- | package/network-manager/network-manager.mk | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/package/network-manager/network-manager.mk b/package/network-manager/network-manager.mk new file mode 100644 index 000000000..cfcf32cc2 --- /dev/null +++ b/package/network-manager/network-manager.mk @@ -0,0 +1,50 @@ +############################################################# +# +# NetworkManager +# +############################################################# +NETWORK_MANAGER_VERSION = 0.9.2.0 +NETWORK_MANAGER_SOURCE = NetworkManager-$(NETWORK_MANAGER_VERSION).tar.bz2 +NETWORK_MANAGER_SITE = http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/0.9/ +NETWORK_MANAGER_INSTALL_STAGING = YES +NETWORK_MANAGER_DEPENDENCIES = host-pkg-config udev dbus-glib libnl wireless_tools gnutls util-linux + +NETWORK_MANAGER_CONF_ENV = \ + ac_cv_path_LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config + +NETWORK_MANAGER_CONF_OPT = \ + --mandir=$(STAGING_DIR)/usr/man/ \ + --with-dbus-user=dbus \ + --disable-tests \ + --disable-more-warnings \ + --without-docs \ + --disable-gtk-doc \ + --disable-asserts \ + --enable-abstract-sockets \ + --disable-selinux \ + --disable-xml-docs \ + --disable-doxygen-docs \ + --disable-static \ + --enable-dnotify \ + --localstatedir=/var \ + --with-crypto=gnutls \ + --with-distro=arch \ + --disable-ppp \ + --with-iptables=/usr/sbin/iptables + +# uClibc by default doesn't have backtrace support, so don't use it +ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)$(BR2_TOOLCHAIN_CTNG_uClibc),y) +NETWORK_MANAGER_CONF_OPT += --disable-crashtrace +endif + +# The target was built for the archlinux distribution, so we need +# to move around things after installation +define NETWORK_MANAGER_INSTALL_INITSCRIPT + $(INSTALL) -m 0755 -D package/network-manager/S45network-manager $(TARGET_DIR)/etc/init.d/S45network-manager + rm -f $(TARGET_DIR)/etc/rc.d/networkmanager + rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/etc/rc.d +endef + +NETWORK_MANAGER_POST_INSTALL_TARGET_HOOKS += NETWORK_MANAGER_INSTALL_INITSCRIPT + +$(eval $(call AUTOTARGETS)) |