From 6ef7c69333e13ef4d5369b0dde81216aa05a14b5 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Mon, 29 Apr 2019 02:35:47 +0200 Subject: media-sound/bluez-alsa: Added systemd unit file Thanks-to: Chris Mayo Closes: https://bugs.gentoo.org/677928 Package-Manager: Portage-2.3.65, Repoman-2.3.12 Signed-off-by: Lars Wendler --- media-sound/bluez-alsa/bluez-alsa-9999.ebuild | 3 ++- media-sound/bluez-alsa/files/bluealsa.service | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 media-sound/bluez-alsa/files/bluealsa.service diff --git a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild index cc7360650950..0e5b0d27ae84 100644 --- a/media-sound/bluez-alsa/bluez-alsa-9999.ebuild +++ b/media-sound/bluez-alsa/bluez-alsa-9999.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit autotools multilib-minimal +inherit autotools multilib-minimal systemd DESCRIPTION="Bluetooth Audio ALSA Backend" HOMEPAGE="https://github.com/Arkq/bluez-alsa" @@ -58,6 +58,7 @@ multilib_src_install_all() { newinitd "${FILESDIR}"/bluealsa-init.d bluealsa newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa + systemd_dounit "${FILESDIR}"/bluealsa.service } pkg_postinst() { diff --git a/media-sound/bluez-alsa/files/bluealsa.service b/media-sound/bluez-alsa/files/bluealsa.service new file mode 100644 index 000000000000..12451ccb618c --- /dev/null +++ b/media-sound/bluez-alsa/files/bluealsa.service @@ -0,0 +1,10 @@ +[Unit] +Description=Bluetooth Audio ALSA Backend +Requisite=dbus.service +After=bluetooth.service dbus.service + +[Service] +ExecStart=/usr/bin/bluealsa + +[Install] +WantedBy=bluetooth.target -- cgit v1.2.3-65-gdbad