pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
import libnitrokey
Module Name: pkgsrc-wip
Committed By: nikita <nikita%NetBSD.org@localhost>
Pushed By: nikita
Date: Thu Apr 27 23:11:07 2023 +0200
Changeset: a5972c9ab0fe3e612e0fecd666d498de599b269a
Added Files:
libnitrokey/DESCR
libnitrokey/Makefile
libnitrokey/PLIST
libnitrokey/distinfo
libnitrokey/options.mk
Log Message:
import libnitrokey
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a5972c9ab0fe3e612e0fecd666d498de599b269a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libnitrokey/DESCR | 8 ++++++++
libnitrokey/Makefile | 35 +++++++++++++++++++++++++++++++++++
libnitrokey/PLIST | 0
libnitrokey/distinfo | 5 +++++
libnitrokey/options.mk | 13 +++++++++++++
5 files changed, 61 insertions(+)
diffs:
diff --git a/libnitrokey/DESCR b/libnitrokey/DESCR
new file mode 100644
index 0000000000..6228780223
--- /dev/null
+++ b/libnitrokey/DESCR
@@ -0,0 +1,8 @@
+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).
+
+The development of this project is aimed to make it itself a living
+documentation of communication protocol between host and the Nitrokey stick
+devices.
diff --git a/libnitrokey/Makefile b/libnitrokey/Makefile
new file mode 100644
index 0000000000..ee3cd9513a
--- /dev/null
+++ b/libnitrokey/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD$
+
+DISTNAME= libnitrokey-3.8
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_GITHUB:=Nitrokey/}
+GITHUB_PROJECT= libnitrokey
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/Nitrokey/libnitrokey/
+COMMENT= Library to communicate with Nitrokey devices
+LICENSE= gnu-lgpl-v3
+
+USE_TOOLS+= pkg-config
+
+.include "options.mk"
+# libudev-devd
+
+# These tests do not require any device to be connected
+# -DCOMPILE_OFFLINE_TESTS=ON
+# catch2
+
+# actual hardware tests
+# 1. require a connected Nitrokey
+# 2. may kill data on your Nitrokey
+# hence the main testsuite is disabled
+CMAKE_ARGS+= -DCOMPILE_TESTS=OFF
+
+TEST_TARGET= test
+USE_LANGUAGES= c c++14
+
+.include "../../devel/libusb1/buildlink3.mk"
+.include "../../comms/libhidapi/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libnitrokey/PLIST b/libnitrokey/PLIST
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/libnitrokey/distinfo b/libnitrokey/distinfo
new file mode 100644
index 0000000000..4ecfc24157
--- /dev/null
+++ b/libnitrokey/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (libnitrokey-3.8.tar.gz) = d7c2b3c779809b63028c7f1f927f4b8c108d6616cdf00a09ab0c5354e5095eae
+SHA512 (libnitrokey-3.8.tar.gz) = 30f966eed77aa75057b096d18f8e88d6be28a376dfc1888e44aff80347e031a16755d30acf1bca196acc5b922778d90627ac71cba22f5cb002ba3ec058939c90
+Size (libnitrokey-3.8.tar.gz) = 118197 bytes
diff --git a/libnitrokey/options.mk b/libnitrokey/options.mk
new file mode 100644
index 0000000000..391fe1acf4
--- /dev/null
+++ b/libnitrokey/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.py-pynitrokey
+
+PKG_SUPPORTED_OPTIONS+= doc
+
+.include "../../mk/bsd.options.mk"
+
+.if ${PKG_OPTIONS:Mdoc}
+DEPENDS+= doxygen-[0-9]*:../../devel/doxygen
+DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz
+# else switch this off in cmake
+.endif
Home |
Main Index |
Thread Index |
Old Index