New package: device-mapper (#12406)
* bump eospac version
* Revert "bump eospac version"
This reverts commit 835b1f822d
.
* new package: device-mapper
* address comments by @hartzell
* extraneous whitespace
* capitalization
* device-mapper -> lvm2
* unprovide device-mapper
* address comments by @adamjstewart
* address comments by @adamjstewart
This commit is contained in:
parent
da21d27712
commit
0c5f5d4d0d
47
var/spack/repos/builtin/packages/lvm2/package.py
Normal file
47
var/spack/repos/builtin/packages/lvm2/package.py
Normal file
@ -0,0 +1,47 @@
|
||||
# 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 Lvm2(AutotoolsPackage):
|
||||
"""LVM2 is the userspace toolset that provides logical volume
|
||||
management facilities on linux. To use it you need 3 things:
|
||||
device-mapper in your kernel, the userspace device-mapper support
|
||||
library (libdevmapper) and the userspace LVM2 tools (dmsetup). These
|
||||
userspace components, and associated header files, are provided by this
|
||||
package. See http://sources.redhat.com/dm/ for additional information
|
||||
about the device-mapper kernel and userspace components."""
|
||||
|
||||
homepage = "https://www.sourceware.org/lvm2"
|
||||
url = "https://sourceware.org/pub/lvm2/releases/LVM2.2.03.05.tgz"
|
||||
|
||||
version('2.03.05', sha256='ca52815c999b20c6d25e3192f142f081b93d01f07b9d787e99664b169dba2700')
|
||||
version('2.03.04', sha256='f151f36fc0039997d2d9369b607b9262568b1a268afe19fd1535807355402142')
|
||||
version('2.03.03', sha256='cedefa63ec5ae1b62fedbfddfc30706c095be0fc7c6aaed6fd1c50bc8c840dde')
|
||||
version('2.03.02', sha256='550ba750239fd75b7e52c9877565cabffef506bbf6d7f6f17b9700dee56c720f')
|
||||
version('2.03.01', sha256='424e58b074195ec08e0315fa1aff2550590998c33aea5c43bdceb8c1d135530b')
|
||||
version('2.03.00', sha256='405992bf76960e60c7219d84d5f1e22edc34422a1ea812e21b2ac3c813d0da4e')
|
||||
|
||||
def url_for_version(self, version):
|
||||
url = "https://sourceware.org/pub/lvm2/releases/LVM2.{0}.tgz"
|
||||
return url.format(version)
|
||||
|
||||
variant('pkgconfig', default=True,
|
||||
description='install pkgconfig support')
|
||||
|
||||
depends_on('libaio')
|
||||
depends_on('pkgconfig', type='build', when='+pkgconfig')
|
||||
|
||||
def configure_args(self):
|
||||
args = ['--with-confdir={0}'.
|
||||
format(self.prefix.etc),
|
||||
'--with-default-system-dir={0}'.
|
||||
format(self.prefix.etc.lvm)]
|
||||
if self.spec.satisfies('+pkgconfig'):
|
||||
args.append('--enable-pkgconfig')
|
||||
else:
|
||||
args.append('--disable-pkgconfig')
|
||||
return args
|
Loading…
Reference in New Issue
Block a user