Gentoo Archives: gentoo-commits

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