summaryrefslogtreecommitdiff
path: root/net-dns/rbldnsd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-05 04:27:10 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-05 04:27:10 +0100
commitf3f72d0d5f1ae9ee74acaa63ccb7a247468e73bf (patch)
treee67f56736e141f27487331c26096c4c0a51979a8 /net-dns/rbldnsd
parentfa275aeb316ed5e68498ca0057b27a1e9c887e26 (diff)
gentoo auto-resync : 05:10:2024 - 04:27:09
Diffstat (limited to 'net-dns/rbldnsd')
-rw-r--r--net-dns/rbldnsd/Manifest2
-rw-r--r--net-dns/rbldnsd/files/rbldnsd-0.998b-emalloc-typesig.patch34
-rw-r--r--net-dns/rbldnsd/rbldnsd-0.998b-r4.ebuild68
3 files changed, 104 insertions, 0 deletions
diff --git a/net-dns/rbldnsd/Manifest b/net-dns/rbldnsd/Manifest
index 617c5cc3c7e6..081bf1cce68e 100644
--- a/net-dns/rbldnsd/Manifest
+++ b/net-dns/rbldnsd/Manifest
@@ -1,8 +1,10 @@
AUX confd-0.997a 1375 BLAKE2B 61980080ecad7a64ed547f19de7ca827057cca1ed4c4c724c5600faa8e1f5ae2845fef95a39a79ba297155ca7a0c33e1ed38eff86de65e19cc6c38fdd7b89944 SHA512 c26f561a0906704c8eb32d8748428b120489cb02d0c9b5ea814b7b4eb71e2ccdddc153d442ebcc46789e65c8c3aa3a305bbf56e6030f3b9994c6d7d247120669
AUX initd-0.997a 546 BLAKE2B 6f7a5220598bc37e7b3c59db65fd38f17ed68c407a9ff1c486c2052fba166fbcd854bca5dc6cedf59b497998d968077b39e790168dc7e93ee62fa29b4c5864fa SHA512 2d18c5126ee1cf79e45881cf358f9d9299387dc1b2c0ee2433f85f617694ba11fb2c80703c18002995dc3d1f3d9d561b9b473a9c705b5b0c8ff282385b2e3170
AUX rbldnsd-0.998b-cstd.patch 5373 BLAKE2B 8788217ca4823337b7735ec87596fb6dc92eca1857559851757400119a12c6fb56f923a5e2fff1bd1dff42360f49c06dbcd355070a2f421c5abe67f23243857f SHA512 4cd739b7e10813aac34a606e2b9f4ab03f267b60faed89a8acee5bede4a68c4d561d7d788c57b0c076f6d07937c13775a4cea3aca85639999d79c67a5211e9ef
+AUX rbldnsd-0.998b-emalloc-typesig.patch 987 BLAKE2B c369be4b36e8c8055e6703f214ad619293e0faa7382fcfe9e219f740f8f95fe10778c76b047535a55bfa2e017dd8f386f50130432a2521f253d5ab7ef074e4e6 SHA512 308f1609743e423af8a2b2e6204b3bb158444e91a1b5f6cd7d755abb1959c6a51c57bd7d96252a196b2919af7a1d925e477129eda4573762e8a6d238cc150506
AUX rbldnsd-0.998b-mallinfo2.patch 1846 BLAKE2B 12ca80fec6d699921bf6bf04d03e5155da431e8b50ecea6cb61d96f6d2e89d4161e65ebc30675d03b3185a1232d93b609212daeb7d859eeba22c7378e1d8456b SHA512 3bb48f1804ddcc6850b5ed158f3d96c36ce2fd20f421c925b9a6ecf43842d64a9e6afb31eb26362a2a60379b07051441fe124f7e13aac1d95a6fb911c64062b9
AUX rbldnsd-0.998b-sys-poll.patch 1416 BLAKE2B cbffd0c2094a46c1b53a0a12ad20c18f44c8aaecb27d23a19b082c86c70b3b234dffa3e0d3495ec7f681fa8b42fe56541f7dc8d60c519a80eff3f742265f932b SHA512 92109d047b70c0391352108d042c414b3d6678a964a8c15c1a892d404f8642076326db68588074ec81639c6af99a38e10ac0cb7c1681a76d827aa0918312c26e
DIST rbldnsd-0.998b.tar.gz 154022 BLAKE2B f0bf03bef69853d45c3546c6fd3e58ffb95e76192ecb64f71f6799c6041749b1d117bed2bb21edbf1dec81d1684334b3af7d60b35d49089efb3a5e28752be6db SHA512 9b9c8694824a99b4ad120a22dbe4b05351867434e43ed0d8137990d3ece90ed67349965b6ed0450066d6663c1858545774c733b0d7afff304095de500ba30175
EBUILD rbldnsd-0.998b-r3.ebuild 1669 BLAKE2B 810ae2deaf656e34840d3ca2142635a9e88bae6bfb2bc778a4277bf39b09cf9c7d5030183e8b98d12d38150374d2b15756f5359249935adb90ce3337039e993c SHA512 7c2da29f4edc2342bcfb6091672282448aaba3effdeb22e3dcbb94fe4afd059d0288a21d44b6aab85f03d42197b335f262b19332c3010c47b338279d7aac27e5
+EBUILD rbldnsd-0.998b-r4.ebuild 1723 BLAKE2B e6a436b94be7ca74a43cd3801099e3ed0d99879028bc829f48a5e98ca210e46d55887fe2e55c08839c746e70b2ff11971e4345f634256f14d8edfbc938ad74c1 SHA512 edeb166193c3bdb61df347079da1e4a3697fc5bf7622ca4507cd714ba9e4ea36281a3b7cb37a958e6fc59e57cb23bb1ac9b38ca5505b2a47f692875067daad33
MISC metadata.xml 1418 BLAKE2B 679c1b0228b34031facaa412144d2c31ca58b5f681ae51db198d7a0042c9c27f5688b5f0b5bb6fadf47d9fda5c87c4e924f27e7c8c6c83508af755ecce56cee4 SHA512 543b3c93fb1f56ac37d97a563eebece5593bcda75fc9a6d604d2ff33c16201c57470db99ee8da38ef69a34c0bb477306c3f296366b1b82538abe4e23dfabffa8
diff --git a/net-dns/rbldnsd/files/rbldnsd-0.998b-emalloc-typesig.patch b/net-dns/rbldnsd/files/rbldnsd-0.998b-emalloc-typesig.patch
new file mode 100644
index 000000000000..9d66f8514890
--- /dev/null
+++ b/net-dns/rbldnsd/files/rbldnsd-0.998b-emalloc-typesig.patch
@@ -0,0 +1,34 @@
+From 5ba62bded7e26a0a6f3877491c7f102b3cf67e5e Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Fri, 4 Oct 2024 15:02:09 -0400
+Subject: [PATCH] mempool.c: fix type signature of emalloc()
+
+This file declares emalloc() as,
+
+ void *emalloc(unsigned size);
+
+whereas the actual implementation of emalloc in rbldnsd_util.c is,
+
+ char *emalloc(size_t size);
+
+The mismatch can cause problems for link-time optimization; in
+particular it causes a warning to be raised -Wlto-type-mismatch.
+On Gentoo, for example, we encourage users of LTO to build with
+that warning enabled and promoted to an error.
+---
+ mempool.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mempool.c b/mempool.c
+index 2abbf3a..dd0d733 100644
+--- a/mempool.c
++++ b/mempool.c
+@@ -18,7 +18,7 @@
+ #define alignto sizeof(void*)
+ #define alignmask (alignto-1)
+
+-void *emalloc(unsigned size);
++char *emalloc(size_t size);
+
+ #define MEMPOOL_CHUNKSIZE (65536-sizeof(unsigned)*4)
+
diff --git a/net-dns/rbldnsd/rbldnsd-0.998b-r4.ebuild b/net-dns/rbldnsd/rbldnsd-0.998b-r4.ebuild
new file mode 100644
index 000000000000..8d32672045f6
--- /dev/null
+++ b/net-dns/rbldnsd/rbldnsd-0.998b-r4.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="DNS server designed to serve blacklist zones"
+HOMEPAGE="https://rbldnsd.io/"
+SRC_URI="https://github.com/spamhaus/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~sparc ~x86"
+IUSE="ipv6 zlib"
+
+RDEPEND="zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ acct-group/rbldns
+ acct-user/rbldns
+"
+
+# The test suite was dropped from the ebuild because it requires
+# python-2.7, and it will crash if you try to run it now.
+RESTRICT=test
+
+# This check properly includes malloc.h; if mallinfo2
+# is "implicitly defined," then it's not there.
+QA_CONFIG_IMPL_DECL_SKIP=(
+ mallinfo2
+)
+
+PATCHES=(
+ "${FILESDIR}/rbldnsd-0.998b-cstd.patch"
+ "${FILESDIR}/rbldnsd-0.998b-sys-poll.patch"
+ "${FILESDIR}/rbldnsd-0.998b-mallinfo2.patch"
+ "${FILESDIR}/rbldnsd-0.998b-emalloc-typesig.patch"
+)
+
+src_configure() {
+ # The ./configure file is handwritten and doesn't support a `make
+ # install` target, so there are no --prefix options. The econf
+ # function appends those automatically, so we can't use it. We
+ # Have to set $CC here, too (and not just in the call to emake),
+ # because the ./configure script checks for it.
+ CC="$(tc-getCC)" ./configure \
+ $(use_enable ipv6) \
+ $(use_enable zlib) \
+ || die "./configure failed"
+}
+
+src_compile() {
+ emake \
+ AR="$(tc-getAR)" \
+ CC="$(tc-getCC)" \
+ RANLIB="$(tc-getRANLIB)"
+}
+
+src_install() {
+ einstalldocs
+ dosbin rbldnsd
+ doman rbldnsd.8
+ newinitd "${FILESDIR}"/initd-0.997a rbldnsd
+ newconfd "${FILESDIR}"/confd-0.997a rbldnsd
+ diropts -g rbldns -o rbldns -m 0750
+ keepdir /var/db/rbldnsd
+}