summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-01 11:19:48 +0800
committerGitHub <noreply@github.com>2020-09-01 05:19:48 +0200
commit49b47864e9c7d4b501fe024eb9454e7bec164899 (patch)
treec968412b0408af84f5be6aa68bbbbd91f5fd33cb
parent16e3e28cc8bfb16f14986d82a2cc63f4f28c01c9 (diff)
downloadspack-49b47864e9c7d4b501fe024eb9454e7bec164899.tar.gz
spack-49b47864e9c7d4b501fe024eb9454e7bec164899.tar.bz2
spack-49b47864e9c7d4b501fe024eb9454e7bec164899.tar.xz
spack-49b47864e9c7d4b501fe024eb9454e7bec164899.zip
libpam: added new package at v1.0.9 (#18418)
-rw-r--r--var/spack/repos/builtin/packages/libpam/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libpam/package.py b/var/spack/repos/builtin/packages/libpam/package.py
new file mode 100644
index 0000000000..a4e131f7a7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libpam/package.py
@@ -0,0 +1,28 @@
+# 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 Libpam(AutotoolsPackage):
+ """Example PAM module demonstrating two-factor authentication for
+ logging into servers via SSH, OpenVPN, etc"""
+
+ homepage = "https://github.com/google/google-authenticator-libpam"
+ url = "https://github.com/google/google-authenticator-libpam/archive/1.09.tar.gz"
+
+ version('1.09', sha256='ab1d7983413dc2f11de2efa903e5c326af8cb9ea37765dacb39949417f7cd037')
+ version('1.08', sha256='6f6d7530261ba9e2ece84214f1445857d488b7851c28a58356b49f2d9fd36290')
+ version('1.07', sha256='104a158e013585e20287f8d33935e93c711b96281e6dda621a5c19575d0b0405')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+ depends_on('linux-pam')
+
+ def autoreconf(self, spec, prefix):
+ bash = which('bash')
+ bash('./bootstrap.sh')