Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3527239pxj; Tue, 11 May 2021 06:33:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5BB/kivojvQA+GXfr7eAcs7XgzUHD/MTfjXNxginCUpD2EF8Ae8Ybtg/RAUQjoGzoAJ3e X-Received: by 2002:a5d:4312:: with SMTP id h18mr38143266wrq.193.1620740022049; Tue, 11 May 2021 06:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620740022; cv=none; d=google.com; s=arc-20160816; b=WtCEApUm1DBTo4kg37GWHBqn/3GYrV/2ZRsFZ0gbxL0Kg1Y2IxVX8oOPOpDGRiUPn+ Q9HuUuTf7r4b6mFSo3G4mMPK8JGdUkS8ydiydtwbM64/ekIjmughV1Ww2HEYzCITf9Bo rrg5NY/58seC2hixGKoWiCX/DKk3H7SGGMbahYz3E/6tgYeYAjEd1IgtVC8DF062M26f Cr7V+5r5ofw0JHbhQFf6G9BBet6/WiuEEplNtcgxahB30UcsNQk0JSXYI3JjjG+EX+A4 DESgpRn/Sbn8caHYe6UHNwhzjYrU9e05Rd+/QlCNp1zD6UdqKKcSnQrgYidMKS9K3IjH vnvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=glutP/x7a2gs2QApeUY8/COADNes9qq0sF/hzuhB8kk=; b=0gME/pGk2i616FR9w85QOJGmED7EDR907KkmgX8MKvU5BajFxaJRMZ0inlz5MXF5BE icMe474xH4nuCl3eeB87OvArMZL3PIvcTqX0q2Gwyy1uCXWDAGxeFIfOoxCMIJs2AvQa YExVCPU3cW0VMOH/w5IG3jtyd8tNaVw+Vf/zQSlHHQ0+Wzek04y/0xM3GZpHXoAO/31O bRnKAa5u3cYgRa7Nbqf0WCNRMS6dqSfabh176vJWFuXZTnXsex+rmRXzvpmvhGHxdLAI UZeNSfgJjz9zUUZ+K3uA8Dh+4wgxy6yXTki4ZttPQmOuKLzZMIEwdEFJgdAKZsO1Vm9v JQOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@t-8ch.de header.s=mail header.b=dwnov+bL; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rs3si16896569ejb.501.2021.05.11.06.33.05; Tue, 11 May 2021 06:33:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@t-8ch.de header.s=mail header.b=dwnov+bL; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231476AbhEKNcE (ORCPT + 99 others); Tue, 11 May 2021 09:32:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbhEKNcE (ORCPT ); Tue, 11 May 2021 09:32:04 -0400 X-Greylist: delayed 428 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 11 May 2021 06:30:58 PDT Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13A42C061574 for ; Tue, 11 May 2021 06:30:58 -0700 (PDT) From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=t-8ch.de; s=mail; t=1620739428; bh=/9K/BaRMG9AIDEgridVAjIkmV5Eusgu3sUMTW1LTnXk=; h=From:To:Cc:Subject:Date:From; b=dwnov+bL742APotBXhXEPle+vIDWyZco+MkaI/u6uFlmoO0XtMhPTWtJADEE3On4G cDgFKws6KaHNJocGX8fm+WQq6YN9ylaDR43/RkGCqvBHIfxWXGnoFv4vRggbH58jpj iI0P2KPYaGSLv21uLcvRFmRwlhZJyYXxrzGgsCYo= To: linux-bluetooth@vger.kernel.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH BlueZ] tools/mpris-proxy: Ship systemd unit file Date: Tue, 11 May 2021 15:22:13 +0200 Message-Id: <20210511132213.150076-1-thomas@t-8ch.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --- .gitignore | 1 + Makefile.am | 4 ++++ Makefile.obexd | 3 +-- Makefile.tools | 8 ++++++++ tools/mpris-proxy.service.in | 11 +++++++++++ 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 tools/mpris-proxy.service.in diff --git a/.gitignore b/.gitignore index 9c8393a81..a34dd27f6 100644 --- a/.gitignore +++ b/.gitignore @@ -84,6 +84,7 @@ tools/nokfw tools/rtlfw tools/btiotest tools/mpris-proxy +tools/mpris-proxy.service tools/bluetooth-player tools/l2cap-tester tools/sco-tester diff --git a/Makefile.am b/Makefile.am index 497f05f06..7a508404e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -42,6 +42,9 @@ if SYSTEMD systemdsystemunitdir = $(SYSTEMD_SYSTEMUNITDIR) systemdsystemunit_DATA = src/bluetooth.service +systemduserunitdir = $(SYSTEMD_USERUNITDIR) +systemduserunit_DATA = + dbussystembusdir = $(DBUS_SYSTEMBUSDIR) dbussystembus_DATA = src/org.bluez.service endif @@ -617,6 +620,7 @@ MAINTAINERCLEANFILES = Makefile.in \ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(SED) -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \ + -e 's,@bindir\@,$(bindir),g' \ < $< > $@ if RUN_RST2MAN diff --git a/Makefile.obexd b/Makefile.obexd index 6f5dc04c0..1e3f51296 100644 --- a/Makefile.obexd +++ b/Makefile.obexd @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 if SYSTEMD -systemduserunitdir = $(SYSTEMD_USERUNITDIR) -systemduserunit_DATA = obexd/src/obex.service +systemduserunit_DATA += obexd/src/obex.service dbussessionbusdir = $(DBUS_SESSIONBUSDIR) dbussessionbus_DATA = obexd/src/org.bluez.obex.service diff --git a/Makefile.tools b/Makefile.tools index c836b5984..c98228de5 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -290,6 +290,14 @@ tools_hex2hcd_SOURCES = tools/hex2hcd.c tools_mpris_proxy_SOURCES = tools/mpris-proxy.c tools_mpris_proxy_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS) +tools_mpris_proxy_DEPENDENCIES = tools/mpris-proxy.service + +if SYSTEMD +systemduserunit_DATA += tools/mpris-proxy.service +endif + +CLEANFILES += tools/mpris-proxy.service +EXTRA_DIST += tools/mpris-proxy.service.in tools_gatt_service_SOURCES = tools/gatt-service.c tools_gatt_service_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) gdbus/libgdbus-internal.la diff --git a/tools/mpris-proxy.service.in b/tools/mpris-proxy.service.in new file mode 100644 index 000000000..c52450f4f --- /dev/null +++ b/tools/mpris-proxy.service.in @@ -0,0 +1,11 @@ +[Unit] +Description=Bluetooth to MPRIS proxy + +[Service] +Type=simple +ExecStart=@bindir@/mpris-proxy +NotifyAccess=main +LimitNPROC=1 + +[Install] +WantedBy=bluetooth.target base-commit: fa57cb68e13ea4a6cff5532830008d44254e7e83 -- 2.31.1