package/libpam-nfc: new package
authorLouis Aussedat <aussedat.louis@gmail.com>
Sun, 22 Dec 2019 12:05:00 +0000 (13:05 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 22 Dec 2019 13:16:29 +0000 (14:16 +0100)
Signed-off-by: Louis Aussedat <aussedat.louis@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
DEVELOPERS
package/Config.in
package/libpam-nfc/Config.in [new file with mode: 0644]
package/libpam-nfc/libpam-nfc.hash [new file with mode: 0644]
package/libpam-nfc/libpam-nfc.mk [new file with mode: 0644]

index d2089e2672ce8e103ec3dc8194f903c72a065f2d..a67dca3e6fb9a5a19bc0e887dbdbd3c0181e80c8 100644 (file)
@@ -1429,6 +1429,7 @@ N:        Louis Aussedat <aussedat.louis@gmail.com>
 F:     board/friendlyarm/nanopi-neo-plus2/
 F:     configs/friendlyarm_nanopi_neo_plus2_defconfig
 F:     package/mfoc
+F:     package/libpam-nfc
 F:     package/python-dnspython/
 F:     package/python-future/
 F:     package/python-huepy/
index 2bfec097025c883073dca23cbbcf4c1a5c370f97..9f12470b22160e5e355aa7baa1f9976e51013150 100644 (file)
@@ -1805,6 +1805,7 @@ menu "Other"
        source "package/linux-pam/Config.in"
 if BR2_PACKAGE_LINUX_PAM
 comment "linux-pam plugins"
+       source "package/libpam-nfc/Config.in"
        source "package/libpam-radius-auth/Config.in"
        source "package/libpam-tacplus/Config.in"
 endif
diff --git a/package/libpam-nfc/Config.in b/package/libpam-nfc/Config.in
new file mode 100644 (file)
index 0000000..ce3a3ee
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBPAM_NFC
+       bool "libpam-nfc"
+       select BR2_PACKAGE_LIBNFC
+       help
+         NFC-based PAM authentification module.
+
+         https://github.com/nfc-tools/pam_nfc
diff --git a/package/libpam-nfc/libpam-nfc.hash b/package/libpam-nfc/libpam-nfc.hash
new file mode 100644 (file)
index 0000000..27896ef
--- /dev/null
@@ -0,0 +1,3 @@
+# locally computed
+sha256  f44273944f1ecc78b10b65147328860836b60fe4bb8c39819e32199f2870d48b  libpam-nfc-bb762e0e649195110e015ffb605c4375e927c437.tar.gz
+sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  COPYING
diff --git a/package/libpam-nfc/libpam-nfc.mk b/package/libpam-nfc/libpam-nfc.mk
new file mode 100644 (file)
index 0000000..fc283c8
--- /dev/null
@@ -0,0 +1,28 @@
+################################################################################
+#
+# libpam-nfc
+#
+################################################################################
+
+LIBPAM_NFC_VERSION = bb762e0e649195110e015ffb605c4375e927c437
+LIBPAM_NFC_SITE = $(call github,nfc-tools,pam_nfc,$(LIBPAM_NFC_VERSION))
+LIBPAM_NFC_LICENSE = GPL-2.0
+LIBPAM_NFC_LICENSE_FILES = COPYING
+LIBPAM_NFC_DEPENDENCIES = linux-pam libnfc
+# Fetching from github, we need to generate the configure script
+LIBPAM_NFC_AUTORECONF = YES
+LIBPAM_NFC_INSTALL_STAGING = YES
+
+LIBPAM_NFC_CONF_OPTS = \
+       --with-pam-dir=/lib/security
+
+# libpam breaks with parallel build, but is very fast to build.
+LIBPAM_NFC_MAKE = $(MAKE1)
+
+# Autoreconf requires an existing m4 directory
+define LIBPAM_NFC_MKDIR_M4
+       mkdir -p $(@D)/m4
+endef
+LIBPAM_NFC_PRE_CONFIGURE_HOOKS += LIBPAM_NFC_MKDIR_M4
+
+$(eval $(autotools-package))