diff options
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/Manifest.gz | bin | 24794 -> 24793 bytes | |||
-rw-r--r-- | app-crypt/onak/Manifest | 2 | ||||
-rw-r--r-- | app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch | 15 | ||||
-rw-r--r-- | app-crypt/onak/onak-0.5.0-r1.ebuild | 54 |
4 files changed, 71 insertions, 0 deletions
diff --git a/app-crypt/Manifest.gz b/app-crypt/Manifest.gz Binary files differindex 23ced9d6336e..8bb801153632 100644 --- a/app-crypt/Manifest.gz +++ b/app-crypt/Manifest.gz diff --git a/app-crypt/onak/Manifest b/app-crypt/onak/Manifest index 5a7dc7cfd56a..872c38259a8b 100644 --- a/app-crypt/onak/Manifest +++ b/app-crypt/onak/Manifest @@ -1,3 +1,5 @@ +AUX onak-0.5.0-musl-strtouq-fix.patch 353 BLAKE2B b5930a61c157073072e8dac9bf38c195cbfa4a0da8d7c424d8cf6e7845b63003b87be65cb0ed509f40dcb275034b05f0581507c2d0f2569ebe6fb67dd4c2913b SHA512 8b9dd23c05f14453d1d3cd5349fe1af7c0fd4713c882835600b2825854c02c2944e9a3f932888e7c26e439d98c5aac57527198db3e634908d9d31e1c3f6fb3ec DIST onak-0.5.0.tar.xz 240764 BLAKE2B a42d9a97137ae7fb403d8a20f2a9a5b5060d216fca97447630c8e8659440d5baa0c6e0fbe983feec8b4061263decc1183868055fe53c0797d49dd1f2e4c141f8 SHA512 db38793acc82089089ac0b9fb6db9989b6bb8e94c35c14112d028d12f7bb7553b7409121378346625528c4916506d007bf40963f4a346483f51a23b670680a7d +EBUILD onak-0.5.0-r1.ebuild 1072 BLAKE2B 9b46f3f2266676601f8be4ed9484912f89fa6abf77088761d02d7237977fe70f6ef4254524ba204a72bef9acc513dbcc843f1cf1debcc925849bf7b27ea7db18 SHA512 3816329df3635c81f7aa03ddb655dee7f552f03085936c88a228ed92510af2f5c0aa11cd78217dc5279a0145d094d760e61c0330e1282b9e5dd17ab19f943f76 EBUILD onak-0.5.0.ebuild 1012 BLAKE2B 3dacd0c3dd3afc4b74018f8056f5acc74bd8cbacbdb9c82f553264f12894d2815b953828284adf878b2a31d0d6c8cf15f3189767de5505fcf11ccbc982a93ed7 SHA512 b10740cf0ca4c1790acf7d7584c9e64e7865ef4159a2d56a034da96f0adc48c246efe50bdb986c32d317471a1f680e5f77b12c3bb0e3b301ac14fa4d1b92f423 MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3 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 +} |