blob: 8f6e57df567ac80188a5f0892e2294209ce6fe08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="onak is an OpenPGP keyserver"
HOMEPAGE="http://www.earth.li/projectpurple/progs/onak.html"
SRC_URI="http://www.earth.li/projectpurple/files/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="berkdb postgres"
DEPEND="berkdb? ( >=sys-libs/db-4 )
postgres? ( dev-db/postgresql[server] )"
DOCS=(
apache2 README LICENSE onak.sql
)
# it tries to use all backends?
RESTRICT="test"
PATCHES=(
"${FILESDIR}"/${PN}-0.5.0-musl-strtouq-fix.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
local backend="fs"
use berkdb && backend="db4"
use postgres && backend="pg"
if use berkdb && use postgres; then
ewarn "berkdb and postgres requested, postgres was preferred"
fi
econf --localstatedir=/var --enable-backend="${backend}"
}
src_install() {
default
insinto /etc
doins onak.ini
keepdir /var/lib/onak
insinto /usr/lib/cgi-bin/pks
dodir /usr/lib/cgi-bin/pks
doins add gpgwww lookup
}
|