From 3e61d3c536c0344fdc6ce2813da3a3593965a1c7 Mon Sep 17 00:00:00 2001 From: darmac Date: Thu, 24 Sep 2020 10:06:50 +0800 Subject: [PATCH] Add new package: bannergrab (#18730) * Add new package: bannergrab * refine installation flow --- .../builtin/packages/bannergrab/package.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 var/spack/repos/builtin/packages/bannergrab/package.py diff --git a/var/spack/repos/builtin/packages/bannergrab/package.py b/var/spack/repos/builtin/packages/bannergrab/package.py new file mode 100644 index 0000000000..ed8af4a0e3 --- /dev/null +++ b/var/spack/repos/builtin/packages/bannergrab/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 Bannergrab(MakefilePackage): + """Bannergrab is a simple tool, designed to collect information + from network services. It can do this using two different methods; + grab the connection banners and send triggers and collect the + responses. Bannergrab defaults to sending triggers.""" + + homepage = "https://github.com/johanburati/bannergrab" + git = "https://github.com/johanburati/bannergrab.git" + + version('master', branch='master') + + def install(self, spec, prefix): + mkdirp(prefix.bin) + mkdirp(prefix.man1) + make('BINPATH={0}'.format(prefix.bin), + 'MANPATH={0}/'.format(prefix), + 'install')