2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2011-12-06 07:27:01 +08:00
|
|
|
#
|
2013-06-06 07:53:29 +08:00
|
|
|
# connman
|
2011-12-06 07:27:01 +08:00
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2011-12-06 07:27:01 +08:00
|
|
|
|
2014-02-12 02:01:41 +08:00
|
|
|
CONNMAN_VERSION = 1.21
|
2013-09-06 14:14:15 +08:00
|
|
|
CONNMAN_SOURCE = connman-$(CONNMAN_VERSION).tar.xz
|
2012-05-21 06:21:03 +08:00
|
|
|
CONNMAN_SITE = $(BR2_KERNEL_MIRROR)/linux/network/connman/
|
|
|
|
CONNMAN_DEPENDENCIES = libglib2 dbus iptables gnutls
|
2011-12-06 07:27:01 +08:00
|
|
|
CONNMAN_INSTALL_STAGING = YES
|
2012-12-28 17:47:23 +08:00
|
|
|
CONNMAN_LICENSE = GPLv2
|
|
|
|
CONNMAN_LICENSE_FILES = COPYING
|
2011-12-06 07:27:01 +08: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 17:36:40 +08:00
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_NEARD),--enable-neard,--disable-neard) \
|
2014-01-23 04:59:40 +08:00
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_OFONO),--enable-ofono,--disable-ofono) \
|
|
|
|
$(if $(BR2_INIT_SYSTEMD),--with-systemdunitdir=/usr/lib/systemd/system)
|
2013-11-28 17:36:40 +08:00
|
|
|
|
|
|
|
CONNMAN_DEPENDENCIES += \
|
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_NEARD),neard) \
|
|
|
|
$(if $(BR2_PACKAGE_CONNMAN_OFONO),ofono)
|
2011-12-06 07:27:01 +08:00
|
|
|
|
2014-01-23 04:59:39 +08:00
|
|
|
define CONNMAN_INSTALL_INIT_SYSV
|
2011-12-06 07:27:01 +08: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 10:54:19 +08:00
|
|
|
CONNMAN_DEPENDENCIES += readline
|
2011-12-06 07:27:01 +08:00
|
|
|
|
|
|
|
define CONNMAN_INSTALL_CM
|
2012-09-21 10:54:19 +08:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/client/connmanctl $(TARGET_DIR)/usr/bin/connmanctl
|
2011-12-06 07:27:01 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONNMAN_POST_INSTALL_TARGET_HOOKS += CONNMAN_INSTALL_CM
|
2012-10-04 14:49:38 +08:00
|
|
|
else
|
|
|
|
CONNMAN_CONF_OPT += --disable-client
|
2011-12-06 07:27:01 +08:00
|
|
|
endif
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(autotools-package))
|