aboutsummaryrefslogtreecommitdiff
path: root/package/connman/connman.mk
diff options
context:
space:
mode:
authorGravatar Daniel Mack <zonque@gmail.com>2011-12-06 00:27:01 +0100
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2011-12-07 16:52:30 +0100
commit96c8f0b2165b476feac7d8598002dd27759207fd (patch)
treeaacd389b7ff4633763767db2d9ec5606515ad9ff /package/connman/connman.mk
parent8a28f7e8acd7e9d2ae67a83698603a03f19fc17c (diff)
downloadbuildroot-96c8f0b2165b476feac7d8598002dd27759207fd.tar.gz
buildroot-96c8f0b2165b476feac7d8598002dd27759207fd.tar.bz2
Add package connman
The ConnMan project provides a daemon for managing internet connections within embedded devices running the Linux operating system. The Connection Manager is designed to be slim and to use as few resources as possible, so it can be easily integrated. It is a fully modular system that can be extended, through plug-ins, to support all kinds of wired or wireless technologies. Also, configuration methods, like DHCP and domain name resolving, are implemented using plug-ins. The plug-in approach allows for easy adaption and modification for various use cases. The location for released tarballs is still unavailable due to the recent kernel.org outage, hence the package obtains the sources from git for now. [Peter: Ensure it can only be selected with workable toolchains, use start-stop-daemon in initscript, and install cm if selected] Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/connman/connman.mk')
-rw-r--r--package/connman/connman.mk39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/connman/connman.mk b/package/connman/connman.mk
new file mode 100644
index 0000000000..6b9bbe67e1
--- /dev/null
+++ b/package/connman/connman.mk
@@ -0,0 +1,39 @@
+#######################################################
+#
+# connman - open source connection manager
+#
+#######################################################
+
+CONNMAN_VERSION = 0.78
+CONNMAN_SITE = git://git.kernel.org/pub/scm/network/connman/connman.git
+CONNMAN_DEPENDENCIES = libglib2 dbus iptables
+CONNMAN_INSTALL_STAGING = YES
+CONNMAN_CONF_OPT += --localstatedir=/var \
+ $(if $(BR2_PACKAGE_CONNMAN_THREADS),--enable-threads,--disable-threads) \
+ $(if $(BR2_PACKAGE_CONNMAN_DEBUG),--enable-debug,--disable-debug) \
+ $(if $(BR2_PACKAGE_CONNMAN_ETHERNET),--enable-ethernet,--disable-ethernet) \
+ $(if $(BR2_PACKAGE_CONNMAN_WIFI),--enable-wifi,--disable-wifi) \
+ $(if $(BR2_PACKAGE_CONNMAN_BLUETOOTH),--enable-bluetooth,--disable-bluetooth) \
+ $(if $(BR2_PACKAGE_CONNMAN_LOOPBACK),--enable-loopback,--disable-loopback) \
+ $(if $(BR2_PACKAGE_CONNMAN_NTPD),--enable-ntpd,--disable-ntpd)
+
+# as long as sources are obtained from git, we need to generate the autofoo stuff
+CONNMAN_AUTORECONF = YES
+
+define CONNMAN_INSTALL_INITSCRIPT
+ $(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
+endef
+
+CONNMAN_POST_INSTALL_TARGET_HOOKS = CONNMAN_INSTALL_INITSCRIPT
+
+ifeq ($(BR2_PACKAGE_CONNMAN_CLIENT),y)
+CONNMAN_CONF_OPT += --enable-client
+
+define CONNMAN_INSTALL_CM
+ $(INSTALL) -m 0755 -D $(@D)/client/cm $(TARGET_DIR)/usr/bin/cm
+endef
+
+CONNMAN_POST_INSTALL_TARGET_HOOKS += CONNMAN_INSTALL_CM
+endif
+
+$(eval $(call AUTOTARGETS))