Gentoo Archives: gentoo-commits

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/monkeysphere/files/, app-crypt/monkeysphere/
Date: Wed, 31 Aug 2016 19:39:50
Message-Id: 1472672375.db19bc9eb421753009d8e9392c014b46f0c3da48.k_f@gentoo
1 commit: db19bc9eb421753009d8e9392c014b46f0c3da48
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 31 19:38:24 2016 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 19:39:35 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db19bc9e
7
8 app-crypt/monkeysphere: New upstream version 0.39
9
10 Package-Manager: portage-2.3.0
11
12 app-crypt/monkeysphere/Manifest | 1 +
13 ...re-0.39-make-tests-work-with-gnupg-2.1.15.patch | 45 +++++++++++++++++
14 app-crypt/monkeysphere/monkeysphere-0.39.ebuild | 57 ++++++++++++++++++++++
15 3 files changed, 103 insertions(+)
16
17 diff --git a/app-crypt/monkeysphere/Manifest b/app-crypt/monkeysphere/Manifest
18 index 44a78ab..3077fd7 100644
19 --- a/app-crypt/monkeysphere/Manifest
20 +++ b/app-crypt/monkeysphere/Manifest
21 @@ -1,3 +1,4 @@
22 DIST monkeysphere_0.36.orig.tar.gz 98876 SHA256 6ae4edeff2cc29b6913346e15b61500ea7cc06d761a9f42e67de83b7d2607be7 SHA512 eb6776bd9996db8a5d6a1d16b5b06e6733069cbb3cb35f4e3965508575e084c6f08576f31c71429432daf93910d145804ecf155c3d7550a0f4550a056cb4f0c8 WHIRLPOOL c163d0be77d3c6d838f752c8f53d967b17aeafd798e4fca694a31bf55628fb57d18b6a4664ca9552bd3daf3b89b6f86452d430529985ca0a31c3c4aa48470bc0
23 DIST monkeysphere_0.37.orig.tar.gz 99557 SHA256 b510b8a414fb400356e80f1f882488785df72ac54078410b54d4c50a84686e59 SHA512 ebf636caaa0985a2495314375a9d78d131173ccedc116993e02b7bbc0ddc8c43c718dc65cb725619ecf7e72e0b7e11b941f3eb342d7c23d17ca0507b2ab28512 WHIRLPOOL d27a3712ce4cd529986c4ac0af7398f8d69d66c1b5aed9842d3b21f417bab5d2b3afc7be9e069ce0e9f307b17ad33ef9e8d49d7624ec0d7d2aab60949982b9c1
24 DIST monkeysphere_0.38.orig.tar.gz 107546 SHA256 6951821d11ad646e6e7651d677bfab8f800fbc52703a0ab9942d03cd13959073 SHA512 fd87460fe16b0133fd507ff93926a5dea6419343b45c3ba33e6e981333646f4fa840c127bb1f3e7750bc3ede66c5e07f4155557a8354cf38d89159422dca390f WHIRLPOOL 26f96f1d845ce1178337cc23e50140576a785536f656e73ceaba4d64192106b2462bb046328758c2771b48de64abe1a3d866cfc2fadc7ac0d0e2341778cd9105
25 +DIST monkeysphere_0.39.orig.tar.gz 107735 SHA256 73331e2df361b22e1dc6445a7d2b0b2c5a124daa4d850c2ecce721579592c29f SHA512 069acbc3e4f1409a130d4efc95875c72b9e4c55af6ff211fb954a90ff26605ecf9cdbbe7d7f7849de479cafaab7957a33fccefd5f2d54a2317f18bc5454190c2 WHIRLPOOL 3b0b260e002e5bbc4f894f468da77c9b3eb0c020316ceed920663f66e0db525c2baea4d9be7a36e82544c02bc3ece3bb0bbfa455c47d8f89896de08e4ff7211f
26
27 diff --git a/app-crypt/monkeysphere/files/monkeysphere-0.39-make-tests-work-with-gnupg-2.1.15.patch b/app-crypt/monkeysphere/files/monkeysphere-0.39-make-tests-work-with-gnupg-2.1.15.patch
28 new file mode 100644
29 index 00000000..776e633
30 --- /dev/null
31 +++ b/app-crypt/monkeysphere/files/monkeysphere-0.39-make-tests-work-with-gnupg-2.1.15.patch
32 @@ -0,0 +1,45 @@
33 +From b1dd8fb1b84c6eea25523c3ea746852b3dce6034 Mon Sep 17 00:00:00 2001
34 +From: Valo <valo@××××××××××××××.net>
35 +Date: Wed, 31 Aug 2016 14:00:05 -0400
36 +Subject: [PATCH] Make tests pass with GnuPG 2.1.15
37 +
38 +2.1.15 appears to always emit the fingerprint lines in these cases,
39 +while 2.1.14 did not.
40 +---
41 + tests/keytrans | 6 +++---
42 + 1 file changed, 3 insertions(+), 3 deletions(-)
43 +
44 +diff --git a/tests/keytrans b/tests/keytrans
45 +index 3076e3f..5c7d2c8 100755
46 +--- a/tests/keytrans
47 ++++ b/tests/keytrans
48 +@@ -140,7 +140,7 @@ uid:u::::$timestamp::8200BD0425CC70C7D698DF3FE412044EAAB83F94::testtest
49 + sig:!::1:$KEYID:$timestamp::::monkeymonkey:13x:::::8
50 + EOF
51 +
52 +-diff -u "$TEMPDIR"/expectedout <(gpg --check-sigs --with-colons | grep -v ^tru | sed 's/:*$//')
53 ++diff -u "$TEMPDIR"/expectedout <(gpg --check-sigs --with-colons | grep -vE '^(tru|fpr):' | sed 's/:*$//')
54 +
55 + echo "##################################################"
56 + echo "### sleeping to avoid test suite breakage on fast"
57 +@@ -170,7 +170,7 @@ rev:!::1:$KEYID:$revtime::::monkeymonkey:30x:::::8
58 + EOF
59 +
60 +
61 +-diff -u "$TEMPDIR"/expectedout <(gpg --check-sigs --with-colons | grep -v ^tru | sed 's/:*$//')
62 ++diff -u "$TEMPDIR"/expectedout <(gpg --check-sigs --with-colons | grep -vE '^(tru|fpr):' | sed 's/:*$//')
63 +
64 +
65 + echo "##################################################"
66 +@@ -206,7 +206,7 @@ sig:!::1:$NEWKEYID:$(($timestamp + 1))::::fubar:13x:::::8
67 + EOF
68 +
69 + echo "test: diff expected gpg list output"
70 +-diff -u "$TEMPDIR"/expectedout <(gpg --check-sigs --with-colons | grep -v ^tru | sed 's/:*$//')
71 ++diff -u "$TEMPDIR"/expectedout <(gpg --check-sigs --with-colons | grep -vE '^(tru|fpr):' | sed 's/:*$//')
72 +
73 + sort >"$TEMPDIR"/expectedout <<EOF
74 + $KEYFPR
75 +--
76 +2.7.3
77 +
78
79 diff --git a/app-crypt/monkeysphere/monkeysphere-0.39.ebuild b/app-crypt/monkeysphere/monkeysphere-0.39.ebuild
80 new file mode 100644
81 index 00000000..ef77d8a
82 --- /dev/null
83 +++ b/app-crypt/monkeysphere/monkeysphere-0.39.ebuild
84 @@ -0,0 +1,57 @@
85 +# Copyright 1999-2016 Gentoo Foundation
86 +# Distributed under the terms of the GNU General Public License v2
87 +# $Id$
88 +
89 +EAPI=5
90 +inherit eutils user
91 +
92 +DESCRIPTION="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
93 +HOMEPAGE="http://web.monkeysphere.info/"
94 +
95 +LICENSE="GPL-3"
96 +SLOT="0/0"
97 +IUSE=""
98 +SRC_URI="mirror://debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz"
99 +KEYWORDS="~amd64 ~arm ~x86"
100 +
101 +DOCS=( README Changelog )
102 +
103 +# Tests fail upstream for SSH connection. Issue has been reported.
104 +RESTRICT="test"
105 +
106 +DEPEND="app-crypt/gnupg:0=
107 + net-misc/socat:0=
108 + dev-perl/Crypt-OpenSSL-RSA:0=
109 + dev-perl/Digest-SHA1:0=
110 + app-misc/lockfile-progs:0="
111 +
112 +RDEPEND="${DEPEND}"
113 +
114 +pkg_setup()
115 +{
116 + einfo "Creating named group and user"
117 + enewgroup monkeysphere
118 + enewuser monkeysphere -1 -1 /var/lib/monkeysphere monkeysphere
119 + # Using fperms and fowner in src_install leave unusable config with error
120 + # Authentication refused: bad ownership or modes for directory /var/lib/monkeysphere
121 + chown root:monkeysphere /var/lib/monkeysphere
122 + chmod 751 /var/lib/monkeysphere
123 +}
124 +
125 +src_prepare()
126 +{
127 + epatch "${FILESDIR}/${P}-make-tests-work-with-gnupg-2.1.15.patch"
128 +
129 + sed -i "s#share/doc/monkeysphere#share/doc/${PF}#" Makefile || die
130 +}
131 +
132 +src_install()
133 +{
134 + default
135 + dodir /var/lib/monkeysphere
136 +}
137 +
138 +pkg_postinst()
139 +{
140 + monkeysphere-authentication setup || die
141 +}