1 |
commit: f1c6442b9f3939e01510693fd5c1afad8eff6279 |
2 |
Author: Tony Olagbaiye <bqv <AT> fron <DOT> io> |
3 |
AuthorDate: Tue Jan 3 06:29:03 2023 +0000 |
4 |
Commit: Tony Olagbaiye <gentoo <AT> fron <DOT> io> |
5 |
CommitDate: Tue Jan 3 06:31:33 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f1c6442b |
7 |
|
8 |
net-misc/gnome-ssh-askpass: new package, add 9.1_p1 |
9 |
|
10 |
Signed-off-by: Tony Olagbaiye <bqv <AT> fron.io> |
11 |
|
12 |
net-misc/gnome-ssh-askpass/Manifest | 2 + |
13 |
.../gnome-ssh-askpass-9.1_p1.ebuild | 64 ++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/gnome-ssh-askpass/Manifest b/net-misc/gnome-ssh-askpass/Manifest |
17 |
new file mode 100644 |
18 |
index 000000000..ee2d79669 |
19 |
--- /dev/null |
20 |
+++ b/net-misc/gnome-ssh-askpass/Manifest |
21 |
@@ -0,0 +1,2 @@ |
22 |
+DIST openssh-9.1p1.tar.gz 1838747 BLAKE2B 287b6b1cc4858b27af88f4a4674670afff1fb5b99461892083393c53ef3747c5a0fcd90cba95d2c27465a919e00f7f42732c93af4f306665ba0393bbb7a534f5 SHA512 a1f02c407f6b621b1d0817d1a0c9a6839b67e416c84f3b76c63003b119035b24c19a1564b22691d1152e1d2d55f4dc7eb1af2d2318751e431a99c4efa77edc70 |
23 |
+DIST openssh-9.1p1.tar.gz.asc 833 BLAKE2B 83efe3c705f6a02c25a9fc9bac2a4efd77470598d9e0fcb86dff2d265c58cffec1afecad3621769b2bd78ac25884f0ee20ae9b311e895db93e3bb552dffd6e74 SHA512 47dc7295f9694250bcbb86d7ca0830a47da4f3df7795bb05ebaf1590284ccce5317022c536bea1b09bd2fa4d8013295cc0de287ebe3f9dc605582077e9f11ddd |
24 |
|
25 |
diff --git a/net-misc/gnome-ssh-askpass/gnome-ssh-askpass-9.1_p1.ebuild b/net-misc/gnome-ssh-askpass/gnome-ssh-askpass-9.1_p1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..a17b5e22c |
28 |
--- /dev/null |
29 |
+++ b/net-misc/gnome-ssh-askpass/gnome-ssh-askpass-9.1_p1.ebuild |
30 |
@@ -0,0 +1,64 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit toolchain-funcs verify-sig |
37 |
+ |
38 |
+PARCH=openssh-9.1p1 |
39 |
+ |
40 |
+DESCRIPTION="GTK-based passphrase dialog for use with OpenSSH" |
41 |
+HOMEPAGE="https://www.openssh.com/" |
42 |
+SRC_URI="mirror://openbsd/OpenSSH/portable/${PARCH}.tar.gz |
43 |
+ verify-sig? ( mirror://openbsd/OpenSSH/portable/${PARCH}.tar.gz.asc ) |
44 |
+" |
45 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/openssh.org.asc |
46 |
+S="${WORKDIR}/${PARCH}" |
47 |
+ |
48 |
+LICENSE="BSD GPL-2" |
49 |
+SLOT="0" |
50 |
+IUSE="gtk2 +gtk3 verify-sig" |
51 |
+REQUIRED_USE="|| ( gtk2 gtk3 )" |
52 |
+ |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+DEPEND=" |
56 |
+ gtk2? ( x11-libs/gtk+:2 ) |
57 |
+ gtk3? ( x11-libs/gtk+:3 ) |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ virtual/pkgconfig |
61 |
+ verify-sig? ( sec-keys/openpgp-keys-openssh ) |
62 |
+" |
63 |
+ |
64 |
+src_unpack() { |
65 |
+ default |
66 |
+ |
67 |
+ # We don't have signatures for HPN, X509, so we have to write this ourselves |
68 |
+ use verify-sig && verify-sig_verify_detached "${DISTDIR}"/${PARCH}.tar.gz{,.asc} |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ true |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ pushd contrib |
77 |
+ |
78 |
+ use gtk2 && emake gnome-ssh-askpass2 |
79 |
+ use gtk3 && emake gnome-ssh-askpass3 |
80 |
+ |
81 |
+ popd |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ use gtk2 && ( dobin contrib/gnome-ssh-askpass2; \ |
86 |
+ echo "export SSH_ASKPASS='${EPREFIX}/usr/bin/gnome-ssh-askpass2'" > "${T}/99gnome_ssh_askpass" \ |
87 |
+ || die "envd file creation failed" ) |
88 |
+ |
89 |
+ use gtk3 && ( dobin contrib/gnome-ssh-askpass3; \ |
90 |
+ echo "export SSH_ASKPASS='${EPREFIX}/usr/bin/gnome-ssh-askpass3'" > "${T}/99gnome_ssh_askpass" \ |
91 |
+ || die "envd file creation failed" ) |
92 |
+ |
93 |
+ doenvd "${T}"/99gnome_ssh_askpass |
94 |
+} |