summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/backupninja/package.py
blob: 81ff716defb769ecc42f3cf2f6d350db292a606a (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
26
27
# 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 Backupninja(AutotoolsPackage):
    """Backupninja backup tool."""

    homepage = "https://github.com/lelutin/backupninja"
    git = "https://github.com/lelutin/backupninja.git"

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

    version("master", branch="master")

    depends_on("autoconf", type="build")
    depends_on("automake", type="build")
    depends_on("libtool", type="build")
    depends_on("m4", type="build")
    depends_on("bash", type="build")
    depends_on("gawk", type="build")

    def setup_run_environment(self, env):
        env.prepend_path("PATH", self.prefix.sbin)