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: net-misc/sks/files/, net-misc/sks/
Date: Wed, 28 Jun 2017 07:38:59
Message-Id: 1498635523.bb3ae6a78af0f3ebae09a3120696e0b1a2240520.k_f@gentoo
1 commit: bb3ae6a78af0f3ebae09a3120696e0b1a2240520
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 28 07:38:14 2017 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 28 07:38:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb3ae6a7
7
8 net-misc/sks: Clean up old version
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 net-misc/sks/Manifest | 1 -
13 net-misc/sks/files/sks-1.1.5-curve25519.patch | 11 --
14 .../sks/files/sks-1.1.5-disable-warn-error-a.patch | 29 -----
15 net-misc/sks/files/sks-1.1.5-eddsa.patch | 84 ---------------
16 net-misc/sks/sks-1.1.5-r3.ebuild | 118 ---------------------
17 net-misc/sks/sks-1.1.6.ebuild | 114 --------------------
18 6 files changed, 357 deletions(-)
19
20 diff --git a/net-misc/sks/Manifest b/net-misc/sks/Manifest
21 index 7d543a7072d..9fcce71046f 100644
22 --- a/net-misc/sks/Manifest
23 +++ b/net-misc/sks/Manifest
24 @@ -1,2 +1 @@
25 -DIST sks-1.1.5.tgz 362941 SHA256 92a7f113f0ba7a28d51d7ced60a984d042d8524c651dc3fcafe9d11cc32981a0 SHA512 1fc1248281b4eb6bd0bafad7f3d1600ee86905614ee5c644d532059f972040c2673bee780a414e50e9287fc74fd140ac85db9629d502cff989981904acd3710c WHIRLPOOL 4281b40d72e7370b7c848d683beff2f4bd705a06139a25b27efe5be8a521df9fb870bdeeea97ac3617d542b64fd9c539f90d8f695cea1fec2bdcf267a2d3dc1f
26 DIST sks-1.1.6.tgz 359499 SHA256 22312dbec6dfd372932075b0b0b1d04f772059a9520faa4937feafc737d5a632 SHA512 f7c54194274834840b9701bf827b81add0f807dd4c6019968a6b0c755c9117519433ebb1161da38d23c465b163dd31a766700023afa13174e4dc82542fa98099 WHIRLPOOL 85714515275c21821ff3bc429d00546f1f3b1cf6b8193edd1b26295ec07861ed1ed8b123deb811b6b915d761e977662398e7509581d8fe0e32d47ea6dd09388a
27
28 diff --git a/net-misc/sks/files/sks-1.1.5-curve25519.patch b/net-misc/sks/files/sks-1.1.5-curve25519.patch
29 deleted file mode 100644
30 index ccf484f4552..00000000000
31 --- a/net-misc/sks/files/sks-1.1.5-curve25519.patch
32 +++ /dev/null
33 @@ -1,11 +0,0 @@
34 -diff -r 1a1b0b48e642 parsePGP.ml
35 ---- a/parsePGP.ml Tue May 26 12:21:29 2015 -0400
36 -+++ b/parsePGP.ml Tue Oct 13 14:46:03 2015 +0900
37 -@@ -151,6 +151,7 @@
38 - | "\x2b\x24\x03\x03\x02\x08\x01\x01\x0d" -> 512 (* brainpoolP512r1 *)
39 - | "\x2b\x81\x04\x00\x0a" -> 256 (* secp256k1 *)
40 - | "\x2b\x06\x01\x04\x01\xda\x47\x0f\x01" -> 256 (* Ed25519 *)
41 -+ | "\x2b\x06\x01\x04\x01\x97\x55\x01\x05\x01" -> 256 (* cv25519 *)
42 - | _ -> failwith "Unknown OID"
43 - in
44 - psize
45
46 diff --git a/net-misc/sks/files/sks-1.1.5-disable-warn-error-a.patch b/net-misc/sks/files/sks-1.1.5-disable-warn-error-a.patch
47 deleted file mode 100644
48 index 18af6c524a2..00000000000
49 --- a/net-misc/sks/files/sks-1.1.5-disable-warn-error-a.patch
50 +++ /dev/null
51 @@ -1,29 +0,0 @@
52 -From 5142992b465e87181a4674ac614bf7d2fd7110c4 Mon Sep 17 00:00:00 2001
53 -From: Kristian Fiskerstrand <kristian.fiskerstrand@××××××××××××××××.com>
54 -Date: Sun, 26 Jul 2015 21:25:53 +0200
55 -Subject: [PATCH] (Makefile) Disable warn-error A
56 -
57 -warn-error A is set for development versions (tagged with +) upstream,
58 -however it is not intended to actually be fatal errors for released
59 -versions. We want to keep EdDSA support, i.e it is actually one
60 -commit past 1.1.5, so just disabling making warnings fatal.
61 ----
62 - Makefile | 2 +-
63 - 1 file changed, 1 insertion(+), 1 deletion(-)
64 -
65 -diff --git a/Makefile b/Makefile
66 -index 543c531..d4a1222 100644
67 ---- a/Makefile
68 -+++ b/Makefile
69 -@@ -49,7 +49,7 @@ SKSVS=$(shell grep 'version_suffix = "+"' common.ml)
70 - ifeq ($(strip $(SKSVS)),)
71 - WARNERR=
72 - else
73 --WARNERR=-warn-error A
74 -+WARNERR=
75 - endif
76 -
77 - CAMLP4=-pp $(CAMLP4O)
78 ---
79 -2.3.6
80 -
81
82 diff --git a/net-misc/sks/files/sks-1.1.5-eddsa.patch b/net-misc/sks/files/sks-1.1.5-eddsa.patch
83 deleted file mode 100644
84 index 36359f233c4..00000000000
85 --- a/net-misc/sks/files/sks-1.1.5-eddsa.patch
86 +++ /dev/null
87 @@ -1,84 +0,0 @@
88 -diff -r 4d5e4fd7c1c2 CHANGELOG
89 ---- a/CHANGELOG Mon Aug 11 20:56:45 2014 -0500
90 -+++ b/CHANGELOG Tue Feb 03 00:01:20 2015 +0100
91 -@@ -1,3 +1,7 @@
92 -+Development:
93 -+ - Add support for EdDSA key using Ed25519 signature scheme
94 -+ (http://www.ietf.org/id/draft-koch-eddsa-for-openpgp-00.txt)
95 -+
96 - 1.1.5
97 - - Fixes for machine-readable indices. Key expiration times are now read
98 - from self-signatures on the key's UIDs. In addition, instead of 8-digit
99 -diff -r 4d5e4fd7c1c2 common.ml
100 ---- a/common.ml Mon Aug 11 20:56:45 2014 -0500
101 -+++ b/common.ml Tue Feb 03 00:01:20 2015 +0100
102 -@@ -47,7 +47,7 @@
103 - (* for Release versions, COMMONCAMLFLAGS in Makefile should include *)
104 - (* '-warn-error a'. Development work should use '-warn-error A' for stricter *)
105 - (* language checking. This affects the Ocaml compiler beginning with v4.01.0 *)
106 --let version_suffix = "" (* + for development branch *)
107 -+let version_suffix = "+" (* + for development branch *)
108 - let compatible_version_tuple = (0,1,5)
109 - let version =
110 - let (maj_version,min_version,release) = version_tuple in
111 -diff -r 4d5e4fd7c1c2 packet.ml
112 ---- a/packet.ml Mon Aug 11 20:56:45 2014 -0500
113 -+++ b/packet.ml Tue Feb 03 00:01:20 2015 +0100
114 -@@ -163,6 +163,7 @@
115 - | 19 -> "ECDSA (ECC)" (* RFC 6637 *)
116 - | 20 -> "Elgamal (Encrypt or Sign)"
117 - | 21 -> "Reserved for Diffie-Hellman (X9.42) as defined for IETF-S/MIME"
118 -+ | 22 -> "EdDSA"
119 - | x when x >= 100 && x <= 110 -> "Private/Experimental algorithm."
120 - | _ -> "Unknown Public Key Algorithm"
121 -
122 -@@ -252,10 +253,11 @@
123 - | 2 -> "r" (* RSA encrypt *)
124 - | 3 -> "s" (* RSA sign *)
125 - | 16 -> "g" (* ElGamal encrypt *)
126 -- | 20 -> "G" (* ElGamal sign and encrypt *)
127 - | 17 -> "D" (* DSA *)
128 - | 18 -> "e" (* ECDH *)
129 - | 19 -> "E" (* ECDSA *)
130 -+ | 20 -> "G" (* ElGamal sign and encrypt *)
131 -+ | 22 -> "E" (* EdDSA *)
132 - | _ -> "?" (* NoClue *)
133 -
134 - (** writes out packet, using old-style packets when possible *)
135 -diff -r 4d5e4fd7c1c2 parsePGP.ml
136 ---- a/parsePGP.ml Mon Aug 11 20:56:45 2014 -0500
137 -+++ b/parsePGP.ml Tue Feb 03 00:01:20 2015 +0100
138 -@@ -150,6 +150,7 @@
139 - | "\x2b\x24\x03\x03\x02\x08\x01\x01\x0b" -> 384 (* brainpoolP384r1 *)
140 - | "\x2b\x24\x03\x03\x02\x08\x01\x01\x0d" -> 512 (* brainpoolP512r1 *)
141 - | "\x2b\x81\x04\x00\x0a" -> 256 (* secp256k1 *)
142 -+ | "\x2b\x06\x01\x04\x01\xda\x47\x0f\x01" -> 256 (* Ed25519 *)
143 - | _ -> failwith "Unknown OID"
144 - in
145 - psize
146 -@@ -168,6 +169,7 @@
147 - in
148 - (mpi, psize)
149 -
150 -+ (* Algorithm specific fields for ECDSA and EdDSA *)
151 - let parse_ecdsa_pubkey cin =
152 - let length = cin#read_int_size 1 in
153 - let oid = cin#read_string length in
154 -@@ -185,7 +187,7 @@
155 - let algorithm = cin#read_byte in
156 - let (tmpmpi, tmpsize) = match algorithm with
157 - | 18 -> parse_ecdh_pubkey cin
158 -- | 19 -> ( {mpi_bits = 0; mpi_data = ""}, (parse_ecdsa_pubkey cin))
159 -+ | 19 | 22 -> ( {mpi_bits = 0; mpi_data = ""}, (parse_ecdsa_pubkey cin))
160 - | _ -> ( {mpi_bits = 0; mpi_data = ""} , -1 )
161 - in
162 - let mpis = match algorithm with
163 -@@ -205,7 +207,7 @@
164 - pk_ctime = creation_time;
165 - pk_expiration = (match expiration with Some 0 -> None | x -> x);
166 - pk_alg = algorithm;
167 -- pk_keylen = (match algorithm with |18|19 -> psize | _ -> mpi.mpi_bits);
168 -+ pk_keylen = (match algorithm with |18|19|22 -> psize | _ -> mpi.mpi_bits);
169 - }
170 -
171 - (********************************************************)
172
173 diff --git a/net-misc/sks/sks-1.1.5-r3.ebuild b/net-misc/sks/sks-1.1.5-r3.ebuild
174 deleted file mode 100644
175 index 6d440f02567..00000000000
176 --- a/net-misc/sks/sks-1.1.5-r3.ebuild
177 +++ /dev/null
178 @@ -1,118 +0,0 @@
179 -# Copyright 1999-2016 Gentoo Foundation
180 -# Distributed under the terms of the GNU General Public License v2
181 -
182 -EAPI=5
183 -
184 -inherit multilib user readme.gentoo systemd
185 -
186 -DESCRIPTION="An OpenPGP keyserver which is decentralized with highly reliable synchronization"
187 -HOMEPAGE="https://bitbucket.org/skskeyserver/sks-keyserver"
188 -SRC_URI="https://bitbucket.org/skskeyserver/sks-keyserver/downloads/${P}.tgz"
189 -LICENSE="GPL-2"
190 -SLOT="0"
191 -KEYWORDS="amd64 ~x86"
192 -IUSE="optimize test"
193 -DOC_CONTENTS="To get sks running, first build the database,
194 -start the database, import atleast one key, then
195 -run a cleandb. See the sks man page for more information
196 -Typical DB_CONFIG file and sksconf has been installed
197 -in /var/lib/sks and can be used as templates by renaming
198 -to remove the .typical extension. The DB_CONFIG file has
199 -to be in place before doing the database build, or the BDB
200 -environment has to be manually cleared from both KDB and PTree.
201 -The same applies if you are upgrading to this version with an existing KDB/Ptree,
202 -using another version of BDB than 4.8; you need to clear the environment
203 -using e.g. db4.6_recover -h . and db4.6_checkpoint -1h . in both KDB and PTree
204 -Additionally a sample web interface has been installed as
205 -web.typical in /var/lib/sks that can be used by renaming it to web
206 -Important: It is strongly recommended to set up SKS behind a
207 -reverse proxy. Instructions on properly configuring SKS can be
208 -found at https://bitbucket.org/skskeyserver/sks-keyserver/wiki/Peering"
209 -
210 -DEPEND=">=dev-lang/ocaml-4.0
211 - dev-ml/camlp4
212 - dev-ml/cryptokit
213 - sys-libs/db:4.8"
214 -RDEPEND="${DEPEND}"
215 -
216 -pkg_setup() {
217 - ebegin "Creating named group and user"
218 - enewgroup sks
219 - enewuser sks -1 -1 /var/lib/sks sks
220 -}
221 -
222 -src_prepare() {
223 - cp Makefile.local.unused Makefile.local || die
224 - sed -i \
225 - -e "s:^BDBLIB=.*$:BDBLIB=-L/usr/$(get_libdir):g" \
226 - -e "s:^BDBINCLUDE=.*$:BDBINCLUDE=-I/usr/include/db4.8/:g" \
227 - -e "s:^LIBDB=.*$:LIBDB=-ldb-4.8:g" \
228 - -e "s:^PREFIX=.*$:PREFIX=${D}/usr:g" \
229 - -e "s:^MANDIR=.*$:MANDIR=${D}/usr/share/man:g" \
230 - Makefile.local || die
231 - sed -i \
232 - -e 's:^CAMLINCLUDE= -I lib -I bdb$:CAMLINCLUDE= -I lib -I bdb -I +cryptokit:g' \
233 - -e 's:-Werror-implicit-function-declaration::g' \
234 - Makefile bdb/Makefile || die
235 - sed -i \
236 - -e 's:/usr/sbin/sks:/usr/bin/sks:g' \
237 - sks_build.sh || die
238 -
239 - epatch "${FILESDIR}/${P}-eddsa.patch"
240 - epatch "${FILESDIR}/${P}-disable-warn-error-a.patch"
241 - epatch "${FILESDIR}/${P}-curve25519.patch"
242 -}
243 -
244 -src_compile() {
245 - emake dep
246 - # sks build fails with paralell build in module Bdb
247 - emake -j1 all
248 - if use optimize; then
249 - emake all.bc
250 - fi
251 -}
252 -
253 -src_test() {
254 - ./sks unit_test || die
255 -}
256 -
257 -src_install() {
258 - if use optimize; then
259 - emake install.bc
260 - dosym /usr/bin/sks.bc usr/bin/sks
261 - dosym /usr/bin/sks_add_mail.bc usr/bin/sks_add_mail
262 - else
263 - emake install
264 - fi
265 -
266 - dodoc README.md
267 -
268 - newinitd "${FILESDIR}/sks-db.initd" sks-db
269 - newinitd "${FILESDIR}/sks-recon.initd" sks-recon
270 - newconfd "${FILESDIR}/sks.confd" sks
271 - systemd_dounit "${FILESDIR}"/sks-db.service
272 - systemd_dounit "${FILESDIR}"/sks-recon.service
273 -
274 - dodir "/var/lib/sks/web.typical"
275 - insinto /var/lib/sks
276 - newins sampleConfig/DB_CONFIG DB_CONFIG.typical
277 - newins sampleConfig/sksconf.typical sksconf.typical
278 - insinto /var/lib/sks/web.typical
279 - doins sampleWeb/HTML5/*
280 -
281 - keepdir /var/lib/sks
282 - readme.gentoo_create_doc
283 -}
284 -
285 -pkg_postinst() {
286 - readme.gentoo_print_elog
287 -
288 - if [[ -n ${REPLACING_VERSIONS} ]]; then
289 - einfo "Note when upgrading from versions of SKS earlier than 1.1.4"
290 - einfo "The default values for pagesize settings have changed. To continue"
291 - einfo "using an existing DB without rebuilding, explicit settings have to be"
292 - einfo "added to the sksconf file."
293 - einfo "pagesize: 4"
294 - einfo "ptree_pagesize: 1"
295 - fi;
296 -}
297
298 diff --git a/net-misc/sks/sks-1.1.6.ebuild b/net-misc/sks/sks-1.1.6.ebuild
299 deleted file mode 100644
300 index 98b924ffcf6..00000000000
301 --- a/net-misc/sks/sks-1.1.6.ebuild
302 +++ /dev/null
303 @@ -1,114 +0,0 @@
304 -# Copyright 1999-2016 Gentoo Foundation
305 -# Distributed under the terms of the GNU General Public License v2
306 -
307 -EAPI=5
308 -
309 -inherit multilib user readme.gentoo systemd
310 -
311 -DESCRIPTION="An OpenPGP keyserver which is decentralized with highly reliable synchronization"
312 -HOMEPAGE="https://bitbucket.org/skskeyserver/sks-keyserver"
313 -SRC_URI="https://bitbucket.org/skskeyserver/sks-keyserver/downloads/${P}.tgz"
314 -LICENSE="GPL-2"
315 -SLOT="0"
316 -KEYWORDS="~amd64 ~x86"
317 -IUSE="optimize test"
318 -DOC_CONTENTS="To get sks running, first build the database,
319 -start the database, import atleast one key, then
320 -run a cleandb. See the sks man page for more information
321 -Typical DB_CONFIG file and sksconf has been installed
322 -in /var/lib/sks and can be used as templates by renaming
323 -to remove the .typical extension. The DB_CONFIG file has
324 -to be in place before doing the database build, or the BDB
325 -environment has to be manually cleared from both KDB and PTree.
326 -The same applies if you are upgrading to this version with an existing KDB/Ptree,
327 -using another version of BDB than 4.8; you need to clear the environment
328 -using e.g. db4.6_recover -h . and db4.6_checkpoint -1h . in both KDB and PTree
329 -Additionally a sample web interface has been installed as
330 -web.typical in /var/lib/sks that can be used by renaming it to web
331 -Important: It is strongly recommended to set up SKS behind a
332 -reverse proxy. Instructions on properly configuring SKS can be
333 -found at https://bitbucket.org/skskeyserver/sks-keyserver/wiki/Peering"
334 -
335 -DEPEND=">=dev-lang/ocaml-4.0
336 - dev-ml/camlp4
337 - dev-ml/cryptokit
338 - sys-libs/db:4.8"
339 -RDEPEND="${DEPEND}"
340 -
341 -pkg_setup() {
342 - ebegin "Creating named group and user"
343 - enewgroup sks
344 - enewuser sks -1 -1 /var/lib/sks sks
345 -}
346 -
347 -src_prepare() {
348 - cp Makefile.local.unused Makefile.local || die
349 - sed -i \
350 - -e "s:^BDBLIB=.*$:BDBLIB=-L/usr/$(get_libdir):g" \
351 - -e "s:^BDBINCLUDE=.*$:BDBINCLUDE=-I/usr/include/db4.8/:g" \
352 - -e "s:^LIBDB=.*$:LIBDB=-ldb-4.8:g" \
353 - -e "s:^PREFIX=.*$:PREFIX=${D}/usr:g" \
354 - -e "s:^MANDIR=.*$:MANDIR=${D}/usr/share/man:g" \
355 - Makefile.local || die
356 - sed -i \
357 - -e 's:^CAMLINCLUDE= -I lib -I bdb$:CAMLINCLUDE= -I lib -I bdb -I +cryptokit:g' \
358 - -e 's:-Werror-implicit-function-declaration::g' \
359 - Makefile bdb/Makefile || die
360 - sed -i \
361 - -e 's:/usr/sbin/sks:/usr/bin/sks:g' \
362 - sks_build.sh || die
363 -}
364 -
365 -src_compile() {
366 - emake dep
367 - # sks build fails with paralell build in module Bdb
368 - emake -j1 all
369 - if use optimize; then
370 - emake all.bc
371 - fi
372 -}
373 -
374 -src_test() {
375 - ./sks unit_test || die
376 -}
377 -
378 -src_install() {
379 - if use optimize; then
380 - emake install.bc
381 - dosym /usr/bin/sks.bc usr/bin/sks
382 - dosym /usr/bin/sks_add_mail.bc usr/bin/sks_add_mail
383 - else
384 - emake install
385 - fi
386 -
387 - dodoc README.md
388 -
389 - newinitd "${FILESDIR}/sks-db.initd" sks-db
390 - newinitd "${FILESDIR}/sks-recon.initd" sks-recon
391 - newconfd "${FILESDIR}/sks.confd" sks
392 - systemd_dounit "${FILESDIR}"/sks-db.service
393 - systemd_dounit "${FILESDIR}"/sks-recon.service
394 -
395 - dodir "/var/lib/sks/web.typical"
396 - insinto /var/lib/sks
397 - newins sampleConfig/DB_CONFIG DB_CONFIG.typical
398 - newins sampleConfig/sksconf.typical sksconf.typical
399 - insinto /var/lib/sks/web.typical
400 - doins sampleWeb/HTML5/*
401 -
402 - keepdir /var/lib/sks
403 - readme.gentoo_create_doc
404 -}
405 -
406 -pkg_postinst() {
407 - readme.gentoo_print_elog
408 -
409 - if [[ -n ${REPLACING_VERSIONS} ]]; then
410 - einfo "Note when upgrading from versions of SKS earlier than 1.1.4"
411 - einfo "The default values for pagesize settings have changed. To continue"
412 - einfo "using an existing DB without rebuilding, explicit settings have to be"
413 - einfo "added to the sksconf file."
414 - einfo "pagesize: 4"
415 - einfo "ptree_pagesize: 1"
416 - fi;
417 -}