summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-11-14 17:28:50 +0800
committerGitHub <noreply@github.com>2020-11-14 10:28:50 +0100
commit3d6866cc1c91fbe4e9927690a5a131069c232dff (patch)
treee9eb1d0bc670866ab1688739617ff901e649b1b9 /var
parenta8cf52979105330a84cf9432c44aaa1cc78dca92 (diff)
downloadspack-3d6866cc1c91fbe4e9927690a5a131069c232dff.tar.gz
spack-3d6866cc1c91fbe4e9927690a5a131069c232dff.tar.bz2
spack-3d6866cc1c91fbe4e9927690a5a131069c232dff.tar.xz
spack-3d6866cc1c91fbe4e9927690a5a131069c232dff.zip
iproute2: new package at v5.9.0 (#19920)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/iproute2/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/iproute2/package.py b/var/spack/repos/builtin/packages/iproute2/package.py
new file mode 100644
index 0000000000..426ba5c1bc
--- /dev/null
+++ b/var/spack/repos/builtin/packages/iproute2/package.py
@@ -0,0 +1,25 @@
+# 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 Iproute2(AutotoolsPackage):
+ """This is a set of utilities for Linux networking."""
+
+ homepage = "https://github.com/shemminger/iproute2"
+ url = "https://github.com/shemminger/iproute2/archive/v5.9.0.tar.gz"
+
+ version('5.9.0', sha256='1afde56d416f136b1236ac2f8276e4edbe114ca3c2ab12f11af11b84cf0992e4')
+ version('5.8.0', sha256='78c73ed49c35fae59ab4e9d88220dcc70da924de3838e13a3cdc7c09496e5a45')
+ version('5.7.0', sha256='12a3861f463c6bbd1bb3b213ac734f75c89172b74104140dd0bbfcb1e13ee798')
+ version('5.6.0', sha256='be41c35eddb02e736a2040b66ccfacee41fe7ee454580588f8959568d8a3c5b3')
+ version('5.5.0', sha256='5bc88876a3140f640e3318453382be5be4c673ccc17a518c05a5ce2ef9aa9a7f')
+
+ def install(self, spec, prefix):
+ make('install', 'DESTDIR={0}'.format(prefix), 'PREFIX=')
+
+ def setup_run_environment(self, env):
+ env.prepend_path('PATH', self.prefix.sbin)