blob: 72bb8ab5236eb5e0ba196d9a1d1802ee58db49c0 (
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-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 CniPlugins(Package):
"""Standard networking plugins for container networking"""
homepage = 'https://github.com/containernetworking/plugins'
url = 'https://github.com/containernetworking/plugins/archive/v1.0.1.tar.gz'
maintainers = ['bernhardkaindl']
version('1.0.1', sha256='2ba3cd9f341a7190885b60d363f6f23c6d20d975a7a0ab579dd516f8c6117619')
depends_on('go', type='build')
def install(self, spec, prefix):
utils = 'github.com/containernetworking/plugins/pkg/utils/buildversion'
which('./build_linux.sh')(
'-ldflags',
'-extldflags -static -X {0}.BuildVersion={1}'.format(utils, self.version),
)
install_tree('bin', prefix.bin)
|