spack/var/spack/repos/builtin/packages/libcap/package.py
Todd Gamblin 62927654dd checksums: use sha256 checksums everywhere
We'd like to use a consistent checksum scheme everywhere so that we can:

    a) incorporate archive checksums into our specs and have a
       consistent hashing algorithm across all specs.

    b) index mirrors with a consistent type of checksum, and not one that
       is dependent on how spack packages are written.

- [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
2019-10-12 07:19:43 -07:00

33 lines
1.1 KiB
Python

# Copyright 2013-2019 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 Libcap(MakefilePackage):
"""Libcap implements the user-space interfaces to the POSIX 1003.1e
capabilities available in Linux kernels. These capabilities are a
partitioning of the all powerful root privilege into a set of
distinct privileges."""
homepage = "https://sites.google.com/site/fullycapable/"
url = "https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.25.tar.gz"
version('2.25', sha256='4ca80dc6f9f23d14747e4b619fd9784434c570e24a7346f326c692784ed83a86')
patch('libcap-fix-the-libcap-native-building-failure-on-CentOS-6.7.patch')
def install(self, spec, prefix):
make_args = [
'RAISE_SETFCAP=no',
'lib=lib',
'prefix={0}'.format(prefix),
'install'
]
make(*make_args)
chmod = which('chmod')
chmod('+x', join_path(prefix.lib, 'libcap.so'))