summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bannergrab/package.py
blob: 7f5dacffc7afe65622b2197c68cbd70db5bad313 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright 2013-2023 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.package 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"

    license("GPL-3.0-or-later")

    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")