summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2023-09-05 03:57:39 +0000
committerJoonas Niilola <juippis@gentoo.org>2023-10-06 15:58:04 +0300
commit59175325c2aee946c8d8bdde473ddff2131a0d7e (patch)
tree1be3c1457b14995a8b9ae515d7985bb51f5a4921 /app-crypt/onak
parentmedia-libs/libvmaf: add 9999 (diff)
downloadgentoo-59175325c2aee946c8d8bdde473ddff2131a0d7e.tar.gz
gentoo-59175325c2aee946c8d8bdde473ddff2131a0d7e.tar.bz2
gentoo-59175325c2aee946c8d8bdde473ddff2131a0d7e.zip
app-crypt/onak: Fix call to undeclared function strtouq
Closes: https://bugs.gentoo.org/894352 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32615 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-crypt/onak')
-rw-r--r--app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch15
-rw-r--r--app-crypt/onak/onak-0.5.0-r1.ebuild54
2 files changed, 69 insertions, 0 deletions
diff --git a/app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch b/app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch
new file mode 100644
index 000000000000..a39a8a23ceeb
--- /dev/null
+++ b/app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch
@@ -0,0 +1,15 @@
+Bug: https://bugs.gentoo.org/894352
+--- a/onak.c
++++ b/onak.c
+@@ -337,7 +337,11 @@ int main(int argc, char *argv[])
+ }
+ isfp = true;
+ } else if (search != NULL) {
++#if defined(__GLIBC__)
+ keyid = strtouq(search, &end, 16);
++#else
++ keyid = strtoull(search, &end, 16);
++#endif
+ if (*search != 0 &&
+ end != NULL &&
+ *end == 0) {
diff --git a/app-crypt/onak/onak-0.5.0-r1.ebuild b/app-crypt/onak/onak-0.5.0-r1.ebuild
new file mode 100644
index 000000000000..8f6e57df567a
--- /dev/null
+++ b/app-crypt/onak/onak-0.5.0-r1.ebuild
@@ -0,0 +1,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
+}