Skip to contentSkip to conversation

package/mfoc: new package

PATCH New Louis Aussedat 2 participants 2 messages Dec 20, 2019 – Dec 22, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mfoc: new package

---
 DEVELOPERS             |  1 +
 package/Config.in      |  1 +
 package/mfoc/Config.in |  7 +++++++
 package/mfoc/mfoc.hash |  3 +++
 package/mfoc/mfoc.mk   | 22 ++++++++++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/mfoc/Config.in
 create mode 100644 package/mfoc/mfoc.hash
 create mode 100644 package/mfoc/mfoc.mk
DEVELOPERS +1 -0
index 770888fb23..445171813b 100644
@@ -1428,6 +1428,7 @@ F:	package/ti-sgx-um/
 N:	Louis Aussedat <[email protected]>
 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/
package/Config.in +1 -0
index 4480259af5..f3727452d4 100644
@@ -2282,6 +2282,7 @@ menu "System tools"
 	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"
package/mfoc/Config.in new file +7 -0
new file mode 100644
index 0000000000..4773e456e0
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_MFOC
+	bool "mfoc"
+    select BR2_PACKAGE_LIBNFC
+	help
+	  Mifare Classic Offline Cracker
+
+	  https://github.com/nfc-tools/mfoc
package/mfoc/mfoc.hash new file +3 -0
new file mode 100644
index 0000000000..2358bfd3e0
@@ -0,0 +1,3 @@
+# locally computed
+sha256  2dfd8ffa4a8b357807680d190a91c8cf3db54b4211a781edc1108af401dbaad7  mfoc-0.10.7.tar.gz
+sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  COPYING
package/mfoc/mfoc.mk new file +22 -0
new file mode 100644
index 0000000000..15105a74ab
@@ -0,0 +1,22 @@
+################################################################################
+#
+# 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))
Signature · 1 line
2.24.0
#1 lore raw

PATCH 1/1 package/mfoc: new package

Louis, All,

On 2019-12-20 19:14 +0100, Louis Aussedat spake thusly:

Quoted 1 line

[--SNIP--]

package/mfoc/Config.in line 3

Quoted 9 lines
package/mfoc/Config.in new file +3 -0
new file mode 100644
index 0000000000..4773e456e0
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_MFOC
+	bool "mfoc"
+    select BR2_PACKAGE_LIBNFC

Leading TAB, not sapces; run: make check-package

I've applied with this fixed, thanks.

Regards,
Yann E. MORIN.

Quoted 48 lines
package/mfoc/Config.in new file +4 -0
+	help
+	  Mifare Classic Offline Cracker
+
+	  https://github.com/nfc-tools/mfoc
package/mfoc/mfoc.hash new file +3 -0
new file mode 100644
index 0000000000..2358bfd3e0
@@ -0,0 +1,3 @@
+# locally computed
+sha256  2dfd8ffa4a8b357807680d190a91c8cf3db54b4211a781edc1108af401dbaad7  mfoc-0.10.7.tar.gz
+sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  COPYING
package/mfoc/mfoc.mk new file +22 -0
new file mode 100644
index 0000000000..15105a74ab
@@ -0,0 +1,22 @@
+################################################################################
+#
+# 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))
Signature · 6 lines
2.24.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'