summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-24 10:01:29 +0800
committerGitHub <noreply@github.com>2020-09-23 21:01:29 -0500
commit7c8cb0117912f1aa5100646d83dbf386e47bfd56 (patch)
tree8edb60ad5f7e032a88ab7d957db518b676cf23dd
parent0b8fb43e3e45f28b9933769cb9462c12ffc3090c (diff)
downloadspack-7c8cb0117912f1aa5100646d83dbf386e47bfd56.tar.gz
spack-7c8cb0117912f1aa5100646d83dbf386e47bfd56.tar.bz2
spack-7c8cb0117912f1aa5100646d83dbf386e47bfd56.tar.xz
spack-7c8cb0117912f1aa5100646d83dbf386e47bfd56.zip
Add new package: cracklib (#18755)
-rw-r--r--var/spack/repos/builtin/packages/cracklib/package.py34
1 files changed, 34 insertions, 0 deletions
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)