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/
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
--- /dev/null
+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
--- /dev/null
+################################################################################
+#
+# 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))