[gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/, media-sound/bluez-alsa/files/

2024-02-14 Thread Joonas Niilola
commit: b02a87b6fe1e3d1edd2f1a957923a733511c6b09
Author: Vladimir Shupilov  proton  me>
AuthorDate: Fri Feb  2 13:19:38 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Wed Feb 14 13:43:52 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b02a87b6

media-sound/bluez-alsa: fix openrc daemon start

Closes: https://bugs.gentoo.org/921681
Signed-off-by: Vladimir Shupilov  proton.me>
Closes: https://github.com/gentoo/gentoo/pull/35145
Signed-off-by: Joonas Niilola  gentoo.org>

 .../{bluez-alsa-4.1.1.ebuild => bluez-alsa-4.1.1-r1.ebuild}   | 4 ++--
 media-sound/bluez-alsa/files/bluealsa-conf.d-2-r1 | 4 
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/media-sound/bluez-alsa/bluez-alsa-4.1.1.ebuild 
b/media-sound/bluez-alsa/bluez-alsa-4.1.1-r1.ebuild
similarity index 96%
rename from media-sound/bluez-alsa/bluez-alsa-4.1.1.ebuild
rename to media-sound/bluez-alsa/bluez-alsa-4.1.1-r1.ebuild
index c08d719a53b2..cb9a309aedd6 100644
--- a/media-sound/bluez-alsa/bluez-alsa-4.1.1.ebuild
+++ b/media-sound/bluez-alsa/bluez-alsa-4.1.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -90,7 +90,7 @@ multilib_src_install_all() {
find "${ED}" -type f -name "*.la" -delete || die
 
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
-   newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
+   newconfd "${FILESDIR}"/bluealsa-conf.d-2-r1 bluealsa
#systemd_dounit "${FILESDIR}"/bluealsa.service
 
# Add config file to alsa datadir as well to preserve changes in /etc

diff --git a/media-sound/bluez-alsa/files/bluealsa-conf.d-2-r1 
b/media-sound/bluez-alsa/files/bluealsa-conf.d-2-r1
new file mode 100644
index ..ff1dd4cb1cd9
--- /dev/null
+++ b/media-sound/bluez-alsa/files/bluealsa-conf.d-2-r1
@@ -0,0 +1,4 @@
+# Config file for /etc/init.d/bluealsa
+
+# Allow additional options to be set
+BLUEALSA_CONF="-S -p a2dp-source -p a2dp-sink"



[gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/, media-sound/bluez-alsa/files/

2020-08-19 Thread Lars Wendler
commit: 6a995cbf618cc337615794215a77a29abdab28d2
Author: SuNova  tutanota  com>
AuthorDate: Tue Aug 11 14:05:59 2020 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Aug 19 10:15:50 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a995cbf

media-sound/bluez-alsa: Copy config file to alsa datadir to preserve it

Signed-off-by: sunova  tutanota.com>
Closes: https://github.com/gentoo/gentoo/pull/17079
Signed-off-by: Lars Wendler  gentoo.org>

 .../{bluez-alsa-2.1.0.ebuild => bluez-alsa-2.1.0-r1.ebuild}   | 4 
 media-sound/bluez-alsa/bluez-alsa-.ebuild | 4 
 media-sound/bluez-alsa/files/bluealsa-init.d  | 2 +-
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild 
b/media-sound/bluez-alsa/bluez-alsa-2.1.0-r1.ebuild
similarity index 92%
rename from media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild
rename to media-sound/bluez-alsa/bluez-alsa-2.1.0-r1.ebuild
index c0b3a72b1ab..e81144df9d1 100644
--- a/media-sound/bluez-alsa/bluez-alsa-2.1.0.ebuild
+++ b/media-sound/bluez-alsa/bluez-alsa-2.1.0-r1.ebuild
@@ -71,6 +71,10 @@ multilib_src_install_all() {
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
systemd_dounit "${FILESDIR}"/bluealsa.service
+
+   # Add config file to alsa datadir as well to preserve changes in /etc
+   insinto "/usr/share/alsa/alsa.conf.d/"
+   doins "src/asound/20-bluealsa.conf"
 }
 
 pkg_postinst() {

diff --git a/media-sound/bluez-alsa/bluez-alsa-.ebuild 
b/media-sound/bluez-alsa/bluez-alsa-.ebuild
index fc03fb3b79e..a399d0042c6 100644
--- a/media-sound/bluez-alsa/bluez-alsa-.ebuild
+++ b/media-sound/bluez-alsa/bluez-alsa-.ebuild
@@ -67,6 +67,10 @@ multilib_src_install_all() {
newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
systemd_dounit "${FILESDIR}"/bluealsa.service
+
+   # Add config file to alsa datadir as well to preserve changes in /etc
+   insinto "/usr/share/alsa/alsa.conf.d/"
+   doins "src/asound/20-bluealsa.conf"
 }
 
 pkg_postinst() {

diff --git a/media-sound/bluez-alsa/files/bluealsa-init.d 
b/media-sound/bluez-alsa/files/bluealsa-init.d
index 9b6a3178b63..087b35386eb 100644
--- a/media-sound/bluez-alsa/files/bluealsa-init.d
+++ b/media-sound/bluez-alsa/files/bluealsa-init.d
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 pidfile="/var/run/bluealsa.pid"



[gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/, media-sound/bluez-alsa/files/

2019-03-24 Thread Lars Wendler
commit: 43920470c707f2d1293102c7253baba6cdff6eab
Author: Lars Wendler  gentoo  org>
AuthorDate: Sun Mar 24 12:50:09 2019 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Sun Mar 24 12:51:07 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43920470

media-sound/bluez-alsa: Bump to version 1.4.0

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler  gentoo.org>

 media-sound/bluez-alsa/Manifest|  1 +
 media-sound/bluez-alsa/bluez-alsa-1.4.0.ebuild | 69 ++
 .../bluez-alsa-1.4.0-ldac_pkgconfig_checks.patch   | 31 ++
 media-sound/bluez-alsa/metadata.xml|  2 +
 4 files changed, 103 insertions(+)

diff --git a/media-sound/bluez-alsa/Manifest b/media-sound/bluez-alsa/Manifest
index 13f954a70ae..65879095741 100644
--- a/media-sound/bluez-alsa/Manifest
+++ b/media-sound/bluez-alsa/Manifest
@@ -1 +1,2 @@
 DIST bluez-alsa-1.3.1.tar.gz 87333 BLAKE2B 
0479baa103b9e6e5c26d061df59b0a36a24a74ee04c882a888d63458da96a980bc9f39a6219cd4ad9f8c04b0d58fb337a960584eb7b93455474111a71ddbeb9f
 SHA512 
2b2f7b26b7b8cff70517bf8a24170330038be40f1a5a2fc75d20853b7beca6c9f9e2e6068f6b0f4fa9b6fc61f374ff59961434be8daa3b4d283abfd165be9cbf
+DIST bluez-alsa-1.4.0.tar.gz 102539 BLAKE2B 
8e640ba5c0cadfa5478885dc6affef790bd50fe04821602156a598082efc8733f0917a91240af7881f980e89ec0e36801e537feedec3ce357087b040f852eeb0
 SHA512 
fa4ad21c7b9ac200cdc7628bf0276bbb0beac94066a6c5e69c47a5286f6e13a7dc61caab23acbb14a37c2b97894c425052a09adb8f967038f6fd99557208629f

diff --git a/media-sound/bluez-alsa/bluez-alsa-1.4.0.ebuild 
b/media-sound/bluez-alsa/bluez-alsa-1.4.0.ebuild
new file mode 100644
index 000..6c33c4f7d93
--- /dev/null
+++ b/media-sound/bluez-alsa/bluez-alsa-1.4.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools multilib-minimal
+
+DESCRIPTION="Bluetooth Audio ALSA Backend"
+HOMEPAGE="https://github.com/Arkq/bluez-alsa;
+
+if [[ ${PV} == "" ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/Arkq/${PN};
+else
+   SRC_URI="https://github.com/Arkq/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="aac debug hcitop ldac ofono static-libs test"
+
+RDEPEND=">=dev-libs/glib-2.26[dbus,${MULTILIB_USEDEP}]
+   >=media-libs/alsa-lib-1.1.2[${MULTILIB_USEDEP}]
+   >=media-libs/sbc-1.2[${MULTILIB_USEDEP}]
+   >=net-wireless/bluez-5.0[${MULTILIB_USEDEP}]
+   sys-libs/readline:0=
+   aac? ( >=media-libs/fdk-aac-0.1.1:=[${MULTILIB_USEDEP}] )
+   hcitop? (
+   dev-libs/libbsd
+   sys-libs/ncurses:0=
+   )
+   ldac? ( >=media-libs/libldac-2.0.0 )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.4.0-ldac_pkgconfig_checks.patch
+)
+
+src_prepare() {
+   default
+   eautoreconf
+}
+
+multilib_src_configure() {
+   local myeconfargs=(
+   --enable-rfcomm
+   $(use_enable aac)
+   $(use_enable debug)
+   $(use_enable ofono)
+   $(use_enable static-libs static)
+   $(use_enable test)
+   $(multilib_native_use_enable hcitop)
+   $(multilib_native_use_enable ldac)
+   )
+   ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+   default
+   find "${ED}" -name "*.la" -delete || die
+
+   newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
+   newconfd "${FILESDIR}"/bluealsa-conf.d-2 bluealsa
+}
+
+pkg_postinst() {
+   elog "Users can use this service when they are members of the \"audio\" 
group."
+}

diff --git 
a/media-sound/bluez-alsa/files/bluez-alsa-1.4.0-ldac_pkgconfig_checks.patch 
b/media-sound/bluez-alsa/files/bluez-alsa-1.4.0-ldac_pkgconfig_checks.patch
new file mode 100644
index 000..55530ea8b83
--- /dev/null
+++ b/media-sound/bluez-alsa/files/bluez-alsa-1.4.0-ldac_pkgconfig_checks.patch
@@ -0,0 +1,31 @@
+From 52b08766b08ec7ef8393343553934ca148c175af Mon Sep 17 00:00:00 2001
+From: Lars Wendler 
+Date: Sun, 24 Mar 2019 13:04:24 +0100
+Subject: [PATCH] configure.ac: Fix pkg-config checks for libldac
+
+libldac actually provides the following two pkgconfig files:
+
+ldacBT-enc.pc
+ldacBT-abr.pc
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 270a74c..6f0b04b 100644
+--- a/configure.ac
 b/configure.ac
+@@ -81,8 +81,8 @@ AC_ARG_ENABLE([ldac],
+   [AS_HELP_STRING([--enable-ldac], [enable LDAC support])])
+ AM_CONDITIONAL([ENABLE_LDAC], [test "x$enable_ldac" = "xyes"])
+ AM_COND_IF([ENABLE_LDAC], [
+-  PKG_CHECK_MODULES([LDAC], [libldacBT >= 2.0.0])
+-  PKG_CHECK_MODULES([LDAC_ABR], [libldacBT_abr >= 2.0.0])
++  PKG_CHECK_MODULES([LDAC], [ldacBT-enc >= 2.0.0])
++  

[gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/, media-sound/bluez-alsa/files/

2018-09-14 Thread Lars Wendler
commit: 4346990b14a91f06de4b5d8dedb2d10b56ea5d3e
Author: Lars Wendler  gentoo  org>
AuthorDate: Fri Sep 14 12:52:17 2018 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Fri Sep 14 12:57:54 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4346990b

media-sound/bluez-alsa: Removed old.

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 media-sound/bluez-alsa/Manifest|  1 -
 media-sound/bluez-alsa/bluez-alsa-1.2.0.ebuild | 58 --
 media-sound/bluez-alsa/files/bluealsa-conf.d   |  4 --
 3 files changed, 63 deletions(-)

diff --git a/media-sound/bluez-alsa/Manifest b/media-sound/bluez-alsa/Manifest
index b6712e8a657..10bb72ecff7 100644
--- a/media-sound/bluez-alsa/Manifest
+++ b/media-sound/bluez-alsa/Manifest
@@ -1,3 +1,2 @@
-DIST bluez-alsa-1.2.0.tar.gz 63662 BLAKE2B 
79549c9848f910e083b88058e6798e10d193a3bfcbc087b41e17aa5f43444f425b5932c6440a5c7416068bd0c562a744f3cbfb3008582f56988e756ee74395a3
 SHA512 
a6bf0068b3fb88acaa11990db411f1d3be7ad19219e7bdfd091fe81acc2ba5d5992dfb377e4fcc332ac330bb7e5ab5e4f4a9cee3e700e366fd983e81a272a5b4
 DIST bluez-alsa-1.3.0.tar.gz 86109 BLAKE2B 
0a026c590a3e8f655db367e38891142d757eabc8ba647c655451e7b5ff9beabcc71ec33e16522ee7818be7513c9ecc4c5512ce6a2358651b4d8e77cd90f6a25f
 SHA512 
f355873622290bc0193799a77660adf1e3622d3ad77a8e0cbf46d59b3c015009c8b3318c414b855c569d40bbe450a490f53c8d5382350beadfff6e65ab8e58bc
 DIST bluez-alsa-1.3.1.tar.gz 87333 BLAKE2B 
0479baa103b9e6e5c26d061df59b0a36a24a74ee04c882a888d63458da96a980bc9f39a6219cd4ad9f8c04b0d58fb337a960584eb7b93455474111a71ddbeb9f
 SHA512 
2b2f7b26b7b8cff70517bf8a24170330038be40f1a5a2fc75d20853b7beca6c9f9e2e6068f6b0f4fa9b6fc61f374ff59961434be8daa3b4d283abfd165be9cbf

diff --git a/media-sound/bluez-alsa/bluez-alsa-1.2.0.ebuild 
b/media-sound/bluez-alsa/bluez-alsa-1.2.0.ebuild
deleted file mode 100644
index 8b3787db68d..000
--- a/media-sound/bluez-alsa/bluez-alsa-1.2.0.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit autotools eutils multilib-minimal
-
-DESCRIPTION="Bluetooth Audio ALSA Backend"
-HOMEPAGE="https://github.com/Arkq/bluez-alsa;
-
-if [[ ${PV} == "" ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/Arkq/${PN};
-else
-   SRC_URI="https://github.com/Arkq/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-IUSE="aac debug hcitop"
-
-RDEPEND=">=dev-libs/glib-2.16[dbus,${MULTILIB_USEDEP}]
-   >=media-libs/alsa-lib-1.0[${MULTILIB_USEDEP}]
-   >=media-libs/sbc-1.2[${MULTILIB_USEDEP}]
-   >=net-wireless/bluez-5[${MULTILIB_USEDEP}]
-   aac? ( >=media-libs/fdk-aac-0.1.1[${MULTILIB_USEDEP}] )
-   hcitop? (
-   dev-libs/libbsd
-   sys-libs/ncurses:0=
-   )"
-DEPEND="${RDEPEND}
-   net-libs/ortp
-   virtual/pkgconfig"
-
-src_prepare() {
-   default
-   eautoreconf
-}
-
-multilib_src_configure() {
-   ECONF_SOURCE="${S}" \
-   econf \
-   $(use_enable aac) \
-   $(use_enable debug) \
-   $(multilib_native_use_enable hcitop)
-}
-
-multilib_src_install_all() {
-   default
-   prune_libtool_files --modules
-
-   newinitd "${FILESDIR}"/bluealsa-init.d bluealsa
-   newconfd "${FILESDIR}"/bluealsa-conf.d bluealsa
-}
-
-pkg_postinst() {
-   elog "Users can use this service when they are members of the \"audio\" 
group."
-}

diff --git a/media-sound/bluez-alsa/files/bluealsa-conf.d 
b/media-sound/bluez-alsa/files/bluealsa-conf.d
deleted file mode 100644
index feb2e1e6a66..000
--- a/media-sound/bluez-alsa/files/bluealsa-conf.d
+++ /dev/null
@@ -1,4 +0,0 @@
-# Config file for /etc/init.d/bluealsa
-
-# Allow additional options to be set
-BLUEALSA_CONF="--disable-hsp"



[gentoo-commits] repo/gentoo:master commit in: media-sound/bluez-alsa/, media-sound/bluez-alsa/files/

2016-10-19 Thread Lars Wendler
commit: 0dcd4b29f28560dc1edc953ac22f764adf4a005e
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Oct 19 12:48:00 2016 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Oct 19 13:28:38 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dcd4b29

media-sound/bluez-alsa: Revbump to fix access to /var/run/bluezalsa

This fixes Gentoo bug #597526.
Added "hcitop" USE flag to live ebuild and adjust dependencies
accordingly. Thanks to Aleksei Timofeyev for reporting this via
e-mail.

Package-Manager: portage-2.3.2
Signed-off-by: Lars Wendler  gentoo.org>

 .../{bluez-alsa-1.1.0.ebuild => bluez-alsa-1.1.0-r1.ebuild}   |  0
 media-sound/bluez-alsa/bluez-alsa-.ebuild | 11 ---
 media-sound/bluez-alsa/files/bluealsa-init.d  |  2 +-
 media-sound/bluez-alsa/metadata.xml   |  3 +++
 4 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/media-sound/bluez-alsa/bluez-alsa-1.1.0.ebuild 
b/media-sound/bluez-alsa/bluez-alsa-1.1.0-r1.ebuild
similarity index 100%
rename from media-sound/bluez-alsa/bluez-alsa-1.1.0.ebuild
rename to media-sound/bluez-alsa/bluez-alsa-1.1.0-r1.ebuild

diff --git a/media-sound/bluez-alsa/bluez-alsa-.ebuild 
b/media-sound/bluez-alsa/bluez-alsa-.ebuild
index 35d35a0..630c8af 100644
--- a/media-sound/bluez-alsa/bluez-alsa-.ebuild
+++ b/media-sound/bluez-alsa/bluez-alsa-.ebuild
@@ -18,12 +18,16 @@ fi
 
 LICENSE="MIT"
 SLOT="0"
-IUSE="aac debug"
+IUSE="aac debug hcitop"
 
 RDEPEND=">=dev-libs/glib-2.16[dbus]
>=media-libs/alsa-lib-1.0
>=media-libs/sbc-1.2
-   >=net-wireless/bluez-5"
+   >=net-wireless/bluez-5
+   hcitop? (
+   dev-libs/libbsd
+   sys-libs/ncurses:0=
+   )"
 DEPEND="${RDEPEND}
net-libs/ortp
aac? ( >=media-libs/fdk-aac-0.1.1 )
@@ -37,7 +41,8 @@ src_prepare() {
 src_configure() {
econf \
$(use_enable aac) \
-   $(use_enable debug)
+   $(use_enable debug) \
+   $(use_enable hcitop)
 }
 
 src_install() {

diff --git a/media-sound/bluez-alsa/files/bluealsa-init.d 
b/media-sound/bluez-alsa/files/bluealsa-init.d
index 1e2b2a7..1b61e83 100644
--- a/media-sound/bluez-alsa/files/bluealsa-init.d
+++ b/media-sound/bluez-alsa/files/bluealsa-init.d
@@ -14,5 +14,5 @@ depend() {
 }
 
 start_pre() {
-   checkpath -q -D -m 0700 -o :audio /var/run/bluealsa
+   checkpath -q -D -m 0770 -o :audio /var/run/bluealsa
 }

diff --git a/media-sound/bluez-alsa/metadata.xml 
b/media-sound/bluez-alsa/metadata.xml
index 515507b..d35dea0 100644
--- a/media-sound/bluez-alsa/metadata.xml
+++ b/media-sound/bluez-alsa/metadata.xml
@@ -8,4 +8,7 @@
   
 Arkq/bluez-alsa
   
+  
+Enable top-like monitoring tool for HCI
+