summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-08-10 00:12:24 +0200
committerMichał Górny <mgorny@gentoo.org>2019-08-10 00:42:00 +0200
commit97daa7ed391e17899df90ac230cbce1e14074126 (patch)
treee0ef26d86562a9aac62933bdd7244c7c4f35a4c5
parentkde-frameworks/kconfig: arm64 stable (bug #691858) (diff)
downloadgentoo-97daa7ed391e17899df90ac230cbce1e14074126.tar.gz
gentoo-97daa7ed391e17899df90ac230cbce1e14074126.tar.bz2
gentoo-97daa7ed391e17899df90ac230cbce1e14074126.zip
app-crypt/virtualsmartcard: New package
Add a new package: virtual smart card emulator that can be used to use Remote Smart Card Reader (for Android's NFC reader) with pcsc-lite. Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--app-crypt/virtualsmartcard/Manifest1
-rw-r--r--app-crypt/virtualsmartcard/metadata.xml8
-rw-r--r--app-crypt/virtualsmartcard/virtualsmartcard-0.7.ebuild36
3 files changed, 45 insertions, 0 deletions
diff --git a/app-crypt/virtualsmartcard/Manifest b/app-crypt/virtualsmartcard/Manifest
new file mode 100644
index 00000000000..dc8487e5334
--- /dev/null
+++ b/app-crypt/virtualsmartcard/Manifest
@@ -0,0 +1 @@
+DIST virtualsmartcard-0.7.tar.gz 553122 BLAKE2B 5f7ceab19587808f2cabee87f200825d81043724cfb51ddc4ea2b86ec4df1dfae3e7e77b769b9f1e691e125ee2c7bbd6d83da79f1c5215308174f58f6b006cf0 SHA512 c6f357c26dbfa2859694f53b07bc621bf0fce0115a06db9c181dc9ea127eb32191b9c98472b27cca73bc747a5cc85d56ec19b06aa50b91d13a939308a46cac74
diff --git a/app-crypt/virtualsmartcard/metadata.xml b/app-crypt/virtualsmartcard/metadata.xml
new file mode 100644
index 00000000000..0319eec4c8b
--- /dev/null
+++ b/app-crypt/virtualsmartcard/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-crypt/virtualsmartcard/virtualsmartcard-0.7.ebuild b/app-crypt/virtualsmartcard/virtualsmartcard-0.7.ebuild
new file mode 100644
index 00000000000..bdca2e57f43
--- /dev/null
+++ b/app-crypt/virtualsmartcard/virtualsmartcard-0.7.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1 toolchain-funcs
+
+DESCRIPTION="Smart card emulator, can be used with Remote Smart Card Reader"
+HOMEPAGE="https://frankmorgner.github.io/vsmartcard/"
+SRC_URI="https://github.com/frankmorgner/vsmartcard/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ media-gfx/qrencode:=
+ sys-apps/pcsc-lite"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-apps/help2man
+ virtual/pkgconfig"
+
+src_configure() {
+ local myconf=(
+ # workaround buggy prefix logic
+ --enable-serialconfdir=$($(tc-getPKG_CONFIG) libpcsclite \
+ --variable=serialconfdir)
+ --enable-serialdropdir=$($(tc-getPKG_CONFIG) libpcsclite \
+ --variable=usbdropdir)/serial
+ )
+
+ econf "${myconf[@]}"
+}