From 18d8e84797c213b8f73fd0a6dcab19bb20285da5 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Fri, 21 Aug 2020 14:18:43 +0000 Subject: [PATCH] Add security/libnitrokey, library to manage nitrokey key PR: 248797 Submitted by: Thibault Payet --- security/Makefile | 1 + security/libnitrokey/Makefile | 25 +++++++++++++++++++++++++ security/libnitrokey/distinfo | 3 +++ security/libnitrokey/pkg-descr | 6 ++++++ security/libnitrokey/pkg-message | 7 +++++++ security/libnitrokey/pkg-plist | 24 ++++++++++++++++++++++++ 6 files changed, 66 insertions(+) create mode 100644 security/libnitrokey/Makefile create mode 100644 security/libnitrokey/distinfo create mode 100644 security/libnitrokey/pkg-descr create mode 100644 security/libnitrokey/pkg-message create mode 100644 security/libnitrokey/pkg-plist diff --git a/security/Makefile b/security/Makefile index 7072397ea4be..1bf3109c8907 100644 --- a/security/Makefile +++ b/security/Makefile @@ -295,6 +295,7 @@ SUBDIR += libkpass SUBDIR += libksba SUBDIR += libmcrypt + SUBDIR += libnitrokey SUBDIR += libntlm SUBDIR += libotr SUBDIR += libotr3 diff --git a/security/libnitrokey/Makefile b/security/libnitrokey/Makefile new file mode 100644 index 000000000000..40e07db9c66d --- /dev/null +++ b/security/libnitrokey/Makefile @@ -0,0 +1,25 @@ +# Created by: Thibault Payet +# $FreeBSD$ + +PORTNAME= libnitrokey +DISTVERSIONPREFIX= v +DISTVERSION= 3.6-RC1 +CATEGORIES= security + +MAINTAINER= monwarez@mailoo.org +COMMENT= Libnitrokey is a project to communicate with Nitrokey devices + +LICENSE= LGPL3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libhidapi.so:comms/hidapi \ + libudev.so:devel/libudev-devd + +USES= cmake pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= Nitrokey + +USE_LDCONFIG= yes + +.include diff --git a/security/libnitrokey/distinfo b/security/libnitrokey/distinfo new file mode 100644 index 000000000000..acf6e29d3244 --- /dev/null +++ b/security/libnitrokey/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1597945114 +SHA256 (Nitrokey-libnitrokey-v3.6-RC1_GH0.tar.gz) = 73e97a0be913f1ad5bdc91c24184bb7eb39cab938e652dd541371fc1b52c8b31 +SIZE (Nitrokey-libnitrokey-v3.6-RC1_GH0.tar.gz) = 97944 diff --git a/security/libnitrokey/pkg-descr b/security/libnitrokey/pkg-descr new file mode 100644 index 000000000000..af2234fb55b8 --- /dev/null +++ b/security/libnitrokey/pkg-descr @@ -0,0 +1,6 @@ +libnitrokey is a project to communicate with Nitrokey Pro and Storage devices +in a clean and easy manner. Written in C++14, testable with py.test +and Catch frameworks, with C API, Python access +(through CFFI and C API, in future with Pybind11). + +WWW: https://github.com/Nitrokey/libnitrokey diff --git a/security/libnitrokey/pkg-message b/security/libnitrokey/pkg-message new file mode 100644 index 000000000000..30f507d46146 --- /dev/null +++ b/security/libnitrokey/pkg-message @@ -0,0 +1,7 @@ +[ +{ type: install + message: <