diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-10-13 22:55:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 09:55:55 -0500 |
commit | 8e1e6585c4bfa76ebbd945d765c6a4a3dc98025d (patch) | |
tree | 318eff84310fe3884a48c827b49f10b1dccbfbf1 | |
parent | 97be7e7dd310f678a27c007d4d983d4b2a28ad49 (diff) | |
download | spack-8e1e6585c4bfa76ebbd945d765c6a4a3dc98025d.tar.gz spack-8e1e6585c4bfa76ebbd945d765c6a4a3dc98025d.tar.bz2 spack-8e1e6585c4bfa76ebbd945d765c6a4a3dc98025d.tar.xz spack-8e1e6585c4bfa76ebbd945d765c6a4a3dc98025d.zip |
Add new package: dnstracer (#18933)
* Add new package: dnstracer
* refine package class
-rw-r--r-- | var/spack/repos/builtin/packages/dnstracer/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dnstracer/package.py b/var/spack/repos/builtin/packages/dnstracer/package.py new file mode 100644 index 0000000000..4a2603845d --- /dev/null +++ b/var/spack/repos/builtin/packages/dnstracer/package.py @@ -0,0 +1,29 @@ +# 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 Dnstracer(Package): + """Dnstracer determines where a given Domain Name Server gets + its information from, and follows the chain of DNS servers back to + the servers which know the data.""" + + homepage = "https://github.com/Orc/dnstracer" + git = "https://github.com/Orc/dnstracer.git" + + version('master', branch='master') + + phases = ['configure', 'build', 'install'] + + def configure(self, spec, prefix): + configure = Executable('./configure.sh') + configure('--prefix={0}'.format(prefix)) + + def build(self, spec, prefix): + make() + + def install(self, spec, prefix): + make('install') |