summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Smallbones <info@harrysmallbones.co.uk>2022-07-26 22:54:14 +0100
committerJoonas Niilola <juippis@gentoo.org>2022-08-04 10:09:23 +0300
commit2954e4b3c37966394b454414c1281396f1302d3d (patch)
treef76388ac927b988ba9cceaa38c9687dd2eb867f8 /net-misc/batctl
parentmedia-libs/ampache_browser: add a missing dep to 1.0.4 (diff)
downloadgentoo-2954e4b3c37966394b454414c1281396f1302d3d.tar.gz
gentoo-2954e4b3c37966394b454414c1281396f1302d3d.tar.bz2
gentoo-2954e4b3c37966394b454414c1281396f1302d3d.zip
net-misc/batctl: add 2022.2
Closes: https://bugs.gentoo.org/861308 Signed-off-by: Harry Smallbones <info@harrysmallbones.co.uk> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-misc/batctl')
-rw-r--r--net-misc/batctl/Manifest1
-rw-r--r--net-misc/batctl/batctl-2022.2.ebuild33
2 files changed, 34 insertions, 0 deletions
diff --git a/net-misc/batctl/Manifest b/net-misc/batctl/Manifest
index fdb9ca236ba1..0f851da01d3e 100644
--- a/net-misc/batctl/Manifest
+++ b/net-misc/batctl/Manifest
@@ -1 +1,2 @@
DIST batctl-2022.1.tar.gz 116858 BLAKE2B 1de12d207c9fc3201c557f02d06d81b42cb3038b82a2ae8c8255e20ae3078d25a8f9f2bf39a96f649c42541c5b1a4796baaf5f30d4534b40b24c2df06c17ddbe SHA512 4e268b5ec7cb07fed08b8688e10c603b788ccbe3cc3c84e536ba27cf2e54e306b49d86a9f9c657627c673a48029834d0454db53c0fa46d7fad5e2095823828f5
+DIST batctl-2022.2.tar.gz 116876 BLAKE2B e12773fce61bbe26ce6c80dc0842cd35f0207ceeaed36ff56e0f468f2bcf9c84867cdea17256ec489283b59c74c3c38040c76d5da7d6ca8d04acc99ea0c4a2ae SHA512 4a9dbc6a005fa2ecc657e1a03c7fa1e2eaf68f0cb41fdb7e8c6d832cc23f8ba8c0afd46839a281d1c8f3a15370e90302fab4b4b65890364de51a0304fcb2ce2e
diff --git a/net-misc/batctl/batctl-2022.2.ebuild b/net-misc/batctl/batctl-2022.2.ebuild
new file mode 100644
index 000000000000..03a22398411e
--- /dev/null
+++ b/net-misc/batctl/batctl-2022.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info toolchain-funcs
+
+DESCRIPTION="BATMAN advanced control and management tool"
+HOMEPAGE="https://www.open-mesh.org/"
+SRC_URI="https://downloads.open-mesh.org/batman/releases/batman-adv-${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2 MIT ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="virtual/pkgconfig"
+RDEPEND="dev-libs/libnl:3"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ if ! linux_config_exists || ! linux_chkconfig_present BATMAN_ADV; then
+ ewarn "batctl requires batman-adv kernel support"
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" V=1 REVISION="gentoo-${PVR}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ dodoc README.rst
+}