diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-04-11 20:41:37 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-04-11 21:23:47 +0200 |
commit | c239243b9f453056f4186c44aa67e54c6ba02109 (patch) | |
tree | 35fecf1a3dcc3c7f7e5534aefecde6546f562e61 /app-crypt/gnupg-pkcs11-scd | |
parent | app-backup/backuppc: migrate to GLEP 81 (diff) | |
download | gentoo-c239243b9f453056f4186c44aa67e54c6ba02109.tar.gz gentoo-c239243b9f453056f4186c44aa67e54c6ba02109.tar.bz2 gentoo-c239243b9f453056f4186c44aa67e54c6ba02109.zip |
app-crypt/gnupg-pkcs11-scd: migrate to GLEP 81
Closes: https://bugs.gentoo.org/781212
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-crypt/gnupg-pkcs11-scd')
-rw-r--r-- | app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2-r1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2-r1.ebuild b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2-r1.ebuild new file mode 100644 index 000000000000..29e037a3b448 --- /dev/null +++ b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +DEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + dev-libs/libassuan:= + dev-libs/libgcrypt:= + dev-libs/libgpg-error:= + dev-libs/pkcs11-helper:= +" +RDEPEND=" + ${DEPEND} + proxy? ( + acct-group/gnupg-pkcs11 + acct-group/gnupg-pkcs11-scd-proxy + acct-user/gnupg-pkcs11-scd-proxy + ) +" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local myeconfargs=( + $(use_enable proxy) + --with-proxy-socket=/run/gnupg-pkcs11-scd-proxy/cmd + ) + + econf "${myeconfargs[@]}" +} + +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 +} |