summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2017-08-25 22:36:48 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2017-08-25 22:37:10 +0300
commit422fd28e4f1883e62b8831beee41d37087f926e6 (patch)
tree657815e3f47f51409bab87b2a45d379b939d4e5c
parentwww-client/google-chrome: automated update (60.0.3112.113) (diff)
downloadgentoo-422fd28e4f1883e62b8831beee41d37087f926e6.tar.gz
gentoo-422fd28e4f1883e62b8831beee41d37087f926e6.tar.bz2
gentoo-422fd28e4f1883e62b8831beee41d37087f926e6.zip
app-crypt/gnupg-pkcs11-scd: version bump
-rw-r--r--app-crypt/gnupg-pkcs11-scd/Manifest1
-rw-r--r--app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.confd1
-rw-r--r--app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.initd23
-rw-r--r--app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.0.ebuild47
-rw-r--r--app-crypt/gnupg-pkcs11-scd/metadata.xml3
5 files changed, 75 insertions, 0 deletions
diff --git a/app-crypt/gnupg-pkcs11-scd/Manifest b/app-crypt/gnupg-pkcs11-scd/Manifest
index e94c67765ec..4d5894b2e0b 100644
--- a/app-crypt/gnupg-pkcs11-scd/Manifest
+++ b/app-crypt/gnupg-pkcs11-scd/Manifest
@@ -1,2 +1,3 @@
DIST gnupg-pkcs11-scd-0.7.6.tar.bz2 130210 SHA256 2962dc39a80c5aa9e71f0b847de8f66a9f02b620696d213bb138c17ffec9f7af SHA512 593fdd1320f12173afdec48debea7231006ffd7416e7343f0ff9f92b460245e30d69717784820628473ec782dc47a83d13dc6aa67db94693c462b60a400641e5 WHIRLPOOL ef3b9bc57832452dd9318731fa2ee8f1b24e423c58eb58a403891232a1c296be3f15010dcbbcc1e58803b09add32c346981fee8902e2ff7d563443ab43b2fdb2
DIST gnupg-pkcs11-scd-0.8.0.tar.bz2 130726 SHA256 391d16c1a8c9a4771963b72fca04becdf8953a3223e23db738a4c94c62beb834 SHA512 efd19a5c353a3285a5d9fd86241295a4c964b8a26cc1d3d43a579ad526ca23dcb79db028c6cdd40a3dc869e751e7d8580979c5e477217b61fdcc477e5bd00f19 WHIRLPOOL c31b3d3a32617370b943b3b94fdc24e19df38db0cfc9b412cab1bd36f4484b60c4f497089abb573bb7559a34c8274d5674b9f860267d759c61c3ba1ef1538377
+DIST gnupg-pkcs11-scd-0.9.0.tar.bz2 145094 SHA256 8f9a2b56ef9c1ae0f6c9146cc842c05a8b77da5be2548b1c92bd555c5e868814 SHA512 0b4ce23dfa49fc0d8caaca2f8b00f0b9ef802f11635dda9ea310b9c10e7463d7e364b15b6ec6c9e08b03f3f0b4b331074f5028e9ccef11649c6662bb420ae189 WHIRLPOOL bffa80873ffb5f702e2b9f3d649d6b0278f54360aa4a30e85340dde186ca0109aede064e894d3cdb13cb11eb61dca398e82a5daaf397e7410aea426a0d383414
diff --git a/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.confd b/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.confd
new file mode 100644
index 00000000000..702cf615fa6
--- /dev/null
+++ b/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.confd
@@ -0,0 +1 @@
+SCD_CONFIG=/etc/gnupg-pkcs11-scd.conf
diff --git a/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.initd b/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.initd
new file mode 100644
index 00000000000..50b32488240
--- /dev/null
+++ b/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.initd
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="gnupg-pkcs11-scd proxy."
+
+GNUPG_PKCS11_GROUP="${GNUPG_PKCS11_GROUP:-gnupg-pkcs11}"
+
+command="/usr/bin/gnupg-pkcs11-scd-proxy-server"
+command_args="--scd-config='${SCD_CONFIG}' --socket-group=${GNUPG_PKCS11_GROUP} ${EXTRA_OPTS}"
+pidfile=${PIDFILE:-/run/${SVCNAME}.pid}
+user=${USER:-gnupg-pkcs11-scd-proxy}
+group=${GROUP:-gnupg-pkcs11-scd-proxy}
+start_stop_daemon_args="--user ${user} --group ${group} --background --make-pidfile"
+
+depend() {
+ need localmount
+ after bootmisc
+}
+
+start_pre() {
+ checkpath -o ${user}:${GNUPG_PKCS11_GROUP} -m 0750 -d /run/gnupg-pkcs11-scd-proxy
+}
diff --git a/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.0.ebuild b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.0.ebuild
new file mode 100644
index 00000000000..2a66c188bd0
--- /dev/null
+++ b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+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}
+ 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
+}
diff --git a/app-crypt/gnupg-pkcs11-scd/metadata.xml b/app-crypt/gnupg-pkcs11-scd/metadata.xml
index 81694eba366..c81bfe31ed5 100644
--- a/app-crypt/gnupg-pkcs11-scd/metadata.xml
+++ b/app-crypt/gnupg-pkcs11-scd/metadata.xml
@@ -12,4 +12,7 @@
<remote-id type="sourceforge">gnupg-pkcs11</remote-id>
<remote-id type="github">alonbl/gnupg-pkcs11-scd</remote-id>
</upstream>
+ <use>
+ <flag name="proxy">Build the gnupg-pkcs11-scd-prox</flag>
+ </use>
</pkgmetadata>