spack/var/spack/repos/builtin/packages/nicstat/package.py
Axel Huebl abbc47823d
SourceForge: Mirror Mixin (#16112)
* SourceForge: Mirror Mixin

Add a mixing class for direct `CNAME`s to sourceforge mirrors.
Since the main gateway servers are often down, this could reduce
timeouts and fetch errors for sourceforge.net hosted software.

* SourceForge: unspectacular mirror replacement

add mirrors to all sourceforge packages with trivial
download logic.

tested fetch of latest version of each of these packages
with various mirrors before committing.

* SourceForge: xz

the author homepage is chronocially overrun and this is the offical
upload with many mirrors.
2020-04-16 21:35:30 -07:00

28 lines
962 B
Python

# Copyright 2013-2020 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 import *
class Nicstat(MakefilePackage, SourceforgePackage):
"""
Nicstat is a Solaris and Linux command-line that prints out network
statistics for all network interface cards (NICs), including packets,
kilobytes per second, average packet sizes and more.
"""
homepage = "https://github.com/scotte/nicstat"
sourceforge_mirror_path = "nicstat/nicstat-1.95.tar.gz"
version('1.95', sha256='c4cc33f8838f4523f27c3d7584eedbe59f4c587f0821612f5ac2201adc18b367')
def edit(self, spec, prefix):
copy('Makefile.Linux', 'makefile')
filter_file(r'CMODEL =\s+-m32', '', 'makefile')
filter_file('sudo', '', 'makefile', string=True)
def install(self, spec, prefix):
install_tree(".", prefix)