diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-09-25 00:52:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 11:52:23 -0500 |
commit | 420bfa41a2dc74c9704d8c3f92161d20e04d4627 (patch) | |
tree | b39d60db9e693c986f9afadeac5e980dcb560acd | |
parent | c8989e22474ce175f2fa38c119ca64ec30a7955f (diff) | |
download | spack-420bfa41a2dc74c9704d8c3f92161d20e04d4627.tar.gz spack-420bfa41a2dc74c9704d8c3f92161d20e04d4627.tar.bz2 spack-420bfa41a2dc74c9704d8c3f92161d20e04d4627.tar.xz spack-420bfa41a2dc74c9704d8c3f92161d20e04d4627.zip |
Add new package: dhtest (#18908)
-rw-r--r-- | var/spack/repos/builtin/packages/dhtest/package.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dhtest/package.py b/var/spack/repos/builtin/packages/dhtest/package.py new file mode 100644 index 0000000000..12c45e246a --- /dev/null +++ b/var/spack/repos/builtin/packages/dhtest/package.py @@ -0,0 +1,22 @@ +# 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 Dhtest(MakefilePackage): + """dhtest linux dhcp client simulation tool. It can simulate + hundreds of dhcp client from a linux machine. Linux root login + is needed because the tool requires layer2 raw socket for sending + and receiving dhcp packets.""" + + homepage = "https://github.com/saravana815/dhtest" + url = "https://github.com/saravana815/dhtest/archive/v1.5.tar.gz" + + version('1.5', sha256='df66150429a59a3b6cea9b29e2687707d04ab10db5dfe1c893ba3e0b0531b151') + + def install(self, spec, prefix): + mkdirp(prefix.bin) + install('dhtest', prefix.bin) |