summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2019-01-05 21:13:11 +0200
committerAlon Bar-Lev <alonbl@gentoo.org>2019-01-05 21:13:43 +0200
commit1cbbb03846f2a240cc011b59199522231b0e0105 (patch)
tree9eb9ce9eb582d3007c713f0cc136ba6918842365 /app-crypt/gnupg-pkcs11-scd
parentnet-fs/openafs: fix broken Manifest (diff)
downloadgentoo-1cbbb03846f2a240cc011b59199522231b0e0105.tar.gz
gentoo-1cbbb03846f2a240cc011b59199522231b0e0105.tar.bz2
gentoo-1cbbb03846f2a240cc011b59199522231b0e0105.zip
app-crypt/gnupg-pkcs11-scd: version bump
Closes: https://bugs.gentoo.org/show_bug.cgi?id=674576 Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'app-crypt/gnupg-pkcs11-scd')
-rw-r--r--app-crypt/gnupg-pkcs11-scd/Manifest1
-rw-r--r--app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/app-crypt/gnupg-pkcs11-scd/Manifest b/app-crypt/gnupg-pkcs11-scd/Manifest
index fb93241df121..c0d5534a2f65 100644
--- a/app-crypt/gnupg-pkcs11-scd/Manifest
+++ b/app-crypt/gnupg-pkcs11-scd/Manifest
@@ -1 +1,2 @@
DIST gnupg-pkcs11-scd-0.9.1.tar.bz2 145814 BLAKE2B 53f0c11d401071dc9beef10630c07f2da6c9a70a0cb020c4430613c1c2f6ba7447bd95c490098ec688e5c73260c42a0285ed045a54d8397018611f00d5406b27 SHA512 66ac4b2d4ed2106bb0bfe40bac00cdffc36f7f10ace15a232ba475d1a152439fca2bde3f7a6eaaae8b9f17fb3e6371207f2e689d3d9557817ef54984858a3489
+DIST gnupg-pkcs11-scd-0.9.2.tar.bz2 147361 BLAKE2B 875c0c570bba9b191780138094d058effda5727fa599c80649872acb15469d6a334b52d45d41ba69d5793edae526cd6eed5f89720cf4dc857b176af6b74e8014 SHA512 2fd25edee7b907975e327ae508bd539f53de2178fe7c9f7209bab756b352e8c5b15641ee05e4b2965e6c2b0d8504b89818c2ae0bf9444db4283e4fea5eff2343
diff --git a/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2.ebuild b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2.ebuild
new file mode 100644
index 000000000000..114c9a5db876
--- /dev/null
+++ b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit user
+
+DESCRIPTION="PKCS#11 support for GnuPG"
+HOMEPAGE="http://gnupg-pkcs11.sourceforge.net"
+SRC_URI="https://github.com/alonbl/${PN}/releases/download/${P}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="libressl proxy"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ dev-libs/libassuan:=
+ >=dev-libs/libgcrypt-1.2.2:=
+ >=dev-libs/libgpg-error-1.3:=
+ >=dev-libs/pkcs11-helper-1.02:="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+pkg_setup() {
+ if use proxy; then
+ enewgroup gnupg-pkcs11
+ enewgroup gnupg-pkcs11-scd-proxy
+ enewuser gnupg-pkcs11-scd-proxy -1 -1 / gnupg-pkcs11-scd-proxy,gnupg-pkcs11
+ fi
+}
+
+src_configure() {
+ econf \
+ $(use_enable proxy) \
+ --with-proxy-socket=/run/gnupg-pkcs11-scd-proxy/cmd
+}
+
+src_install() {
+ default
+ if use proxy; then
+ newinitd "${FILESDIR}/gnupg-pkcs11-scd-proxy.initd" gnupg-pkcs11-scd-proxy
+ newconfd "${FILESDIR}/gnupg-pkcs11-scd-proxy.confd" gnupg-pkcs11-scd-proxy
+ fi
+}