Gentoo Archives: gentoo-commits

From: "Kristian Fiskerstrand (k_f)" <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/sks: sks-1.1.5-r1.ebuild ChangeLog
Date: Mon, 02 Feb 2015 23:18:31
Message-Id: 20150202231826.E204310ECB@oystercatcher.gentoo.org
1 k_f 15/02/02 23:18:26
2
3 Modified: ChangeLog
4 Added: sks-1.1.5-r1.ebuild
5 Log:
6 Add support for EdDSA (Ed25519) from the upstream master branch
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xFED5002857C1ABFA!)
9
10 Revision Changes Path
11 1.12 net-misc/sks/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sks/ChangeLog?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sks/ChangeLog?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sks/ChangeLog?r1=1.11&r2=1.12
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/sks/ChangeLog,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- ChangeLog 28 Jul 2014 18:04:07 -0000 1.11
24 +++ ChangeLog 2 Feb 2015 23:18:26 -0000 1.12
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-misc/sks
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/sks/ChangeLog,v 1.11 2014/07/28 18:04:07 k_f Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/sks/ChangeLog,v 1.12 2015/02/02 23:18:26 k_f Exp $
31 +
32 +*sks-1.1.5-r1 (02 Feb 2015)
33 +
34 + 02 Feb 2015; Kristian Fiskerstrand <k_f@g.o>
35 + +files/sks-1.1.5-eddsa.patch, +sks-1.1.5-r1.ebuild:
36 + Add support for EdDSA (Ed25519) from the upstream master branch
37
38 28 Jul 2014; <kristianf@g.o> metadata.xml:
39 Taking over full maintainership instead of through proxy-maint
40
41
42
43 1.1 net-misc/sks/sks-1.1.5-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sks/sks-1.1.5-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sks/sks-1.1.5-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: sks-1.1.5-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/sks/sks-1.1.5-r1.ebuild,v 1.1 2015/02/02 23:18:26 k_f Exp $
53
54 EAPI=5
55
56 inherit multilib user readme.gentoo systemd
57
58 DESCRIPTION="An OpenPGP keyserver which is decentralized and provides highly reliable synchronization"
59 HOMEPAGE="https://bitbucket.org/skskeyserver/sks-keyserver"
60 SRC_URI="http://bitbucket.org/skskeyserver/sks-keyserver/downloads/${P}.tgz"
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="optimize test"
65 DOC_CONTENTS="To get sks running, first build the database,
66 start the databse, import atleast one key, then
67 run a cleandb. See the sks man page for more information
68 Typical DB_CONFIG file and sksconf has been installed
69 in /var/lib/sks and can be used as templates by renaming
70 to remove the .typical extension. The DB_CONFIG file has
71 to be in place before doing the database build, or the BDB
72 environment has to be manually cleared from both KDB and PTree.
73 The same applies if you are upgrading to this version with an existing KDB/Ptree,
74 using another version of BDB than 4.8; you need to clear the environment
75 using e.g. db4.6_recover -h . and db4.6_checkpoint -1h . in both KDB and PTree
76 Additionally a sample web interface has been installed as
77 web.typical in /var/lib/sks that can be used by renaming it to web
78 Important: It is strongly recommended to set up SKS behind a
79 reverse proxy. Instructions on properly configuring SKS can be
80 found at https://bitbucket.org/skskeyserver/sks-keyserver/wiki/Peering"
81
82 DEPEND="dev-lang/ocaml
83 dev-ml/cryptokit
84 sys-libs/db:4.8"
85 RDEPEND="${DEPEND}"
86
87 pkg_setup() {
88 ebegin "Creating named group and user"
89 enewgroup sks
90 enewuser sks -1 -1 /var/lib/sks sks
91 }
92
93 src_prepare() {
94 cp Makefile.local.unused Makefile.local || die
95 sed -i \
96 -e "s:^BDBLIB=.*$:BDBLIB=-L/usr/$(get_libdir):g" \
97 -e "s:^BDBINCLUDE=.*$:BDBINCLUDE=-I/usr/include/db4.8/:g" \
98 -e "s:^LIBDB=.*$:LIBDB=-ldb-4.8:g" \
99 -e "s:^PREFIX=.*$:PREFIX=${D}/usr:g" \
100 -e "s:^MANDIR=.*$:MANDIR=${D}/usr/share/man:g" \
101 Makefile.local || die
102 sed -i \
103 -e 's:^CAMLINCLUDE= -I lib -I bdb$:CAMLINCLUDE= -I lib -I bdb -I +cryptokit:g' \
104 -e 's:-Werror-implicit-function-declaration::g' \
105 Makefile bdb/Makefile || die
106 sed -i \
107 -e 's:/usr/sbin/sks:/usr/bin/sks:g' \
108 sks_build.sh || die
109
110 epatch "${FILESDIR}/${P}-eddsa.patch"
111 }
112
113 src_compile() {
114 emake dep
115 # sks build fails with paralell build in module Bdb
116 emake -j1 all
117 if use optimize; then
118 emake all.bc
119 fi
120 }
121
122 src_test() {
123 ./sks unit_test || die
124 }
125
126 src_install() {
127 if use optimize; then
128 emake install.bc
129 dosym /usr/bin/sks.bc usr/bin/sks
130 dosym /usr/bin/sks_add_mail.bc usr/bin/sks_add_mail
131 else
132 emake install
133 fi
134
135 dodoc README.md
136
137 newinitd "${FILESDIR}/sks-db.initd" sks-db
138 newinitd "${FILESDIR}/sks-recon.initd" sks-recon
139 newconfd "${FILESDIR}/sks.confd" sks
140 systemd_dounit "${FILESDIR}"/sks-db.service
141 systemd_dounit "${FILESDIR}"/sks-recon.service
142
143 dodir "/var/lib/sks/web.typical"
144 insinto /var/lib/sks
145 newins sampleConfig/DB_CONFIG DB_CONFIG.typical
146 newins sampleConfig/sksconf.typical sksconf.typical
147 insinto /var/lib/sks/web.typical
148 doins sampleWeb/HTML5/*
149
150 keepdir /var/lib/sks
151 readme.gentoo_create_doc
152 }
153
154 pkg_postinst() {
155 readme.gentoo_print_elog
156
157 if [[ -n ${REPLACING_VERSIONS} ]]; then
158 einfo "Note when upgrading from versions of SKS earlier than 1.1.4"
159 einfo "The default values for pagesize settings have changed. To continue"
160 einfo "using an existing DB without rebuilding, explicit settings have to be"
161 einfo "added to the sksconf file."
162 einfo "pagesize: 4"
163 einfo "ptree_pagesize: 1"
164 fi;
165 }