2022-01-13 03:21:41 +08:00
|
|
|
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
|
2020-09-24 10:06:50 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2022-05-29 00:55:44 +08:00
|
|
|
from spack.package import *
|
2020-09-24 10:06:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
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')
|