summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-02 12:47:15 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-01-03 18:17:38 -0800
commitc1f7eca883ef2bf52554047526eca946de0d9b9c (patch)
treef2be8293fc174066fd758c3a77ab8cffa9e51747
parentgames-mud/gnome-mud-9999: updates (diff)
downloadgentoo-c1f7eca8.tar.gz
gentoo-c1f7eca8.tar.bz2
gentoo-c1f7eca8.zip
app-crypt/nitrocli: New package
This change introduces new ebuilds for the nitrocli program. nitrocli is a command line application that interacts with Nitrokey devices (https://www.nitrokey.com). Nitrokey Pro devices provide an OpenPGP SmartCard with additional functionality such as one-time password support and a password safe. Nitrokey Storage add to that hardware encrypted storage. nitrocli-0.1.3.ebuild installs the most recent released version of the program. Closes: https://bugs.gentoo.org/674200 Closes: https://github.com/gentoo/gentoo/pull/10729 Signed-off-by: Daniel Müller <deso@posteo.net> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
-rw-r--r--app-crypt/nitrocli/Manifest6
-rw-r--r--app-crypt/nitrocli/metadata.xml20
-rw-r--r--app-crypt/nitrocli/nitrocli-0.1.3.ebuild49
3 files changed, 75 insertions, 0 deletions
diff --git a/app-crypt/nitrocli/Manifest b/app-crypt/nitrocli/Manifest
new file mode 100644
index 000000000000..27aed74de43c
--- /dev/null
+++ b/app-crypt/nitrocli/Manifest
@@ -0,0 +1,6 @@
+DIST cc-1.0.25.crate 43191 BLAKE2B 2f715c36150ea81406ac34224ebc5e0b95ba1bc5f80d36e78af6e6f4027521bd5e163c3ff0f08dac8b0791b797e1498c8a1151dfbc72a8a8008546e0b44ecf83 SHA512 0ae0d47c9ceb67aa0ec25b7b98ab4d378bd7a58fb7bbcd9bcc804a0deadcfae904f9353c218d63b8e7046b388c67d5316248accf1f8b69822c0f58ff465652a3
+DIST hid-0.4.1.crate 4121 BLAKE2B 8af6af754c129f3eeaaa35e3b03361fd2a658cdee017701573e79ed40e86900e137ae6a10c844f90ce8c29ecb577d892a8a9b065520eb360734c9bf52bcae6ce SHA512 5529be48d9c0cfb7bdafee029a45fe471cd8996cabe7d584615ccbfea244700a1cf7d78cdaaf8f36ac3d6ddca466d36569fb12e1c1eaaa45091899e57a1d21ce
+DIST hidapi-sys-0.1.4.crate 2391 BLAKE2B 5d8309bad190bdba91aee84239bb0965fdc0093a16a835b99ddfc13633dff6568c66f13c917d9e20cd4e1e453b3dd46ff071f729aba3ea1d99de8388997b193e SHA512 4e2c0a7ee48cb7c7c8bdaaf7c3fd22f58f8995ea2b14caab0cb03efef64711fbe35b435c9f4132e35fb02ea27ee77788be11b3c459f5a290e7297f4d0f9426ac
+DIST libc-0.2.45.crate 349425 BLAKE2B ded7a699266fb8c8003181dbbb0a8ed9fb27613951b72d538e05bf1d262810dac7edb47560d06989d0d24a9cfac18f22744efed44d12452fa41ba68cb4b8e4cc SHA512 8188400f2f9fabd7c1e0dd1172032eb25bde2702019aec4e3e0c8b936209347baea347ff8d85fee3e93031df0741d32faed151c2b553151e95ae8321bb653381
+DIST nitrocli-0.1.3.crate 23497 BLAKE2B a61cbf26ae5503a77c534efcfffadcd56a1ea15dc34fcfff50765fcee1c22b64f54b76d9cf23ce9ec58d37132be13e313e643379f1330e9d43b2e7492fa627db SHA512 43880b6cb9bb152a1179d02b4290ff6c4dbbdae3c5cb46c0c5cdc382d2a5d8322de97d94b1842b6e93bba97bc3d451bc8946da6d6c0b66fb7d9ed8936df2c263
+DIST pkg-config-0.3.14.crate 13565 BLAKE2B bc457c2bee4034e7b5a5303bddf078e0b3e52018eb7513c5fa610ec9b272b95fab6cbbe35281e86bf0f97883526d91dcf8c156ea83e7dc23da0924a395b6c811 SHA512 bf120f0694f44d7b83b431eb28fe14ef3aca4d08ae0c2c9edbf8f184c145ba3faa479a6ab25e2d7e9f9d9f2d9a3fc21674fd4ddfe88bcc4fadad40bd8285656d
diff --git a/app-crypt/nitrocli/metadata.xml b/app-crypt/nitrocli/metadata.xml
new file mode 100644
index 000000000000..d84c39390b85
--- /dev/null
+++ b/app-crypt/nitrocli/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>deso@posteo.net</email>
+ <name>Daniel Müller</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ nitrocli is a command line application that interacts with Nitrokey
+ Pro and Storage devices (see https://www.nitrokey.com/).
+ </longdescription>
+ <upstream>
+ <remote-id type="github">d-e-s-o/nitrocli</remote-id>
+ <bugs-to>https://github.com/d-e-s-o/nitrocli/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/app-crypt/nitrocli/nitrocli-0.1.3.ebuild b/app-crypt/nitrocli/nitrocli-0.1.3.ebuild
new file mode 100644
index 000000000000..1424608aca74
--- /dev/null
+++ b/app-crypt/nitrocli/nitrocli-0.1.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CRATES="
+cc-1.0.25
+hid-0.4.1
+hidapi-sys-0.1.4
+libc-0.2.45
+nitrocli-0.1.3
+pkg-config-0.3.14
+"
+
+inherit cargo
+
+DESCRIPTION="A command line tool for interacting with the Nitrokey Storage"
+HOMEPAGE="https://github.com/d-e-s-o/nitrocli"
+SRC_URI="$(cargo_crate_uris ${CRATES})"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+BDEPEND="
+ >=dev-lang/rust-1.31.0
+"
+DEPEND="
+ dev-libs/hidapi
+"
+# We require gnupg for /usr/bin/gpg-connect-agent.
+RDEPEND="
+ ${DEPEND}
+ app-crypt/gnupg
+"
+
+# Requires a Nitrokey in pristine configuration.
+RESTRICT="test"
+QA_FLAGS_IGNORED="/usr/bin/nitrocli"
+
+src_install() {
+ cargo install -j $(makeopts_jobs) --path=. --root="${D}/usr" $(usex debug --debug "") \
+ || die "cargo install failed"
+ rm "${D}/usr/.crates.toml" || die "failed to remove .crates.toml"
+
+ einstalldocs
+ doman "${S}/doc/nitrocli.1"
+}