pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libfreefare: Import libfreefare-0.4.0 as wip/libfreefare



Module Name:	pkgsrc-wip
Committed By:	Denis Bodor <lefinnois%lefinnois.net@localhost>
Pushed By:	drrb
Date:		Fri May 20 14:17:29 2022 +0200
Changeset:	0cdd8576ca016907f8f41ea41c8d81c89aec5427

Modified Files:
	Makefile
Added Files:
	libfreefare/DESCR
	libfreefare/Makefile
	libfreefare/PLIST
	libfreefare/buildlink3.mk
	libfreefare/distinfo
	libfreefare/patches/patch-libfreefare_mifare__desfire__crypto.c

Log Message:
libfreefare: Import libfreefare-0.4.0 as wip/libfreefare

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0cdd8576ca016907f8f41ea41c8d81c89aec5427

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |   1 +
 libfreefare/DESCR                                  |   2 +
 libfreefare/Makefile                               |  22 ++++
 libfreefare/PLIST                                  | 139 +++++++++++++++++++++
 libfreefare/buildlink3.mk                          |  34 +++++
 libfreefare/distinfo                               |   6 +
 .../patch-libfreefare_mifare__desfire__crypto.c    |  15 +++
 7 files changed, 219 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 6be0a03254..07aaa54193 100644
--- a/Makefile
+++ b/Makefile
@@ -2085,6 +2085,7 @@ SUBDIR+=	libfirm-git
 SUBDIR+=	libfixposix
 SUBDIR+=	libfolks
 SUBDIR+=	libfplll
+SUBDIR+=	libfreefare
 SUBDIR+=	libftdi1
 SUBDIR+=	libgamecommon
 SUBDIR+=	libgamemusic
diff --git a/libfreefare/DESCR b/libfreefare/DESCR
new file mode 100644
index 0000000000..e9d6b36077
--- /dev/null
+++ b/libfreefare/DESCR
@@ -0,0 +1,2 @@
+The libfreefare project aims to provide a convenient API for MIFARE
+card manipulations.
diff --git a/libfreefare/Makefile b/libfreefare/Makefile
new file mode 100644
index 0000000000..94670780ae
--- /dev/null
+++ b/libfreefare/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.3 2021/05/14 14:44:27 nia Exp $
+
+DISTNAME=	libfreefare-0.4.0
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=nfc-tools/libfreefare/releases/download/${DISTNAME}/}
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	lefinnois%lefinnois.net@localhost
+HOMEPAGE=	http://nfc-tools.org/index.php?title=Libfreefare
+COMMENT=	Convenient API for MIFARE card manipulations
+LICENSE=	gnu-lgpl-v3
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	pkg-config
+USE_LANGUAGES+=	c c++
+
+PKGCONFIG_OVERRIDE+=	libfreefare.pc.in
+
+.include "../../wip/libnfc/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libfreefare/PLIST b/libfreefare/PLIST
new file mode 100644
index 0000000000..6d45fc32d1
--- /dev/null
+++ b/libfreefare/PLIST
@@ -0,0 +1,139 @@
+@comment $NetBSD: PLIST,v 1.1 2016/12/16 08:13:01 manu Exp $
+bin/mifare-classic-format
+bin/mifare-classic-read-ndef
+bin/mifare-classic-write-ndef
+bin/mifare-desfire-access
+bin/mifare-desfire-create-ndef
+bin/mifare-desfire-ev1-configure-ats
+bin/mifare-desfire-ev1-configure-default-key
+bin/mifare-desfire-ev1-configure-random-uid
+bin/mifare-desfire-format
+bin/mifare-desfire-info
+bin/mifare-desfire-read-ndef
+bin/mifare-desfire-write-ndef
+bin/mifare-ultralight-info
+include/freefare.h
+lib/libfreefare.la
+lib/pkgconfig/libfreefare.pc
+man/man3/freefare.3
+man/man3/freefare_error.3
+man/man3/freefare_free_tags.3
+man/man3/freefare_get_tag_friendly_name.3
+man/man3/freefare_get_tag_type.3
+man/man3/freefare_get_tag_uid.3
+man/man3/freefare_get_tags.3
+man/man3/freefare_perror.3
+man/man3/freefare_strerror.3
+man/man3/freefare_strerror_r.3
+man/man3/mad.3
+man/man3/mad_free.3
+man/man3/mad_get_aid.3
+man/man3/mad_get_card_publisher_sector.3
+man/man3/mad_get_version.3
+man/man3/mad_new.3
+man/man3/mad_read.3
+man/man3/mad_set_aid.3
+man/man3/mad_set_card_publisher_sector.3
+man/man3/mad_set_version.3
+man/man3/mad_write.3
+man/man3/mifare_application.3
+man/man3/mifare_application_alloc.3
+man/man3/mifare_application_find.3
+man/man3/mifare_application_free.3
+man/man3/mifare_application_read.3
+man/man3/mifare_application_write.3
+man/man3/mifare_classic.3
+man/man3/mifare_classic_authenticate.3
+man/man3/mifare_classic_connect.3
+man/man3/mifare_classic_decrement.3
+man/man3/mifare_classic_disconnect.3
+man/man3/mifare_classic_format_sector.3
+man/man3/mifare_classic_get_data_block_permission.3
+man/man3/mifare_classic_get_trailer_block_permission.3
+man/man3/mifare_classic_get_uid.3
+man/man3/mifare_classic_increment.3
+man/man3/mifare_classic_init_value.3
+man/man3/mifare_classic_read.3
+man/man3/mifare_classic_read_value.3
+man/man3/mifare_classic_restore.3
+man/man3/mifare_classic_trailer_block.3
+man/man3/mifare_classic_transfer.3
+man/man3/mifare_classic_write.3
+man/man3/mifare_desfire.3
+man/man3/mifare_desfire_3des_key_new.3
+man/man3/mifare_desfire_3des_key_new_with_version.3
+man/man3/mifare_desfire_3k3des_key_new.3
+man/man3/mifare_desfire_3k3des_key_new_with_version.3
+man/man3/mifare_desfire_abort_transaction.3
+man/man3/mifare_desfire_aes_key_new.3
+man/man3/mifare_desfire_aes_key_new_with_version.3
+man/man3/mifare_desfire_aid.3
+man/man3/mifare_desfire_aid_get_aid.3
+man/man3/mifare_desfire_aid_new.3
+man/man3/mifare_desfire_aid_new_with_mad_aid.3
+man/man3/mifare_desfire_authenticate.3
+man/man3/mifare_desfire_authenticate_aes.3
+man/man3/mifare_desfire_authenticate_iso.3
+man/man3/mifare_desfire_change_file_settings.3
+man/man3/mifare_desfire_change_key.3
+man/man3/mifare_desfire_change_key_settings.3
+man/man3/mifare_desfire_clear_record_file.3
+man/man3/mifare_desfire_commit_transaction.3
+man/man3/mifare_desfire_connect.3
+man/man3/mifare_desfire_create_application.3
+man/man3/mifare_desfire_create_backup_data_file.3
+man/man3/mifare_desfire_create_cyclic_record_file.3
+man/man3/mifare_desfire_create_linear_record_file.3
+man/man3/mifare_desfire_create_std_data_file.3
+man/man3/mifare_desfire_create_value_file.3
+man/man3/mifare_desfire_credit.3
+man/man3/mifare_desfire_credit_ex.3
+man/man3/mifare_desfire_debit.3
+man/man3/mifare_desfire_debit_ex.3
+man/man3/mifare_desfire_delete_application.3
+man/man3/mifare_desfire_delete_file.3
+man/man3/mifare_desfire_des_key_new.3
+man/man3/mifare_desfire_des_key_new_with_version.3
+man/man3/mifare_desfire_disconnect.3
+man/man3/mifare_desfire_format_picc.3
+man/man3/mifare_desfire_free_application_ids.3
+man/man3/mifare_desfire_free_mem.3
+man/man3/mifare_desfire_get_application_ids.3
+man/man3/mifare_desfire_get_card_uid.3
+man/man3/mifare_desfire_get_file_ids.3
+man/man3/mifare_desfire_get_file_settings.3
+man/man3/mifare_desfire_get_key_settings.3
+man/man3/mifare_desfire_get_key_version.3
+man/man3/mifare_desfire_get_value.3
+man/man3/mifare_desfire_get_value_ex.3
+man/man3/mifare_desfire_get_version.3
+man/man3/mifare_desfire_key.3
+man/man3/mifare_desfire_key_free.3
+man/man3/mifare_desfire_key_get_version.3
+man/man3/mifare_desfire_key_set_version.3
+man/man3/mifare_desfire_last_pcd_error.3
+man/man3/mifare_desfire_last_picc_error.3
+man/man3/mifare_desfire_limited_credit.3
+man/man3/mifare_desfire_limited_credit_ex.3
+man/man3/mifare_desfire_read_data.3
+man/man3/mifare_desfire_read_data_ex.3
+man/man3/mifare_desfire_read_records.3
+man/man3/mifare_desfire_read_records_ex.3
+man/man3/mifare_desfire_select_application.3
+man/man3/mifare_desfire_set_ats.3
+man/man3/mifare_desfire_set_configuration.3
+man/man3/mifare_desfire_set_default_key.3
+man/man3/mifare_desfire_write_data.3
+man/man3/mifare_desfire_write_data_ex.3
+man/man3/mifare_desfire_write_record.3
+man/man3/mifare_desfire_write_record_ex.3
+man/man3/mifare_ultralight.3
+man/man3/mifare_ultralight_connect.3
+man/man3/mifare_ultralight_disconnect.3
+man/man3/mifare_ultralight_get_uid.3
+man/man3/mifare_ultralight_read.3
+man/man3/mifare_ultralight_write.3
+man/man3/mifare_ultralightc_authenticate.3
+man/man3/tlv.3
+man/man3/tlv_decode.3
+man/man3/tlv_encode.3
diff --git a/libfreefare/buildlink3.mk b/libfreefare/buildlink3.mk
new file mode 100644
index 0000000000..c9e0c795b5
--- /dev/null
+++ b/libfreefare/buildlink3.mk
@@ -0,0 +1,34 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libfreefare
+
+.if !defined(LIBFREEFARE_BUILDLINK3_MK)
+LIBFREEFARE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libfreefare+=	libfreefare>=0.4.0
+BUILDLINK_ABI_DEPENDS.libfreefare+=	libfreefare>=0.4.0
+BUILDLINK_PKGSRCDIR.libfreefare?=	../../wip/libfreefare
+
+#pkgbase :=	libnfc
+#.include "../../mk/pkg-build-options.mk"
+#
+#.if !empty(PKG_BUILD_OPTIONS.libnfc:Mpcsc)
+#.include "../../security/pcsc-lite/buildlink3.mk"
+#.endif
+#
+#.if !empty(PKG_BUILD_OPTIONS.libnfc:Macr122_pcsc)
+#.include "../../security/pcsc-lite/buildlink3.mk"
+#.endif
+#
+#.if !empty(PKG_BUILD_OPTIONS.libnfc:Macr122_usb)
+#.include "../../mk/libusb.buildlink3.mk"
+#.endif
+#
+#.if !empty(PKG_BUILD_OPTIONS.libnfc:Mpn53x_usb)
+#.include "../../mk/libusb.buildlink3.mk"
+#.endif
+
+#.include "../../devel/readline/buildlink3.mk"
+.endif # LIBFREEFARE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libfreefare
diff --git a/libfreefare/distinfo b/libfreefare/distinfo
new file mode 100644
index 0000000000..083db440a6
--- /dev/null
+++ b/libfreefare/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.3 2021/10/26 10:15:20 nia Exp $
+
+BLAKE2s (libfreefare-0.4.0.tar.bz2) = 089f08f352a7e3a95d179d205f1d30e9db153d231a4e1a7ba6e4ebc7e42784a7
+SHA512 (libfreefare-0.4.0.tar.bz2) = 25ea813ade68587beb5de6ea69675722ed522246c54e58e4d61f2389dd9c1f938681b36e8fd124d6158fbc6f55fe4ce699d385b7bfb17062474a890634b351ea
+Size (libfreefare-0.4.0.tar.bz2) = 386294 bytes
+SHA1 (patch-libfreefare_mifare__desfire__crypto.c) = 7fee54385f8f46829e11c2af906e03d1ed3eb67b
diff --git a/libfreefare/patches/patch-libfreefare_mifare__desfire__crypto.c b/libfreefare/patches/patch-libfreefare_mifare__desfire__crypto.c
new file mode 100644
index 0000000000..bfb703e913
--- /dev/null
+++ b/libfreefare/patches/patch-libfreefare_mifare__desfire__crypto.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix warning about implicite declaration
+
+--- libfreefare/mifare_desfire_crypto.c.orig	2022-05-13 14:33:06.661095334 +0000
++++ libfreefare/mifare_desfire_crypto.c
+@@ -60,6 +60,8 @@
+ #include <string.h>
+ #include <strings.h>
+ 
++#include <stdlib.h>
++
+ #ifdef WITH_DEBUG
+ #  include <libutil.h>
+ #endif


Home | Main Index | Thread Index | Old Index