net-misc/sks: version bump to 1.1.6 (-r1)
authorKristian Fiskerstrand <kf@sumptuouscapital.com>
Sun, 7 Aug 2016 14:03:35 +0000 (16:03 +0200)
committerKristian Fiskerstrand <kf@sumptuouscapital.com>
Sun, 7 Aug 2016 14:03:35 +0000 (16:03 +0200)
Deviating from main tree by depending on BDB 5.3

net-misc/sks/Manifest
net-misc/sks/sks-1.1.6-r1.ebuild [new file with mode: 0644]

index ffffe74..a198ad2 100644 (file)
@@ -3,5 +3,7 @@ AUX sks-db.service 174 SHA256 a6ae25f8f4b4ead48046ce31af89cbc0cd2fb7acc80d6ae241
 AUX sks-recon.initd 592 SHA256 85ef9ab277082e6440a300dc3e1f7b94365a892982c073b1133d9b26a5292295 SHA512 5ea71ae4dc0cad2bf603ba450037507b96d059be9be1d3d8afff2fd0eeca06aa583480065d6bbb22e9ba453e959d7fbd2a1d6a00287abc97930e859f725002f8 WHIRLPOOL 7f74824e12028986ba86a56b0668f8f63dad55ccf7baa452ac72115bacadbded23e072787c4e4ae2e40cdff2d7b439bbbaddacaa8e275c6ebb89520066f643e1
 AUX sks-recon.service 187 SHA256 bb68920796fb0fd22ccc433306b65ff988125884988bb3d5beb0449d7e30389d SHA512 45c2734c67fa55f12431a8f80256fc25c2645ad5d0ce148c389c1ac73550354efb65681bc4ac6f319149737759de3de5ea75bdd1f8e927ca76408599ea3dd4ef WHIRLPOOL b260bc4bc1091e96aed0d5e94e80574b3679449962b0dc4953e40a222cc050fc08751d33b64200de01af964b054ee65e15c4d52f7c45f8f01d80cd27e7d0df0a
 AUX sks.confd 87 SHA256 811498c2c964ee109dcbf617682addf0631172bb75e9b221af5b4084f4720214 SHA512 617067acb45e7326ad79726302a1eea9bbebaaad905d5f586469056fe01ff8a3f5cfba1f43dcdec456ffe5c31058b80e3c9f2acbb1d19a9640fee073a2cf3660 WHIRLPOOL 0ee221d86ca478af20aa9e8530eff79ecd0181dbf52da282d41fed6881a6649335281f1907e486bdc1dd4877b930265aefb3e5d189cd6b5c270d383abf329fc7
+DIST sks-1.1.6.tgz 361359 SHA256 1339e26509d1fdabc5590df263bd4b28a4d69656ebb50e0bcdebec16d16bfad9 SHA512 6cea61d5ae797eddcdf13e6ebfef93d9dc2f026c37bf586ad5b742847b29be4e73c1cd28f8b34700c6d1f9a951702f1096dc5cbbbbdc5c987e7b9157f40fa667 WHIRLPOOL 7d2313ff62a5b5ba5e09107098dcacf85403014a8c08cc4a62ae089ea2d75193d6c362937fce28ee68b7aa5cb9e51f43a5dbc10b8b646532c8d83285c7feb55f
+EBUILD sks-1.1.6-r1.ebuild 3567 SHA256 874de74e2ab70d1b7a8860d4f209936812d62fd9bf2a3a6a518bf5ceb1a1d9d8 SHA512 707fdd08097ec2cbbbc9469bce0dd2a17e592d6d410660187df5047c40981b8d4d674a48287911646213bb5ea3f4e122bc09515a779a0e0b5548fb360b56943e WHIRLPOOL 7ece405750c8d6395d3955529ccc26ad2bd2154053d029cd211e067c3b51f5d33494d5c61e28fe7f1ff453083e5d307876a48ef2be674dccf7ab871582b02206
 EBUILD sks-9999.ebuild 3772 SHA256 e4cfd303edcad26df86637e0840c440c6415bf9c4f165953f0700cc5b35b86ef SHA512 949f0c02e88d5c0cd157a1a6404ab8150ea01891e64e837c991214cf503cc2d8af496a6fdf00923732b9a85f3970ee49bfc6cd957d9c4bfaab7ded1c11389610 WHIRLPOOL b5c527b5864913a493de162510b77f01b6ba123a943a1905c05717d2e3ce4680098f8611533667cf50b8febd6c104d72c8aa53af7042368fb5762b99922e1715
 MISC metadata.xml 379 SHA256 62e2a66602fa78c8762d735ea81e3f02737a014a7b0057d9b3668950bbc370f9 SHA512 0e2b7237549e7e302176f772df2e94b5212c3d624e6750ba6e364922e36645453ae5e45a0c07b4a964741ad80a16a923845aa79710eff288a4e7d27428a545e1 WHIRLPOOL 9ce01763df9cd85a3de610eb70e606cdc9c14f06d88437c6f6858fd8c2a39864198ed1a8b5eea7c9117e314738083bdcc72556ba9dd5d8b4d09d950ab0bbfc72
diff --git a/net-misc/sks/sks-1.1.6-r1.ebuild b/net-misc/sks/sks-1.1.6-r1.ebuild
new file mode 100644 (file)
index 0000000..42867e8
--- /dev/null
@@ -0,0 +1,115 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib user readme.gentoo systemd
+
+DESCRIPTION="An OpenPGP keyserver which is decentralized with highly reliable synchronization"
+HOMEPAGE="https://bitbucket.org/skskeyserver/sks-keyserver"
+SRC_URI="https://bitbucket.org/skskeyserver/sks-keyserver/downloads/${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="optimize test"
+DOC_CONTENTS="To get sks running, first build the database,
+start the databse, import atleast one key, then
+run a cleandb. See the sks man page for more information
+Typical DB_CONFIG file and sksconf has been installed
+in /var/lib/sks and can be used as templates by renaming
+to remove the .typical extension. The DB_CONFIG file has
+to be in place before doing the database build, or the BDB
+environment has to be manually cleared from both KDB and PTree.
+The same applies if you are upgrading to this version with an existing KDB/Ptree,
+using another version of BDB than 5.3; you need to clear the environment
+using e.g. db4.6_recover -h . and db4.6_checkpoint -1h . in both KDB and PTree
+Additionally a sample web interface has been installed as
+web.typical in /var/lib/sks that can be used by renaming it to web
+Important: It is strongly recommended to set up SKS behind a
+reverse proxy. Instructions on properly configuring SKS can be
+found at https://bitbucket.org/skskeyserver/sks-keyserver/wiki/Peering"
+
+DEPEND=">=dev-lang/ocaml-4.0
+       dev-ml/camlp4
+       dev-ml/cryptokit
+       sys-libs/db:5.3"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+       ebegin "Creating named group and user"
+       enewgroup sks
+       enewuser sks -1 -1 /var/lib/sks sks
+}
+
+src_prepare() {
+       cp Makefile.local.unused Makefile.local || die
+       sed -i \
+               -e "s:^BDBLIB=.*$:BDBLIB=-L/usr/$(get_libdir):g" \
+               -e "s:^BDBINCLUDE=.*$:BDBINCLUDE=-I/usr/include/db5.3/:g" \
+               -e "s:^LIBDB=.*$:LIBDB=-ldb-5.3:g" \
+               -e "s:^PREFIX=.*$:PREFIX=${D}/usr:g" \
+               -e "s:^MANDIR=.*$:MANDIR=${D}/usr/share/man:g" \
+               Makefile.local || die
+       sed -i \
+               -e 's:^CAMLINCLUDE= -I lib -I bdb$:CAMLINCLUDE= -I lib -I bdb -I +cryptokit:g' \
+               -e 's:-Werror-implicit-function-declaration::g' \
+               Makefile bdb/Makefile || die
+       sed -i \
+               -e 's:/usr/sbin/sks:/usr/bin/sks:g' \
+               sks_build.sh || die
+}
+
+src_compile() {
+       emake dep
+       # sks build fails with paralell build in module Bdb
+       emake -j1 all
+       if use optimize; then
+               emake all.bc
+       fi
+}
+
+src_test() {
+       ./sks unit_test || die
+}
+
+src_install() {
+       if use optimize; then
+               emake install.bc
+               dosym /usr/bin/sks.bc usr/bin/sks
+               dosym /usr/bin/sks_add_mail.bc usr/bin/sks_add_mail
+       else
+               emake install
+       fi
+
+       dodoc README.md
+
+       newinitd "${FILESDIR}/sks-db.initd" sks-db
+       newinitd "${FILESDIR}/sks-recon.initd" sks-recon
+       newconfd "${FILESDIR}/sks.confd" sks
+       systemd_dounit "${FILESDIR}"/sks-db.service
+       systemd_dounit "${FILESDIR}"/sks-recon.service
+
+       dodir "/var/lib/sks/web.typical"
+       insinto /var/lib/sks
+       newins sampleConfig/DB_CONFIG DB_CONFIG.typical
+       newins sampleConfig/sksconf.typical sksconf.typical
+       insinto /var/lib/sks/web.typical
+       doins sampleWeb/HTML5/*
+
+       keepdir /var/lib/sks
+       readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+
+       if [[ -n ${REPLACING_VERSIONS} ]]; then
+               einfo "Note when upgrading from versions of SKS earlier than 1.1.4"
+               einfo "The default values for pagesize settings have changed. To continue"
+               einfo "using an existing DB without rebuilding, explicit settings have to be"
+               einfo "added to the sksconf file."
+               einfo "pagesize:       4"
+               einfo "ptree_pagesize: 1"
+       fi;
+}