summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-02-24 12:08:03 +0800
committerGitHub <noreply@github.com>2020-02-23 22:08:03 -0600
commitedca0e9da24b209d6a7b9a8248ab0d0f503bda12 (patch)
tree9be08b817cfe44bc1b0f0c6912d28da6d9e368a9
parentfd3c08e925693434bb814ff22bace57c1cc3d373 (diff)
downloadspack-edca0e9da24b209d6a7b9a8248ab0d0f503bda12.tar.gz
spack-edca0e9da24b209d6a7b9a8248ab0d0f503bda12.tar.bz2
spack-edca0e9da24b209d6a7b9a8248ab0d0f503bda12.tar.xz
spack-edca0e9da24b209d6a7b9a8248ab0d0f503bda12.zip
add new package : batctl (#15160)
* add new package : batctl * batctl: move binary to bin/
-rw-r--r--var/spack/repos/builtin/packages/batctl/package.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/batctl/package.py b/var/spack/repos/builtin/packages/batctl/package.py
new file mode 100644
index 0000000000..45bd5ecd73
--- /dev/null
+++ b/var/spack/repos/builtin/packages/batctl/package.py
@@ -0,0 +1,24 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Batctl(MakefilePackage):
+ """B.A.T.M.A.N. advanced control and management tool"""
+
+ homepage = "https://github.com/open-mesh-mirror/batctl"
+ url = "https://github.com/open-mesh-mirror/batctl/archive/v2019.5.tar.gz"
+
+ version('2019.5', sha256='ffe5857a33068ec174140c154610d76d833524d840a2fc2d1a15e16686213cad')
+ version('2019.4', sha256='a3564eb9727335352dc0cfa2f2b29474c2c837384689ac5fcb387784a56e7685')
+ version('2019.3', sha256='2bd93fa14925a8dc63a67e64266c8ccd2fa3ac44b10253d93e6f8a630350070c')
+ version('2019.2', sha256='fb656208ff7d4cd8b1b422f60c9e6d8747302a347cbf6c199d7afa9b80f80ea3')
+
+ depends_on('libnl')
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.bin)
+ install('batctl', prefix.bin)