summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ethtool/package.py
blob: a3989b5ec8b5e6cf6ae58a947eff7d9f65277f6f (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
# Copyright 2013-2022 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"

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