summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-02-18 17:22:50 +0100
committerFlorian Schmaus <flow@gentoo.org>2024-02-18 17:22:50 +0100
commit665e49fcbf6df283b22c918fdfd42e8a33fcb184 (patch)
tree48cfe5d90f59baef1ed1fad430b53f926362bb7d /net-wireless
parentnet-misc/sunshine: fix manifest (diff)
downloadgentoo-665e49fcbf6df283b22c918fdfd42e8a33fcb184.tar.gz
gentoo-665e49fcbf6df283b22c918fdfd42e8a33fcb184.tar.bz2
gentoo-665e49fcbf6df283b22c918fdfd42e8a33fcb184.zip
net-wireless/bdaddr: new package, add 0_p20210511
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/bdaddr/Manifest2
-rw-r--r--net-wireless/bdaddr/bdaddr-0_p20210511.ebuild56
-rw-r--r--net-wireless/bdaddr/metadata.xml11
3 files changed, 69 insertions, 0 deletions
diff --git a/net-wireless/bdaddr/Manifest b/net-wireless/bdaddr/Manifest
new file mode 100644
index 000000000000..bd6ae2aeadc2
--- /dev/null
+++ b/net-wireless/bdaddr/Manifest
@@ -0,0 +1,2 @@
+DIST bdaddr-0_p20210511-idiomatic-makefile.patch 840 BLAKE2B d0be6e61728313517816db440ebb54bbece61f98ffa8d0cf28f23fcc0d3538baec77392b634be74a5ea4d9f72342ebeec99c0c226c52d7f9f8fee983f63b2c21 SHA512 4b67caa9afeeca31e3b3c5c8a61186769f94c7edd34694d9546d8242bc2762f98c7709cf2f1453b68b913e498c8f45003b9ccce7bc1ee8904e585c43c5db2ae9
+DIST bdaddr-0_p20210511.tar.gz 5236 BLAKE2B a445586cc016f57f1922d6cff9dcf3141d35122a0dd4a3c338cc98515dadcf40265c3f4dcb2da03d3cd4214ab3d57172d78677afe9099d380e1241677d13b486 SHA512 956e1207c4b082d6322ab0ce9cdc76c9c2c9f17fe4ecb3d03b4839025b49f102a4e35b05e2489eca3fee6fc4a611d942e598c97cab7db6b530e895818e33a150
diff --git a/net-wireless/bdaddr/bdaddr-0_p20210511.ebuild b/net-wireless/bdaddr/bdaddr-0_p20210511.ebuild
new file mode 100644
index 000000000000..4b3ac829697a
--- /dev/null
+++ b/net-wireless/bdaddr/bdaddr-0_p20210511.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Utility for changing the Bluetooth device address"
+HOMEPAGE="https://github.com/thxomas/bdaddr"
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/thxomas/bdaddr"
+else
+ MY_COMMIT=53dae3f6a33bca202ddae0e7b14beeaf2d7d653b
+ SRC_URI="
+ https://github.com/thxomas/bdaddr/archive/${MY_COMMIT}.tar.gz
+ -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm64"
+ S="${WORKDIR}/${PN}-${MY_COMMIT}"
+fi
+
+# https://github.com/thxomas/bdaddr/pull/6
+SRC_URI+="
+ https://github.com/Flowdalic/bdaddr/commit/e5cf5666e00828a3769fcda4717b0ee6f277001d.patch
+ -> ${PN}-0_p20210511-idiomatic-makefile.patch
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+
+COMMON_DEPEND="
+ net-wireless/bluez:=
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ sys-apps/hwdata
+"
+DEPEND="
+ ${COMMON_DEPEND}
+"
+BDEPEND="dev-go/go-md2man"
+
+PATCHES=(
+ "${DISTDIR}"/${PN}-0_p20210511-idiomatic-makefile.patch
+)
+
+src_compile() {
+ emake
+
+ go-md2man -in README.md -out ${PN}.1 || die
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dosym ../hwdata/oui.txt usr/share/misc/oui.txt
+}
diff --git a/net-wireless/bdaddr/metadata.xml b/net-wireless/bdaddr/metadata.xml
new file mode 100644
index 000000000000..b25bbf170df9
--- /dev/null
+++ b/net-wireless/bdaddr/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Florian Schmaus</name>
+ <email>flow@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">thxomas/bdaddr</remote-id>
+ </upstream>
+</pkgmetadata>