summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Smallbones <info@harrysmallbones.co.uk>2020-07-16 01:51:11 +0100
committerJoonas Niilola <juippis@gentoo.org>2020-08-05 15:18:38 +0300
commit6593a0088107f4c5e6995b052a12b64b80c2bdac (patch)
tree9b1c2b385f2299e75d079db4480b99df93faca7f
parentnet-misc/batctl: Update metadata.xml (diff)
downloadgentoo-6593a0088107f4c5e6995b052a12b64b80c2bdac.tar.gz
gentoo-6593a0088107f4c5e6995b052a12b64b80c2bdac.tar.bz2
gentoo-6593a0088107f4c5e6995b052a12b64b80c2bdac.zip
net-misc/batctl: Version bump to 2020.1
Signed-off-by: Harry Smallbones <info@harrysmallbones.co.uk> Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--net-misc/batctl/Manifest1
-rw-r--r--net-misc/batctl/batctl-2020.1.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/net-misc/batctl/Manifest b/net-misc/batctl/Manifest
index 1c2d81fc68c..0b786a6d967 100644
--- a/net-misc/batctl/Manifest
+++ b/net-misc/batctl/Manifest
@@ -1 +1,2 @@
DIST batctl-2017.4.tar.gz 85865 BLAKE2B 9d8786956b69407d46d1b024a40c3db2a80bbcce7c02e8e7d98234d06aaa3cd4fe86dd9331806699a7310ac41b7a758c324bcb6c3daf378da0db0a8858f814df SHA512 a3ce3f32ed1eaa65aee4a9ac56d8e235b861b3844a13fe050cfc0e707bbdf382fd2e6e4ecb35b7777f79020cb241e063f473d28f1b2e312f865e6dce304b4b9f
+DIST batctl-2020.1.tar.gz 112004 BLAKE2B fdf99b97edfb1b65df3b6cfd3b99148e21a6fc201c5a6b2d2bfeedddfa18e22903b33811d8b9adf6d4a2b53ab9ca35602fdb90b48f97fb40e4edf9643264609e SHA512 b6f4b98a3a8450badf7d8dda2c23e0f91a1f3e0c6d9db96d220451ee4f2f5ea703206a888d504cc3b8594c4255a6ccea851e4da6d1c7869842a62ee0bac6ce8b
diff --git a/net-misc/batctl/batctl-2020.1.ebuild b/net-misc/batctl/batctl-2020.1.ebuild
new file mode 100644
index 00000000000..dc9f33ff920
--- /dev/null
+++ b/net-misc/batctl/batctl-2020.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+IUSE=""
+
+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
+}