diff options
Diffstat (limited to 'app-crypt/coolkey')
-rw-r--r-- | app-crypt/coolkey/Manifest | 6 | ||||
-rw-r--r-- | app-crypt/coolkey/coolkey-1.1.0-r7.ebuild | 78 | ||||
-rw-r--r-- | app-crypt/coolkey/metadata.xml | 8 |
3 files changed, 92 insertions, 0 deletions
diff --git a/app-crypt/coolkey/Manifest b/app-crypt/coolkey/Manifest new file mode 100644 index 000000000000..6a2caaeda8fd --- /dev/null +++ b/app-crypt/coolkey/Manifest @@ -0,0 +1,6 @@ +DIST coolkey-1.1.0-patches-003.tar.gz 21263 SHA256 af04f104a2ababe5b4cc7cd9e870918c24b2baa2599ddfe7a8eb0114b63428e0 SHA512 25a5fac68ca041fcf9e927d134d0179fa286e6de75019e7bbf205edeaf73222d9fb9fd3861a8f6e0d933d1a09229e3e727278c3a9b3cc63390ef07774c46390d WHIRLPOOL c272e01c61ec66c2f06b75370ffca33c067b0fbfea16284b8696484dd80b161ec86688a9b4af5ae433e9582ebc914bc10ee4d387dc920e989a93b514ce881746 +DIST coolkey-1.1.0.tar.gz 432808 SHA256 8448e3abb81bffc593c96b577dcfbc05b40e8684188456c31be15fae73d730f7 SHA512 4b61de9b40abcf620fbb519d5e3cf1e93ebdd0470854cb63a597fc91e0182998217353014327f7bc4f255d22515d8ea2b08d36b3a831f5f09134fdcd418bc08b WHIRLPOOL 60408f606a5cf5d9ec1ba3938a96a6f938c8d9f4b7ace2677ff35ce125104995675bf0decae92575e82dfc1a2eeaa26c4197ad174a4d3901250c43d906976c24 +EBUILD coolkey-1.1.0-r7.ebuild 1947 SHA256 0b6c37b79d0543ed96a1a411d9b283141c5f7d0f21e739290bdeb9dfff6ce6e1 SHA512 7997511e43ffa4969a05523cbdfe5c757ed5bc80ca284bc072f5f78ba4ba9841df04835e2cf90a3142d8d2f8a2dde22becc37be3590462387c44aadcd09b8f35 WHIRLPOOL 7a6d6034a78c885250987275aa4293b190ee879a0a499f4f00f84b93966051d742140380f6ab51e678bdd4855ceecd19e7fce36b39189b0c77148089c7212b4a +MISC ChangeLog 2774 SHA256 3d03b09bc51bb31f868b876613310414dec77e969b7f14a5f28c38d042bce751 SHA512 33f47969f59c284b9d8be4225d135cb1393137124bd8d9a036ed11721692e47fe09a01e22acce244e6c3cd46459ff8ebdf5a56ccc85c92fcc12d3dd22cfca452 WHIRLPOOL ce5598f17262d547d2b816deadf1a308ed56a6aeafd9690e04f84653f1a0d2e2d8fbb0bceeeba9008f0dc77a83d0a5b1f9bdbbb750847159e9bfa5c5a03bfeec +MISC ChangeLog-2015 3298 SHA256 efc372dc58ff4f2473fc0c07eb40a409be5f1ed037c49cc9576d0880f2e548b7 SHA512 95e7210b6dd0c5b270cefd5583c1c038b49653ebd8cb9affb82f2000a6fa6ec3b315e98e799f8a4e014028bff375f5575c35719ee1ecfd7064ab2ef14f77ee2b WHIRLPOOL abea4e508cf605790c0fd0aa562eb871222e81ba2b8b444d7c90fafaee2343cb9443e750b6237ce6f72fbb32960d5c1dc90fb7e4b76daff7b99906a778e04df0 +MISC metadata.xml 236 SHA256 dd25b46c95b0c63da84b7ff5778479e31449a385df066e9ee14bf0d7d176f42f SHA512 5f6cd6a85527534d5de7118de5af212ee3044c8c5530a7f7087a28074a2d4ab7be1728325bd985adc063dc795d3cf2b1c4e58a4c4c4ec02d739bd4bbc544ef08 WHIRLPOOL b15a2dfb001c41c8de2895842148b2531b74949e89e93ff8c366519c35792996e344918eaf9144fb081fc240796e47890be356d2339bea60b1e1d41830447d31 diff --git a/app-crypt/coolkey/coolkey-1.1.0-r7.ebuild b/app-crypt/coolkey/coolkey-1.1.0-r7.ebuild new file mode 100644 index 000000000000..79c08285e155 --- /dev/null +++ b/app-crypt/coolkey/coolkey-1.1.0-r7.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PATCHVER="003" + +DESCRIPTION="Linux Driver support for the CoolKey and CAC products" +HOMEPAGE="https://directory.fedora.redhat.com/wiki/CoolKey" +SRC_URI="https://directory.fedora.redhat.com/download/coolkey/${P}.tar.gz + mirror://gentoo/${P}-patches-${PATCHVER}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug" + +RDEPEND=">=sys-apps/pcsc-lite-1.6.4 + dev-libs/nss[utils] + sys-libs/zlib" + +DEPEND="${RDEPEND} + >=app-crypt/ccid-1.4.0 + virtual/pkgconfig" + +PATCHES=( + "${WORKDIR}/${PN}-patches" +) + +pkg_setup() { + pk="pk11install" + dbdir="/etc/pki/nssdb" + ck_mod_name="CoolKey PKCS #11 Module" + + if ! [[ -x $dbdir ]]; then + ewarn "No /etc/pki/nssdb found; check under \$HOME/.pki and" + ewarn "follow the suggested commands using the correct path." + fi +} + +src_configure() { + econf \ + --enable-pk11install \ + $(use_enable debug) +} + +src_compile() { + emake CFLAGS+="-fno-strict-aliasing" -j1 +} + +pkg_postinst() { + if [[ -x $dbdir ]]; then + if ! $(modutil -rawlist -dbdir $dbdir | grep libcoolkeypk11); then + elog "You still need to install libcoolkey in your PKCS11 library:" + elog "$pk -p $dbdir 'name=$ck_mod_name library=libcoolkeypk11.so'" + + fi + else + elog "" + elog "You still need to setup your PKCS11 library, or at least" + elog "find where it is (perhaps \$HOME/.pki/nssdb). Once you" + elog "find it, use 'modutil -rawlist -dbdir \$db' to look for" + elog "libcoolkeypk11.so, and if not found, add it using:" + elog "" + elog "$pk -p \$db 'name=$ck_mod_name library=libcoolkeypk11.so'" + elog "" + elog "where \$db is the full path to your pki/nssdb directory." + elog "" + fi +} + +pkg_postrm() { + if [[ -x $dbdir ]]; then + if $(modutil -rawlist -dbdir $dbdir | grep libcoolkeypk11); then + elog "You should remove libcoolkey from your PKCS11 library." + fi + fi +} diff --git a/app-crypt/coolkey/metadata.xml b/app-crypt/coolkey/metadata.xml new file mode 100644 index 000000000000..f1c3d59fb213 --- /dev/null +++ b/app-crypt/coolkey/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="project"> + <email>crypto@gentoo.org</email> + <name>Crypto</name> +</maintainer> +</pkgmetadata> |