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/
Date: Sat, 08 Jul 2017 15:48:55
Message-Id: 1499528924.e0492c0e22b54bd83435627201953925f1669fb9.k_f@gentoo
1 commit: e0492c0e22b54bd83435627201953925f1669fb9
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 8 15:48:20 2017 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 8 15:48:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0492c0e
7
8 net-misc/sks: Cleanup old
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 net-misc/sks/sks-1.1.6-r1.ebuild | 117 ---------------------------------------
13 1 file changed, 117 deletions(-)
14
15 diff --git a/net-misc/sks/sks-1.1.6-r1.ebuild b/net-misc/sks/sks-1.1.6-r1.ebuild
16 deleted file mode 100644
17 index 8246327c4b0..00000000000
18 --- a/net-misc/sks/sks-1.1.6-r1.ebuild
19 +++ /dev/null
20 @@ -1,117 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -inherit multilib user readme.gentoo-r1 systemd
27 -
28 -DESCRIPTION="An OpenPGP keyserver which is decentralized with highly reliable synchronization"
29 -HOMEPAGE="https://bitbucket.org/skskeyserver/sks-keyserver"
30 -SRC_URI="https://bitbucket.org/skskeyserver/sks-keyserver/downloads/${P}.tgz"
31 -LICENSE="GPL-2"
32 -SLOT="0"
33 -KEYWORDS="amd64 ~x86"
34 -IUSE="optimize test"
35 -DOC_CONTENTS="To get sks running, first build the database,
36 -start the database, import atleast one key, then
37 -run a cleandb. See the sks man page for more information
38 -Typical DB_CONFIG file and sksconf has been installed
39 -in /var/lib/sks and can be used as templates by renaming
40 -to remove the .typical extension. The DB_CONFIG file has
41 -to be in place before doing the database build, or the BDB
42 -environment has to be manually cleared from both KDB and PTree.
43 -The same applies if you are upgrading to this version with an existing KDB/Ptree,
44 -using another version of BDB than 4.8; you need to clear the environment
45 -using e.g. db4.6_recover -h . and db4.6_checkpoint -1h . in both KDB and PTree
46 -Additionally a sample web interface has been installed as
47 -web.typical in /var/lib/sks that can be used by renaming it to web
48 -Important: It is strongly recommended to set up SKS behind a
49 -reverse proxy. Instructions on properly configuring SKS can be
50 -found at https://bitbucket.org/skskeyserver/sks-keyserver/wiki/Peering"
51 -
52 -DEPEND=">=dev-lang/ocaml-4.0
53 - dev-ml/findlib
54 - dev-ml/camlp4
55 - dev-ml/cryptokit:0/1.10
56 - sys-libs/db:5.3"
57 -RDEPEND="${DEPEND}"
58 -
59 -pkg_setup() {
60 - ebegin "Creating named group and user"
61 - enewgroup sks
62 - enewuser sks -1 -1 /var/lib/sks sks
63 -}
64 -
65 -src_prepare() {
66 - eapply "${FILESDIR}/${P}-unbundle-cryptokit.patch"
67 - cp Makefile.local.unused Makefile.local || die
68 - sed -i \
69 - -e "s:^BDBLIB=.*$:BDBLIB=-L/usr/$(get_libdir):g" \
70 - -e "s:^BDBINCLUDE=.*$:BDBINCLUDE=-I/usr/include/db5.3/:g" \
71 - -e "s:^LIBDB=.*$:LIBDB=-ldb-5.3:g" \
72 - -e "s:^PREFIX=.*$:PREFIX=${D}/usr:g" \
73 - -e "s:^MANDIR=.*$:MANDIR=${D}/usr/share/man:g" \
74 - Makefile.local || die
75 - sed -i \
76 - -e 's:^CAMLINCLUDE= -I lib -I bdb$:CAMLINCLUDE= -I lib -I bdb -I +cryptokit:g' \
77 - -e 's:-Werror-implicit-function-declaration::g' \
78 - Makefile bdb/Makefile || die
79 - sed -i \
80 - -e 's:/usr/sbin/sks:/usr/bin/sks:g' \
81 - sks_build.sh || die
82 - eapply_user
83 -}
84 -
85 -src_compile() {
86 - emake dep
87 - # sks build fails with paralell build in module Bdb
88 - emake -j1 all
89 - if use optimize; then
90 - emake all.bc
91 - fi
92 -}
93 -
94 -src_test() {
95 - ./sks unit_test || die
96 -}
97 -
98 -src_install() {
99 - if use optimize; then
100 - emake install.bc
101 - dosym /usr/bin/sks.bc usr/bin/sks
102 - dosym /usr/bin/sks_add_mail.bc usr/bin/sks_add_mail
103 - else
104 - emake install
105 - fi
106 -
107 - dodoc README.md
108 -
109 - newinitd "${FILESDIR}/sks-db.initd" sks-db
110 - newinitd "${FILESDIR}/sks-recon.initd" sks-recon
111 - newconfd "${FILESDIR}/sks.confd" sks
112 - systemd_dounit "${FILESDIR}"/sks-db.service
113 - systemd_dounit "${FILESDIR}"/sks-recon.service
114 -
115 - dodir "/var/lib/sks/web.typical"
116 - insinto /var/lib/sks
117 - newins sampleConfig/DB_CONFIG DB_CONFIG.typical
118 - newins sampleConfig/sksconf.typical sksconf.typical
119 - insinto /var/lib/sks/web.typical
120 - doins sampleWeb/HTML5/*
121 -
122 - keepdir /var/lib/sks
123 - readme.gentoo_create_doc
124 -}
125 -
126 -pkg_postinst() {
127 - readme.gentoo_print_elog
128 -
129 - if [[ -n ${REPLACING_VERSIONS} ]]; then
130 - einfo "Note when upgrading from versions of SKS earlier than 1.1.4"
131 - einfo "The default values for pagesize settings have changed. To continue"
132 - einfo "using an existing DB without rebuilding, explicit settings have to be"
133 - einfo "added to the sksconf file."
134 - einfo "pagesize: 4"
135 - einfo "ptree_pagesize: 1"
136 - fi;
137 -}