From 7c8cb0117912f1aa5100646d83dbf386e47bfd56 Mon Sep 17 00:00:00 2001 From: darmac Date: Thu, 24 Sep 2020 10:01:29 +0800 Subject: Add new package: cracklib (#18755) --- .../repos/builtin/packages/cracklib/package.py | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 var/spack/repos/builtin/packages/cracklib/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/cracklib/package.py b/var/spack/repos/builtin/packages/cracklib/package.py new file mode 100644 index 0000000000..43ae03906a --- /dev/null +++ b/var/spack/repos/builtin/packages/cracklib/package.py @@ -0,0 +1,34 @@ +# 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 Cracklib(AutotoolsPackage): + """CrackLib tests passwords to determine whether they match certain + security-oriented characteristics, with the purpose of stopping users + from choosing passwords that are easy to guess. """ + + homepage = "https://github.com/cracklib/cracklib" + url = "https://github.com/cracklib/cracklib/archive/v2.9.7.tar.gz" + + version('2.9.7', sha256='ff4e6c3f86494c93719f5e4186e2c3ea9e265f41972ec21f7b87852aced704e6') + version('2.9.6', sha256='7cd2c01365f199c466b490ad2585beccbe0108ccd606c1bcc6c1e52800e627fe') + version('2.9.5', sha256='b3fcf3fba2f4566f8eb2b79502d1a66198a71c557d2ab1011c78001489f0fe26') + + depends_on('python', type=('build', 'run')) + depends_on('gettext') + depends_on('fmt') + depends_on('zlib') + + configure_directory = 'src' + + def autoreconf(self, spec, prefix): + with working_dir('src'): + sh = which('sh') + sh('./autogen.sh') + + def setup_run_environment(self, env): + env.prepend_path('PATH', self.prefix.sbin) -- cgit v1.2.3-70-g09d2