2011-12-06 00:27:01 +01:00
|
|
|
#######################################################
|
|
|
|
#
|
|
|
|
# connman - open source connection manager
|
|
|
|
#
|
|
|
|
#######################################################
|
|
|
|
|
2012-12-28 10:47:23 +01:00
|
|
|
CONNMAN_VERSION = 1.10
|
2012-05-21 00:21:03 +02:00
|
|
|
CONNMAN_SITE = $(BR2_KERNEL_MIRROR)/linux/network/connman/
|
|
|
|
CONNMAN_DEPENDENCIES = libglib2 dbus iptables gnutls
|
2011-12-06 00:27:01 +01:00
|
|
|
CONNMAN_INSTALL_STAGING = YES
|
2012-12-28 10:47:23 +01:00
|
|
|
CONNMAN_LICENSE = GPLv2
|
|
|
|
CONNMAN_LICENSE_FILES = COPYING
|
2011-12-06 00:27:01 +01:00
|
|
|
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)
|
|
|
|
|
|
|
|
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
|
2012-09-21 04:54:19 +02:00
|
|
|
CONNMAN_DEPENDENCIES += readline
|
2011-12-06 00:27:01 +01:00
|
|
|
|
|
|
|
define CONNMAN_INSTALL_CM
|
2012-09-21 04:54:19 +02:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/client/connmanctl $(TARGET_DIR)/usr/bin/connmanctl
|
2011-12-06 00:27:01 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONNMAN_POST_INSTALL_TARGET_HOOKS += CONNMAN_INSTALL_CM
|
2012-10-04 08:49:38 +02:00
|
|
|
else
|
|
|
|
CONNMAN_CONF_OPT += --disable-client
|
2011-12-06 00:27:01 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|