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/python-dnspython/
F: package/python-future/
F: package/python-huepy/
source "package/lxc/Config.in"
source "package/mender/Config.in"
source "package/mender-grubenv/Config.in"
+ source "package/mfoc/Config.in"
source "package/monit/Config.in"
source "package/ncdu/Config.in"
source "package/netifrc/Config.in"
--- /dev/null
+config BR2_PACKAGE_MFOC
+ bool "mfoc"
+ select BR2_PACKAGE_LIBNFC
+ help
+ Mifare Classic Offline Cracker
+
+ https://github.com/nfc-tools/mfoc
--- /dev/null
+# locally computed
+sha256 2dfd8ffa4a8b357807680d190a91c8cf3db54b4211a781edc1108af401dbaad7 mfoc-0.10.7.tar.gz
+sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
--- /dev/null
+################################################################################
+#
+# mfoc
+#
+################################################################################
+
+MFOC_VERSION = 0.10.7
+MFOC_SITE = $(call github,nfc-tools,mfoc,mfoc-$(MFOC_VERSION))
+MFOC_LICENSE = GPL-2.0
+MFOC_LICENSE_FILES = COPYING
+MFOC_DEPENDENCIES = libnfc
+# Fetching from github, we need to generate the configure script
+MFOC_AUTORECONF = YES
+MFOC_INSTALL_STAGING = YES
+
+# Autoreconf requires an existing m4 directory
+define MFOC_MKDIR_M4
+ mkdir -p $(@D)/m4
+endef
+MFOC_PRE_CONFIGURE_HOOKS += MFOC_MKDIR_M4
+
+$(eval $(autotools-package))