From patchwork Tue Dec 3 10:53:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 1203610 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=embedded.rocks Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=embedded.rocks header.i=@embedded.rocks header.b="igUk+6mQ"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47RzPV52WYz9s4Y for ; Tue, 3 Dec 2019 21:54:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A56D52262B; Tue, 3 Dec 2019 10:54:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4DEigC-UEchD; Tue, 3 Dec 2019 10:54:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 98729221F0; Tue, 3 Dec 2019 10:54:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 217BA1BF288 for ; Tue, 3 Dec 2019 10:54:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1E2A2862ED for ; Tue, 3 Dec 2019 10:54:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nUiUxsETNOrH for ; Tue, 3 Dec 2019 10:53:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.141]) by whitealder.osuosl.org (Postfix) with ESMTPS id A0761875A1 for ; Tue, 3 Dec 2019 10:53:55 +0000 (UTC) Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id C84E816006C for ; Tue, 3 Dec 2019 11:53:51 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47RzP96gtMz6tm7 for ; Tue, 3 Dec 2019 11:53:49 +0100 (CET) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:references:in-reply-to:x-mailer:message-id:date :date:subject:subject:from:from:received:received; s=default; t= 1575370428; x=1575975229; bh=5i01HyAXARSqOdQi0pOhdbO0BpiyexAsmZb CZvZEgXc=; b=igUk+6mQhNOCtRSc6nC7hxLBUZDdKU3WY2VI3X7AgHUQmx+OUn4 LOpqoiFVtzXgigN497fuQWjBn6yLwlDGE0MA6HyN8nLMJMT2kA/i9+Rxb45DCqBX 1F/MJRr7TjULEbzz9T5Jha4GJLul/T65qZrbDvgpEbhsbh0K1IcAbWAXWAHcKOT0 5icmHtmLXG4D/cLByX5FBAEOQKdlqDTvDKEfxN9S3R5npKRc+BFf+LUjApdKTDXH j6c5HgFA7StwNI7n6VcFqrjtDPVw8nRN4C8t9HEhjMKti3oFAZ8NPJ2Fupnh6XDG tivNuKcEOdtvpZzuPMgN10g5wMuvcWL2Riw== Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id d6KKeu6KXgEF; Tue, 3 Dec 2019 11:53:48 +0100 (CET) Received: from nzxt.fritz.box (port-92-195-96-1.dynamic.qsc.de [92.195.96.1]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Tue, 3 Dec 2019 11:53:48 +0100 (CET) From: =?utf-8?q?J=C3=B6rg_Krause?= To: buildroot@buildroot.org Date: Tue, 3 Dec 2019 11:53:41 +0100 Message-Id: <20191203105341.1232360-5-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203105341.1232360-1-joerg.krause@embedded.rocks> References: <20191203105341.1232360-1-joerg.krause@embedded.rocks> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 5/5] package/shairport-sync: add mqtt option X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Shairport Sync added support for the MQTT protocol in version 3.2. For full MQTT support Avahi and DBus support are required. Signed-off-by: Jörg Krause --- package/shairport-sync/Config.in | 11 +++++++++++ package/shairport-sync/shairport-sync.mk | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/package/shairport-sync/Config.in b/package/shairport-sync/Config.in index 6325e9d30d..185fb3cff1 100644 --- a/package/shairport-sync/Config.in +++ b/package/shairport-sync/Config.in @@ -49,6 +49,17 @@ config BR2_PACKAGE_SHAIRPORT_SYNC_LIBSOXR can be heard in some circumstances. Libsoxr allows this interpolation to be done much more smoothly and subtly. +config BR2_PACKAGE_SHAIRPORT_SYNC_MQTT + bool "mqtt support" + depends on !BR2_STATIC_LIBS # avahi + select BR2_PACKAGE_AVAHI + select BR2_PACKAGE_AVAHI_DAEMON + select BR2_PACKAGE_DBUS + select BR2_PACKAGE_MOSQUITTO + help + Enable support for the MQTT, the Message Queuing Telemetry + Transport protocol. + endif comment "shairport-sync needs a toolchain w/ C++, NPTL" diff --git a/package/shairport-sync/shairport-sync.mk b/package/shairport-sync/shairport-sync.mk index a20570f915..880a058909 100644 --- a/package/shairport-sync/shairport-sync.mk +++ b/package/shairport-sync/shairport-sync.mk @@ -66,6 +66,11 @@ SHAIRPORT_SYNC_DEPENDENCIES += libsoxr SHAIRPORT_SYNC_CONF_OPTS += --with-soxr endif +ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_MQTT),y) +SHAIRPORT_SYNC_DEPENDENCIES += avahi dbus mosquitto +SHAIRPORT_SYNC_CONF_OPTS += --with-mqtt-client +endif + define SHAIRPORT_SYNC_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0755 $(@D)/shairport-sync \ $(TARGET_DIR)/usr/bin/shairport-sync