diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-04-08 08:43:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-04-08 08:43:12 +0100 |
commit | e81d2dd033df3a61b874a9a37f951ca05eead86f (patch) | |
tree | 82bfb1314b75b6c04de41a378a4838b7a18b0d68 /net-libs | |
parent | 288d9455931660abb6dfa534a78d45c7fb901477 (diff) |
gentoo auto-resync : 08:04:2025 - 08:43:11
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/Manifest.gz | bin | 30640 -> 30636 bytes | |||
-rw-r--r-- | net-libs/courier-authlib/Manifest | 2 | ||||
-rw-r--r-- | net-libs/courier-authlib/courier-authlib-0.72.4.ebuild | 149 | ||||
-rw-r--r-- | net-libs/courier-unicode/Manifest | 2 | ||||
-rw-r--r-- | net-libs/courier-unicode/courier-unicode-2.3.2.ebuild | 22 | ||||
-rw-r--r-- | net-libs/ldns/Manifest | 2 | ||||
-rw-r--r-- | net-libs/ldns/files/ldns-1.8.4-swig-4.3.0.patch | 127 | ||||
-rw-r--r-- | net-libs/ldns/ldns-1.8.4-r1.ebuild | 90 |
8 files changed, 394 insertions, 0 deletions
diff --git a/net-libs/Manifest.gz b/net-libs/Manifest.gz Binary files differindex 5d54d967cbaf..e5cf8e85302e 100644 --- a/net-libs/Manifest.gz +++ b/net-libs/Manifest.gz diff --git a/net-libs/courier-authlib/Manifest b/net-libs/courier-authlib/Manifest index 3899b78bdb2d..58d2eab71632 100644 --- a/net-libs/courier-authlib/Manifest +++ b/net-libs/courier-authlib/Manifest @@ -1,6 +1,8 @@ AUX courier-authlib-r2 978 BLAKE2B e49effed437cc9fd76404054e014a87bf2a207c68c1a440293d73da748d423aca137031a2b043e832f5009f2384f3f7ae352c2d10dfccfeb6082fd42aa1513bb SHA512 8681f041431150027f41058ae8dd5fb2105a74caecb096aef42b1f0e255026c2f8509d9f688f2725ab1e12b792604cb481a95a6eeb177967c16ae5e3390f44d4 DIST courier-authlib-0.72.1.tar.bz2 2288448 BLAKE2B 0af13cb4d4e8661011acae46c7134ed7d76b5d114129846397bbaf95db3d05ac792a99c9088e1101c0d8f040bccace9e813d54bc864cabb67ba2501701567bce SHA512 2e46f3ee91dc3b0e81e1f2fb2ebae9615fd1bc2349946167ebb0d6701fc60f1ed754f0d9de160730b45991869ab30849f153a0e523777f5eae28f8a38426e814 DIST courier-authlib-0.72.3.tar.bz2 2289793 BLAKE2B 41e28e3d48a7586e54758d49324f51ba4e565186d4f1765301c1592474d2c57ddc62e088739f8c16d51abca86cdcb94745756bbdf9b06f6cd5197b52f145e367 SHA512 9a2901c15605611e139d8066e01ea94db9b0dda65e9fd8b6b0d50946fd0ca9805be212cfcb9d35b0e953b0d2f0d90dd2063410700a5eb4a2f2cb9fc184ac7fa2 +DIST courier-authlib-0.72.4.tar.bz2 2290493 BLAKE2B d49873d4d89770dcd8983fd055b7167dcb9e014bba574b7bbb6efacd814d8200bfdde0aaa74b669dc5ebae4e630c1faf18c2a0d370de36f1cc2c87edd5b34dab SHA512 283ad14bfca2405f390aa5c2e45198c6b5cc279335534057c13f418980fc3de18acf997e88f3d433e85e68473076703a52f6851bce0c470439ae1b8def1c2532 EBUILD courier-authlib-0.72.1.ebuild 4488 BLAKE2B 498852f7933a3cd9c46424a4e6d3d868d8124c71422aabea1a00704ce0963c61e549e9e307282f3343ba7c3ca93d786cdb2890038b9887a176903f6689b26b92 SHA512 adeebe12d04813d551248d8b594ce30555feb1333494a0a516a6f9f5cb53b71f420d0ccaea731325aee54bc9911db32d336a416f074bd1ace06c945165f7bbef EBUILD courier-authlib-0.72.3.ebuild 4486 BLAKE2B b863864690b24a9de60ff3796135e572a39ccc1df9dd86fe3946bdc8146f0cd4cc84397055efad9b257ebf87e1e2a7653b42a6ef9e5a02e22d470ee00cb23beb SHA512 0c0e835bf386ecdb1318103c09212105afac1ce6cbda4838bc5185fdad7b7e6a10eaf653b94c373068f859636c3ad72f570b2fcaa6e5272eb39545fe454048e2 +EBUILD courier-authlib-0.72.4.ebuild 4494 BLAKE2B 5c9d6c4c8b4d342e2d76d310d4b9363a423ea3f259cea2a0e54b68e02a93156839627d780fce6793f0bd6297dfb0a5b870056c215241df02a0233fe1fd33c73d SHA512 650e3a164295b3d22be6f9e3ccd06a38f5f2dbffa14f16d2cbc740d47a8fa9c60b0c1653026ca261bcf4f28c4c709ba748c63fe4c7b1cd0f63549e0e873503db MISC metadata.xml 302 BLAKE2B f4a6bbc1e616a769172499ca1f863a8e43d608e25d2a99a6384fd0a0880e4e23f2c64c97404ad80ae12c3cd23eda5854ded0ed2c9000875c701aa22ff70b9e80 SHA512 3f25d55e6f6169b696d210cfbd7df486337885cd0905b62d307e6b3fd1595ac1471dccb59794ecfe0bbcd009339348ef7bb9debb4752533d1b28043cb5d1f918 diff --git a/net-libs/courier-authlib/courier-authlib-0.72.4.ebuild b/net-libs/courier-authlib/courier-authlib-0.72.4.ebuild new file mode 100644 index 000000000000..53be785a93ac --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.72.4.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +DESCRIPTION="Courier authentication library" +HOMEPAGE="https://www.courier-mta.org/authlib/" +SRC_URI="https://downloads.sourceforge.net/courier/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" + +RESTRICT="!berkdb? ( test )" + +DEPEND="net-mail/mailbase + >=net-libs/courier-unicode-2.3.2:= + virtual/libcrypt:= + dev-libs/libltdl + gdbm? ( sys-libs/gdbm:= ) + !gdbm? ( sys-libs/db:= ) + dev-libs/openssl:0= + ldap? ( >=net-nds/openldap-1.2.11:= ) + mysql? ( dev-db/mysql-connector-c:= ) + pam? ( sys-libs/pam ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + + DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) + HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) + if use mysql ; then + DOCS+=( README.authmysql.myownquery ) + HTML_DOCS+=( README.authmysql.html ) + fi + if use postgres ; then + HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) + fi + if use ldap ; then + DOCS+=( README.ldap ) + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) + fi + einstalldocs + + newinitd "${FILESDIR}/${PN}-r2" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi +} diff --git a/net-libs/courier-unicode/Manifest b/net-libs/courier-unicode/Manifest index 5463d678b3a2..2b6ebb799628 100644 --- a/net-libs/courier-unicode/Manifest +++ b/net-libs/courier-unicode/Manifest @@ -1,5 +1,7 @@ DIST courier-unicode-2.3.0.tar.bz2 657354 BLAKE2B 4ccb4743330b5da8b4ab8f39d3ca186bcb826ef466a909d6cc011df5c2e15a8d547cf59f44dc40a02108d08695fa2747eab0050c3cd3e913277c9cc32ddf61db SHA512 f0db382a5c3fbe76fa1395e90f5f5489f83e95753f95058aa1c1b16dbcd5aba0425e88674337d18d32d00ed932609c3e984ae684bb122fea40eaae9489f470d4 DIST courier-unicode-2.3.1.tar.bz2 657748 BLAKE2B a5e07741d410e212b3cf55ee690f794a0a133fea1bdcb181c1630f113588f0301d0a253770395bb5f1996321569dfe7c1e06b2918026575cef04b3233199386c SHA512 ee515e06364075d40c3204073cd828f5f663ec9cfe97259d38a5b30f0452f44073192685e408cd92aa93550bf61c2fe6dd5261845f7934ffa44b6f3a475edda6 +DIST courier-unicode-2.3.2.tar.bz2 658384 BLAKE2B 23bff8819c1befe89f6f16936637d4cad10999522b3351db32525773ea77e70e419bc96dcb419bc1df3c390c0644280878624b3de65984cdec78e83f2d27df1a SHA512 152574fe918ef66f29ef5b082dcbaafa136c6a987db747dff0572d5a1fa33bbb94bb31ee1f7b4ab8b11dc1627187792eae85cc2f4ad9fdfbce89f8160d8563c8 EBUILD courier-unicode-2.3.0.ebuild 541 BLAKE2B 76416cb7eef80ef4518894bf3770d2b9b7e802b136f332767c88fa077aa47243b582a0470279f888c47d10226535b4741b61ad72aa360915eedc2d8084467164 SHA512 e53a787b7b8a25cb3c86aff77f6a189d3fa675134530f9c4b2185dc6d74e6664eceed4a2bdc21e31b649b0deb60223f57dae4fe347529d942c913f86eeebf5c9 EBUILD courier-unicode-2.3.1.ebuild 539 BLAKE2B 7e951d546fe75e0175303ee8ffd98904b898b8685de1b9f5de08c747ea3bbc349a13fbb732524326a03530690514263c84ed5df44f2b98e383bc3feaf961dd02 SHA512 ea837d766048eeccc0622d8d6d82b113101023f6acb6e0546001d8f528de59db076c859369792732cb83b351d338814408ea4fed656100209ddd2dc663826159 +EBUILD courier-unicode-2.3.2.ebuild 547 BLAKE2B 16975c55e82db703d0d27c5afef812bdfdbcd253a1f614fbcec4716fdf725bbdeb65320309b39b7b1e5774c158087daaa8ae0cffc9044be7d79efa9fa752fd86 SHA512 b045631f28bae4641a1fd8ce1f926aebd9f737cb7679bcac60597ad1c0a5bd5fef6a6648456a7448ef07a0bec6831e0409db9816fcf0d7da220adea96292d8c0 MISC metadata.xml 294 BLAKE2B 529ed84dfbb6d03b115e2ed70383004be4908c1164d320822c212a7be40ce17d6dab03fdf76bdc8c4fb2355bf74b3a9d0dbf403556867c34532c7f0d497715bc SHA512 bd738845d02840a3e451e87ccded91513d5d7d23f4a4a0efff9ea7ce24debb1b41c4283be1898bb6b1a354c91a765c4a5e83c0745ec069865e57a0ce77c5f273 diff --git a/net-libs/courier-unicode/courier-unicode-2.3.2.ebuild b/net-libs/courier-unicode/courier-unicode-2.3.2.ebuild new file mode 100644 index 000000000000..9f375f85548e --- /dev/null +++ b/net-libs/courier-unicode/courier-unicode-2.3.2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Unicode library used by the courier mail server" +HOMEPAGE="https://www.courier-mta.org/" +SRC_URI="https://downloads.sourceforge.net/courier/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0/7" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +src_configure() { + econf --disable-static +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die + dodoc AUTHORS ChangeLog README +} diff --git a/net-libs/ldns/Manifest b/net-libs/ldns/Manifest index c7fbde8e3a0c..048b0ebbfb5e 100644 --- a/net-libs/ldns/Manifest +++ b/net-libs/ldns/Manifest @@ -2,8 +2,10 @@ AUX ldns-1.8.1-pkgconfig.patch 273 BLAKE2B 8605665fa76e2493efa4d773742e84a7b1df8 AUX ldns-1.8.3-configure-strict.patch 3873 BLAKE2B bf4ae24f786a34e43833d1ce1b7650db32f49ce272340c26887d920b20a5a951a5e4ee1a1d8e8efea96e60ae1e009f7261402fc59a6283dba893182782c0fd14 SHA512 a6bd3fc5a38ad7d0cd95cea36f61ff3e40978c953aa723f769442e43aa829ca8787f33ad086254af391b1b68a99402a61dcbcb3f9e86c8c17357a88ce0f082f5 AUX ldns-1.8.3-docs.patch 3940 BLAKE2B bf0823b32dcf5935fdccee131aa52f597a229c8df9575e3018cc733eba050c56ebc79049d064775fc599ca28e92ee5da67d784209faf8a9d30ebd72586cc1b7e SHA512 88ea628be7bd188e7ed95a5d41f8ca39d1e8d576bfd5ea59cdb3f1f4319fbb435889e50aa150a50ef8ee4a4e572d2352432aab50832769b6729ad588e7b67c86 AUX ldns-1.8.3-swig-4.2.0.patch 2935 BLAKE2B 15626ba3f3835bc9e3f86a639177eb6ceb8acb23cccd273dab771f7a5faad72312585da0360d19da0bc62440bbc930279ae56a26d9f2d66d4a6d070e0071d066 SHA512 3de12a7524e0c090a4f5d5e9a6770de811eadd9ac492b674ccd706cd826d13f1adf5c1b4474a11ba1d449562fed34b27ad4800e43da09d3c74ae267dc4a01e82 +AUX ldns-1.8.4-swig-4.3.0.patch 5164 BLAKE2B e6f136bd9c35377528d3f743fd4ae43ce5ad1336c021d5314a21c3030cf6d048b7c60a5f4f74ffd7a856be6c4a1b6ade2793fca551e6e537241c54e8333679ca SHA512 7cccafa7c3115ffdd2eb815093c895981d1e0ad7c19617944c8b74a8814a1d665bcbe8bb286d99d37648e5f68f6c4b84d60f94d50146b0a640d458cf884ce532 DIST ldns-1.8.3.tar.gz 1299856 BLAKE2B 2250445da3beec76c96fbb5cbc00f8d6a5bb6ed5867da7f23511d46ac73d6101303eb6ad85def426b7f9287f6a629a95117bcfa6eb46b775d07ed84048162c7f SHA512 c318747bd975ade389d048680b80495fb083b46507d8dcea7d4d42c75823f56a35b438dcc5320803d39583e5a1e515a51686f7f9010c061a6e8199e1a5505ae9 DIST ldns-1.8.4.tar.gz 1301058 BLAKE2B 26003c816c380a58c441f70cb2ea37b7e1402383bc35fbaceae1668af5f591f4cdd04e9ef90655a87ef2ec505a06c1d5c802ed2a80414464ef2e89f4349b995c SHA512 3ee26289bfe587fb19b7441412917d7f7197e385cc1329847c1ae707650709a1ccef7d4a645bd85da89effad95715ec868ef312e5f336d3fe2e408e8109439fc EBUILD ldns-1.8.3-r3.ebuild 2132 BLAKE2B 611be61eae2088d74197fe9086f691d66703085db8747c02766ede0177f61d22096883f77a60939150f0bdfddbd2fc839f7a98a458e8118af730795d7f6095b4 SHA512 b2b376366cbe0bec7bcc7f3227f4b6d30774abffdc5fce46537d21aade41022bf7580d1d6069a85d917edb3a16d2c94a7be8998564a966d95b6c7f82e7b8bbe1 +EBUILD ldns-1.8.4-r1.ebuild 1993 BLAKE2B c0ab1d2f6c7605cd56636585298ecbe103de7f5a24f09e7a28d8d705c6d62934efbb1b09a448ad2c2cc8d223f7f06d32b305f6c0b954fc953944b9563b0fa406 SHA512 6def691f1529946ffbfad97ac2ad68f865499d3b0553e55f5b08e70be6416541a6abc06506fb78a7839b3a4298a1ea227c6be8a6b519f294672a583d8a72e2a3 EBUILD ldns-1.8.4.ebuild 1942 BLAKE2B f56134b3854f747c040b86022f932eeb9cd430910a4a25b6845641e47e85f967e85ace81cc93fabe86837ee9c584e2b407d8eeaefd72c529f15f6a711f727276 SHA512 260b8be0dcedd769d10dd8a4dc32d6f617fe7aa6f566504ffb77724cc103c010e746d2f95a70a3b67386f4bd83928e8ce9a5d23363ee01f7c72551bc119cb07d MISC metadata.xml 616 BLAKE2B 17f79a6324d889cc626bb3fceef622a45f112587618bad54422503d7a43914c46a03563f5e0b8d9d170e25c2e77666325607e485d421853359cbae13e7f00b34 SHA512 a764ec840b5dc9cc90c5952b93e2e226914c9eaca52f18f0c4f4d7d128bd1b2bc1eea9e699720d37b2c041fb6b01e0b298ac7f000ed72f0a7e0e2dce733febff diff --git a/net-libs/ldns/files/ldns-1.8.4-swig-4.3.0.patch b/net-libs/ldns/files/ldns-1.8.4-swig-4.3.0.patch new file mode 100644 index 000000000000..a6ec69016637 --- /dev/null +++ b/net-libs/ldns/files/ldns-1.8.4-swig-4.3.0.patch @@ -0,0 +1,127 @@ +From 49b2e4a938d263bb8c532e64f33690551e43ca0c Mon Sep 17 00:00:00 2001 +From: Po-Chuan Hsieh <sunpoet@sunpoet.net> +Date: Mon, 28 Oct 2024 21:42:27 +0800 +Subject: [PATCH] Fix build with SWIG 4.3.0 + +Replace SWIG_Python_AppendOutput with SWIG_AppendOutput. + +from CHANGES: + New declaration of SWIG_Python_AppendOutput is now: + + SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void); + + The 3rd parameter is new and the new $isvoid special variable + should be passed to it, indicating whether or not the wrapped + function returns void. If SWIG_Python_AppendOutput is currently being + used and a completely backwards compatible (but technically incorrect) + solution is required, then pass 1 for the is_void parameter. + + Also consider replacing with: + + SWIG_AppendOutput(PyObject* result, PyObject* obj); + + which calls SWIG_Python_AppendOutput with same parameters but adding $isvoid + for final parameter. + +Reference: https://github.com/swig/swig/blob/master/CHANGES#L382-L397 +--- + contrib/python/ldns_buffer.i | 2 +- + contrib/python/ldns_key.i | 2 +- + contrib/python/ldns_packet.i | 2 +- + contrib/python/ldns_rdf.i | 2 +- + contrib/python/ldns_resolver.i | 2 +- + contrib/python/ldns_rr.i | 2 +- + contrib/python/ldns_zone.i | 2 +- + 7 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/contrib/python/ldns_buffer.i b/contrib/python/ldns_buffer.i +index 5c2d583b..0a3e3895 100644 +--- a/contrib/python/ldns_buffer.i ++++ b/contrib/python/ldns_buffer.i +@@ -45,7 +45,7 @@ + /* Result generation, appends (ldns_buffer *) after the result. */ + %typemap(argout, noblock=1) (ldns_buffer **) + { +- $result = SWIG_Python_AppendOutput($result, ++ $result = SWIG_AppendOutput($result, + SWIG_NewPointerObj(SWIG_as_voidptr($1_buf), + SWIGTYPE_p_ldns_struct_buffer, SWIG_POINTER_OWN | 0)); + } +diff --git a/contrib/python/ldns_key.i b/contrib/python/ldns_key.i +index dc67e67b..6a3c2db4 100644 +--- a/contrib/python/ldns_key.i ++++ b/contrib/python/ldns_key.i +@@ -38,7 +38,7 @@ + /* result generation */ + %typemap(argout,noblock=1) (ldns_key **) + { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_key), SWIGTYPE_p_ldns_struct_key, SWIG_POINTER_OWN | 0 )); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_key), SWIGTYPE_p_ldns_struct_key, SWIG_POINTER_OWN | 0 )); + } + + %typemap(argout) ldns_rdf *r "Py_INCREF($input);" +diff --git a/contrib/python/ldns_packet.i b/contrib/python/ldns_packet.i +index c2d7a3b6..8309808d 100644 +--- a/contrib/python/ldns_packet.i ++++ b/contrib/python/ldns_packet.i +@@ -45,7 +45,7 @@ + /* Result generation, appends (ldns_pkt *) after the result. */ + %typemap(argout,noblock=1) (ldns_pkt **) + { +- $result = SWIG_Python_AppendOutput($result, ++ $result = SWIG_AppendOutput($result, + SWIG_NewPointerObj(SWIG_as_voidptr($1_pkt), + SWIGTYPE_p_ldns_struct_pkt, SWIG_POINTER_OWN | 0 )); + } +diff --git a/contrib/python/ldns_rdf.i b/contrib/python/ldns_rdf.i +index 39f9af18..ed1f0d00 100644 +--- a/contrib/python/ldns_rdf.i ++++ b/contrib/python/ldns_rdf.i +@@ -45,7 +45,7 @@ + /* Result generation, appends (ldns_rdf *) after the result. */ + %typemap(argout, noblock=1) (ldns_rdf **) + { +- $result = SWIG_Python_AppendOutput($result, ++ $result = SWIG_AppendOutput($result, + SWIG_NewPointerObj(SWIG_as_voidptr($1_rdf), + SWIGTYPE_p_ldns_struct_rdf, SWIG_POINTER_OWN | 0)); + } +diff --git a/contrib/python/ldns_resolver.i b/contrib/python/ldns_resolver.i +index 8468cce3..8d0abc6e 100644 +--- a/contrib/python/ldns_resolver.i ++++ b/contrib/python/ldns_resolver.i +@@ -45,7 +45,7 @@ + /* Result generation, appends (ldns_resolver *) after the result. */ + %typemap(argout,noblock=1) (ldns_resolver **r) + { +- $result = SWIG_Python_AppendOutput($result, ++ $result = SWIG_AppendOutput($result, + SWIG_NewPointerObj(SWIG_as_voidptr($1_res), + SWIGTYPE_p_ldns_struct_resolver, SWIG_POINTER_OWN | 0 )); + } +diff --git a/contrib/python/ldns_rr.i b/contrib/python/ldns_rr.i +index 2e0a0714..c53955cf 100644 +--- a/contrib/python/ldns_rr.i ++++ b/contrib/python/ldns_rr.i +@@ -45,7 +45,7 @@ + /* Result generation, appends (ldns_rr *) after the result. */ + %typemap(argout, noblock=1) (ldns_rr **) + { +- $result = SWIG_Python_AppendOutput($result, ++ $result = SWIG_AppendOutput($result, + SWIG_NewPointerObj(SWIG_as_voidptr($1_rr), + SWIGTYPE_p_ldns_struct_rr, SWIG_POINTER_OWN | 0 )); + } +diff --git a/contrib/python/ldns_zone.i b/contrib/python/ldns_zone.i +index bbb8d8f2..3459478a 100644 +--- a/contrib/python/ldns_zone.i ++++ b/contrib/python/ldns_zone.i +@@ -39,7 +39,7 @@ + /* result generation */ + %typemap(argout,noblock=1) (ldns_zone **) + { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_zone), SWIGTYPE_p_ldns_struct_zone, SWIG_POINTER_OWN | 0 )); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_zone), SWIGTYPE_p_ldns_struct_zone, SWIG_POINTER_OWN | 0 )); + } + + %nodefaultctor ldns_struct_zone; //no default constructor & destructor diff --git a/net-libs/ldns/ldns-1.8.4-r1.ebuild b/net-libs/ldns/ldns-1.8.4-r1.ebuild new file mode 100644 index 000000000000..45ccd818a83c --- /dev/null +++ b/net-libs/ldns/ldns-1.8.4-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit python-single-r1 multilib-minimal + +DESCRIPTION="A library with the aim to simplify DNS programming in C" +HOMEPAGE="https://www.nlnetlabs.nl/projects/ldns/about/" +SRC_URI="https://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc examples python static-libs" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="test" # missing test directory + +BDEPEND=" + python? ( + ${PYTHON_DEPS} + dev-lang/swig + $(python_gen_cond_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') + ) + doc? ( app-text/doxygen ) +" +DEPEND=" + python? ( ${PYTHON_DEPS} ) + >=dev-libs/openssl-1.1.1l-r1:0=[${MULTILIB_USEDEP},static-libs?] + examples? ( net-libs/libpcap ) +" +RDEPEND=" + ${DEPEND} +" + +# False positive, always fails, bug #898658 +QA_CONFIG_IMPL_DECL_SKIP+=( + ioctlsocket +) + +MULTILIB_CHOST_TOOLS=( + /usr/bin/ldns-config +) + +PATCHES=( + "${FILESDIR}/ldns-1.8.1-pkgconfig.patch" + "${FILESDIR}/ldns-1.8.4-swig-4.3.0.patch" +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + $(use_enable static-libs static) \ + $(multilib_native_use_with python pyldns) \ + $(multilib_native_use_with python pyldnsx) \ + --with-ssl="${EPREFIX}"/usr \ + $(multilib_native_with drill) \ + $(multilib_native_use_with examples) \ + --disable-rpath +} + +multilib_src_compile() { + default + + if multilib_is_native_abi && use doc ; then + emake doxygen + fi +} + +multilib_src_install() { + default + + if multilib_is_native_abi && use doc ; then + dodoc -r doc/html + fi +} + +multilib_src_install_all() { + dodoc Changelog README* + + find "${D}" -name '*.la' -delete || die + use python && python_optimize + + insinto /usr/share/vim/vimfiles/ftdetect + doins libdns.vim +} |