media-sound/bluez-alsa: Added systemd unit file
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 29 Apr 2019 00:35:47 +0000 (02:35 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 29 Apr 2019 00:36:10 +0000 (02:36 +0200)
Thanks-to: Chris Mayo <aklhfex@gmail.com>
Closes: https://bugs.gentoo.org/677928
Package-Manager: Portage-2.3.65, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
media-sound/bluez-alsa/bluez-alsa-9999.ebuild
media-sound/bluez-alsa/files/bluealsa.service [new file with mode: 0644]

index cc73606509500524e91149909fac33aa2fc4bb65..0e5b0d27ae845c955096d60bdcd1f4006b2aea24 100644 (file)
@@ -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 (file)
index 0000000..12451cc
--- /dev/null
@@ -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