From 2771f79232c273bc2a57d23bf335dd81ccf6af28 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 5 Dec 2021 02:47:11 +0000 Subject: gentoo resync : 05.12.2021 --- net-dns/pdns/Manifest | 6 +- net-dns/pdns/pdns-4.4.1-r1.ebuild | 2 +- net-dns/pdns/pdns-4.5.1.ebuild | 2 +- net-dns/pdns/pdns-4.5.2.ebuild | 161 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 167 insertions(+), 4 deletions(-) create mode 100644 net-dns/pdns/pdns-4.5.2.ebuild (limited to 'net-dns/pdns') diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest index fc93b1e1a54b..96513d33da2d 100644 --- a/net-dns/pdns/Manifest +++ b/net-dns/pdns/Manifest @@ -3,6 +3,8 @@ AUX pdns-4.4.1-boost-1.76.patch 830 BLAKE2B b74f9deece5c1bd71f6c3df571f288cbab01 AUX pdns-r1 2815 BLAKE2B cd607cb30a94540eca9cfa2defb7c996f6e151875fcaad8ad3357261937868bc346962f1080ad45a0ef38c2dfc126eb11e41837ee0784f677d1e7c071589a057 SHA512 4c0442d8d92d95268d4971f80782d2772e2a22c43da00566a9328c79a834e4355b2610d133034351d7137ed6cd7fda300f3db8093b09d5852cea44d983de1e39 DIST pdns-4.4.1.tar.bz2 1276990 BLAKE2B 9771cf3273ab7e8ab4607a91563bfe0dc3f4532b5420861d816eacd2798d66de3a1eb824c191264f9106ec47bd6003d99108b8df678190055948779b9b3b070f SHA512 a6f31972f77ded8ecfb523e8810dd90e5b7aa628746fee2a9a0daae2a7935800f111ce8617ffd71d5ce3881947d4ffc36c9cb37996a7bcc514536bb4abe1f79e DIST pdns-4.5.1.tar.bz2 1274965 BLAKE2B 8b1f91b425f02af5a1f6b8a22fe5e689fb9854686058c7ae2dbac5fe29c9562f9a4fff829fe6b7aad595e1fe2a55af19d09d4b002ec8f88115887cb8a74d042b SHA512 428be2bea0d39613fe31def9116c0d3dbfc95eac953ca058df088f06a971a5a1a49067f83c99719af2657e7abcf2e7c471311bd26a1ebf1bae2bd70e1a823fca -EBUILD pdns-4.4.1-r1.ebuild 4429 BLAKE2B e530739c8ce95a3099792a6cad1ea2c2e3d2e99f851e9a766f2e35da9491f4bfea6ca7715fea57044c293e80fb3f7770917cc243c241911bde87625a10891f14 SHA512 7738879bbf4dc54acff95dbafdba2eef075f025df74a38984072750fffeb0d6ee7652e02a5783d4ccb416d658d3cbeafbec24369ce8befc0c16650dcefbe6bc0 -EBUILD pdns-4.5.1.ebuild 4257 BLAKE2B c86c1137f85366afba129ad5eea1366bd96f79fff28d17c48c1ed13d1b4ae19c4e9298bb89a34aba92b5933c875a80656d787093037d626f1c1040e7dcf42391 SHA512 3fe3a0fac082408291033f1b09b43aa36f124630ea0ab7f84ea166289c3d7d875500cf04102c747da9c17482b4cc9d9b2d604c69d300b75b3e078e1c229f8d3a +DIST pdns-4.5.2.tar.bz2 1266572 BLAKE2B 9bd3d391e32c4040cc916003a45d47784ea309dd43a326919e2ca5415e1a1c542d5937cf1570951a4100a524a933aa9c0114ef8e28957f64acb6f7a7fa18e237 SHA512 0a183d8c0bb517799afa0f9382e3c06ad3c6e9c871b7912073a860364ca97dc121be2372080100677db10601c8ef96ad56b10787c02a9a9ede82f8a1cc904c6e +EBUILD pdns-4.4.1-r1.ebuild 4434 BLAKE2B b8c4b2cac53e10b6946f725f11a196bf493778d23d5c477017174b12582903857d042d17ba433562f2facaed744bc7ca410e16813e037225c4ead8ea589a1412 SHA512 f01f4269774b4a089bed02059f3978b0b385aa7e8f60ad888c6bdcd660e7ccce722cfa599b5e7a1b580918b82e8228d79bfd882715951ff1a2899d1447cad07f +EBUILD pdns-4.5.1.ebuild 4262 BLAKE2B a8147ef384ec84d649777dc8518005e485d6c545723a23781a390eb1458febc09493a5c963ec6a1a5ae5acde8d25a99abed4bb450656bc6d5d932345c5f43e7d SHA512 7e7a13149ccaf8babf9170fd8848d5539ffa330d0fc328595d1cc679fbb6267d15b8ff77d8589063a7741f44bb0b0de5af7cf8fdf0629ac30da6a2d0d7289a62 +EBUILD pdns-4.5.2.ebuild 4263 BLAKE2B eed3e10fdf31bde3829996fac97a546b32b8a7d577b950f4ad75a1165f049fd11c0d5f48860e1e9bd33962efc6a16d5cd844ae207126544adb5a7346461c5e0f SHA512 d2834f32e60ed30058aac76f2af2c66601af07db860db87eaa54d79072f56ed24fcf8d2145a846790b0b4abf46a4e03309939ff68e60864bdfe00f11fc95bb23 MISC metadata.xml 1112 BLAKE2B 1f422022f67b5667b7b2be3947316580c339738e624ddef0b7a7331cc8490633a054d96411892435f7982db74c7ff6c1b9702eb6c526d7e15afcd76049f040e9 SHA512 e9efc6f8ec5039249fa7d965ce1d4ef2c666813b554dba3fd289d326b4074df03555c4d5aee41101701a18e0b14166d3b3e340f55752a88acf2fbd6b16c8be79 diff --git a/net-dns/pdns/pdns-4.4.1-r1.ebuild b/net-dns/pdns/pdns-4.4.1-r1.ebuild index 7c16111f6db6..e3e705627079 100644 --- a/net-dns/pdns/pdns-4.4.1-r1.ebuild +++ b/net-dns/pdns/pdns-4.4.1-r1.ebuild @@ -43,7 +43,7 @@ RDEPEND="${DEPEND} acct-group/pdns" BDEPEND="virtual/pkgconfig - doc? ( app-doc/doxygen )" + doc? ( app-doc/doxygen[dot] )" S="${WORKDIR}"/${P/_/-} diff --git a/net-dns/pdns/pdns-4.5.1.ebuild b/net-dns/pdns/pdns-4.5.1.ebuild index 263adb888113..66c6adee6b61 100644 --- a/net-dns/pdns/pdns-4.5.1.ebuild +++ b/net-dns/pdns/pdns-4.5.1.ebuild @@ -42,7 +42,7 @@ RDEPEND="${DEPEND} acct-group/pdns" BDEPEND="virtual/pkgconfig - doc? ( app-doc/doxygen )" + doc? ( app-doc/doxygen[dot] )" S="${WORKDIR}"/${P/_/-} diff --git a/net-dns/pdns/pdns-4.5.2.ebuild b/net-dns/pdns/pdns-4.5.2.ebuild new file mode 100644 index 000000000000..e7f30951d52c --- /dev/null +++ b/net-dns/pdns/pdns-4.5.2.ebuild @@ -0,0 +1,161 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua-single + +DESCRIPTION="The PowerDNS Daemon" +HOMEPAGE="https://www.powerdns.com/" +SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +# other possible flags: +# db2: we lack the dep +# oracle: dito (need Oracle Client Libraries) +# xdb: (almost) dead, surely not supported + +IUSE="debug doc geoip ldap lua-records mydns mysql postgres remote sodium sqlite systemd tools tinydns test" +RESTRICT="!test? ( test )" + +REQUIRED_USE="${LUA_REQUIRED_USE} + mydns? ( mysql )" + +DEPEND="${LUA_DEPS} + dev-libs/openssl:= + >=dev-libs/boost-1.35:= + lua-records? ( >=net-misc/curl-7.21.3 ) + mysql? ( dev-db/mysql-connector-c:= ) + postgres? ( dev-db/postgresql:= ) + ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 ) + sqlite? ( dev-db/sqlite:3 ) + geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip ) + sodium? ( dev-libs/libsodium:= ) + tinydns? ( >=dev-db/tinycdb-0.77 )" +RDEPEND="${DEPEND} + acct-user/pdns + acct-group/pdns" + +BDEPEND="virtual/pkgconfig + doc? ( app-doc/doxygen[dot] )" + +S="${WORKDIR}"/${P/_/-} + +src_configure() { + local dynmodules="pipe bind" # the default backends, always enabled + + #use db2 && dynmodules+=" db2" + use ldap && dynmodules+=" ldap" + use mydns && dynmodules+=" mydns" + use mysql && dynmodules+=" gmysql" + #use oracle && dynmodules+=" goracle oracle" + use postgres && dynmodules+=" gpgsql" + use remote && dynmodules+=" remote" + use sqlite && dynmodules+=" gsqlite3" + use tinydns && dynmodules+=" tinydns" + use geoip && dynmodules+=" geoip" + #use xdb && dynmodules+=" xdb" + + econf \ + --disable-static \ + --sysconfdir=/etc/powerdns \ + --libdir=/usr/$(get_libdir)/powerdns \ + --with-service-user=pdns \ + --with-service-group=pdns \ + --with-modules= \ + --with-dynmodules="${dynmodules}" \ + --with-mysql-lib=/usr/$(get_libdir) \ + --with-lua="${ELUA}" \ + $(use_enable debug verbose-logging) \ + $(use_enable lua-records) \ + $(use_enable test unit-tests) \ + $(use_enable tools) \ + $(use_enable systemd) \ + $(use_with sodium libsodium) \ + ${myconf} +} + +src_compile() { + default + use doc && emake -C codedocs codedocs +} + +src_install() { + default + + mv "${D}"/etc/powerdns/pdns.conf{-dist,} + + fperms 0700 /etc/powerdns + fperms 0600 /etc/powerdns/pdns.conf + + # set defaults: setuid=pdns, setgid=pdns + sed -i \ + -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ + "${D}"/etc/powerdns/pdns.conf + + newinitd "${FILESDIR}"/pdns-r1 pdns + + keepdir /var/empty + + if use doc; then + docinto html + dodoc -r codedocs/html/. + fi + + # Install development headers + insinto /usr/include/pdns + doins pdns/*.hh + insinto /usr/include/pdns/backends/gsql + doins pdns/backends/gsql/*.hh + + if use ldap ; then + insinto /etc/openldap/schema + doins "${FILESDIR}"/dnsdomain2.schema + fi + + find "${D}" -name '*.la' -delete || die +} + +pkg_postinst() { + elog "PowerDNS provides multiple instances support. You can create more instances" + elog "by symlinking the pdns init script to another name." + elog + elog "The name must be in the format pdns. and PowerDNS will use the" + elog "/etc/powerdns/pdns-.conf configuration file instead of the default." + + local old + for old in ${REPLACING_VERSIONS}; do + ver_test ${old} -lt 3.2 || continue + + echo + ewarn "To fix a security bug (bug #458018) had the following" + ewarn "files/directories the world-readable bit removed (if set):" + ewarn " ${EPREFIX}/etc/powerdns" + ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" + ewarn "Check if this is correct for your setup" + ewarn "This is a one-time change and will not happen on subsequent updates." + chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} + + break + done + + if use postgres; then + for old in ${REPLACING_VERSIONS}; do + ver_test ${old} -lt 4.1.11-r1 || continue + + echo + ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend." + ewarn "This security fix needs to be applied manually to the database schema." + ewarn "Please refer to the official security advisory for more information:" + ewarn + ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html" + + break + done + fi +} -- cgit v1.2.3