summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ethtool/package.py
blob: 1bbe148e021b7ebbc6a7c2ca84859f5f586a3b9f (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
# 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 Ethtool(AutotoolsPackage):
    """Ethtool is a small utility for examining and tuning your ethernet-based
    network interface."""

    homepage = "https://github.com/Distrotech/ethtool"
    url = "https://github.com/Distrotech/ethtool/archive/v4.8.tar.gz"

    license("GPL-2.0-only")

    version("4.8", sha256="e4443c612b01b6c4891e21f55a59aa2d6da1c9915edcf067bb66a0855590e143")

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

    def autoreconf(self, spec, prefix):
        autoreconf("--install", "--verbose", "--force")