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