2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-12-06 00:27:01 +01:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# connman
|
2011-12-06 00:27:01 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-12-06 00:27:01 +01:00
|
|
|
|
2014-02-11 19:01:41 +01:00
|
|
|
CONNMAN_VERSION = 1.21
|
2013-09-06 08:14:15 +02:00
|
|
|
CONNMAN_SOURCE = connman-$(CONNMAN_VERSION).tar.xz
|
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_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) \
|
2013-11-28 10:36:40 +01:00
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_NEARD),--enable-neard,--disable-neard) \
|
2014-01-22 21:59:40 +01:00
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_OFONO),--enable-ofono,--disable-ofono) \
|
|
|
|
$(if $(BR2_INIT_SYSTEMD),--with-systemdunitdir=/usr/lib/systemd/system)
|
2013-11-28 10:36:40 +01:00
|
|
|
|
|
|
|
CONNMAN_DEPENDENCIES += \
|
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_NEARD),neard) \
|
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_OFONO),ofono)
|
2011-12-06 00:27:01 +01:00
|
|
|
|
2014-01-22 21:59:39 +01:00
|
|
|
define CONNMAN_INSTALL_INIT_SYSV
|
2011-12-06 00:27:01 +01:00
|
|
|
$(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
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))
|