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
|
|
|
|
2019-05-19 23:49:28 +02:00
|
|
|
CONNMAN_VERSION = 1.37
|
2013-09-06 08:14:15 +02:00
|
|
|
CONNMAN_SOURCE = connman-$(CONNMAN_VERSION).tar.xz
|
2014-07-31 10:46:58 +02:00
|
|
|
CONNMAN_SITE = $(BR2_KERNEL_MIRROR)/linux/network/connman
|
2014-05-30 17:26:21 +02:00
|
|
|
CONNMAN_DEPENDENCIES = libglib2 dbus iptables
|
2011-12-06 00:27:01 +01:00
|
|
|
CONNMAN_INSTALL_STAGING = YES
|
2017-03-30 15:43:32 +02:00
|
|
|
CONNMAN_LICENSE = GPL-2.0
|
2012-12-28 10:47:23 +01:00
|
|
|
CONNMAN_LICENSE_FILES = COPYING
|
2014-10-18 00:36:33 +02:00
|
|
|
CONNMAN_CONF_OPTS += \
|
2015-10-15 16:35:06 +02:00
|
|
|
--with-dbusconfdir=/etc \
|
2017-04-21 17:24:48 +02:00
|
|
|
$(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) \
|
2014-05-30 17:26:21 +02:00
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_WISPR),--enable-wispr,--disable-wispr) \
|
2017-04-21 17:24:48 +02:00
|
|
|
$(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) \
|
2014-05-30 17:26:21 +02:00
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_OFONO),ofono) \
|
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_WISPR),gnutls)
|
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
|
|
|
|
|
2015-04-21 19:50:38 +02:00
|
|
|
define CONNMAN_INSTALL_INIT_SYSTEMD
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -fs ../../../../usr/lib/systemd/system/connman.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/connman.service
|
|
|
|
endef
|
2011-12-06 00:27:01 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_CLIENT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
CONNMAN_CONF_OPTS += --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
|
2014-09-27 21:32:44 +02:00
|
|
|
CONNMAN_CONF_OPTS += --disable-client
|
2011-12-06 00:27:01 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|