summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/e2fsprogs/package.py
blob: c6ef66d745f7785f3417c047543d084ca2c7d137 (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
28
# 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 E2fsprogs(AutotoolsPackage):
    """It provides the filesystem utilities for use with the ext2 filesystem.
    It also supports the ext3 and ext4 filesystems."""

    homepage = "https://github.com/tytso/e2fsprogs"
    url = "https://github.com/tytso/e2fsprogs/archive/v1.45.6.tar.gz"

    license("GPL-2.0-or-later AND LGPL-2.0-or-later AND BSD-3-Clause AND MIT")

    version("1.45.6", sha256="d785164a2977cd88758cb0cac5c29add3fe491562a60040cfb193abcd0f9609b")
    version("1.45.5", sha256="0fd76e55c1196c1d97a2c01f2e84f463b8e99484541b43ff4197f5a695159fd3")

    depends_on("texinfo", type="build")

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

    def configure_args(self):
        # avoid installing things in /etc
        return ["--without-udev-rules-dir", "--without-crond-dir", "--without-systemd-unit-dir"]