From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6BB8315803E for ; Thu, 4 Jan 2024 04:35:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7265F2BC07E; Thu, 4 Jan 2024 04:35:12 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4F69A2BC03E for ; Thu, 4 Jan 2024 04:35:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 92C7734306A for ; Thu, 4 Jan 2024 04:35:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AFAA214B6 for ; Thu, 4 Jan 2024 04:35:08 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1704342464.0d4261dd2750534de16c84bded2708ee4e2e3ca5.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/miniupnpd/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/miniupnpd/Manifest net-misc/miniupnpd/miniupnpd-2.3.4.ebuild X-VCS-Directories: net-misc/miniupnpd/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0d4261dd2750534de16c84bded2708ee4e2e3ca5 X-VCS-Branch: master Date: Thu, 4 Jan 2024 04:35:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5cc36396-d0ad-43fc-9034-eed8660746d9 X-Archives-Hash: fcfdf5f59d67abe29d6c9d611b2dd65b commit: 0d4261dd2750534de16c84bded2708ee4e2e3ca5 Author: Michał Górny gentoo org> AuthorDate: Thu Jan 4 04:27:44 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jan 4 04:27:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d4261dd net-misc/miniupnpd: Bump to 2.3.4 Signed-off-by: Michał Górny gentoo.org> net-misc/miniupnpd/Manifest | 2 + net-misc/miniupnpd/miniupnpd-2.3.4.ebuild | 108 ++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest index a854c3327ea2..20b0126239fa 100644 --- a/net-misc/miniupnpd/Manifest +++ b/net-misc/miniupnpd/Manifest @@ -1,2 +1,4 @@ DIST miniupnpd-2.3.3.tar.gz 260079 BLAKE2B 4b32e05bc7002bc7edc946f01b1984f3d184e0e9949a9685ffa5351ece9dacc09dc48567cc6f68972343a1921f4ceb5c541d4b557c4991f311289a511c492efa SHA512 98915e3c1410d6753a58133596bad012fea205f36ae4991c2cf4b358d1e905e029287cfcf1aa97283c2e3c1cb8c20655bff35d49a37ae8756739e33c4ae3e7ef DIST miniupnpd-2.3.3.tar.gz.sig 543 BLAKE2B 33b6166ba64a7a7c1b019c84d8a623d2905f32b41ea6b7cfd96c180e3d8738af264b5f073a9503c037f4609f15cb73f039701368eba63764de9edc79159961f6 SHA512 f2b167fec659e2f366ac180e8245c35e2907f5fb6be31fb62aad072e8a67868b995dd9400b4f41ebdfe2dcb46df583e5a1d6260f93c9b3eb25ba46bc7f6106dd +DIST miniupnpd-2.3.4.tar.gz 260810 BLAKE2B 7ce722aabcb0142740ffd4669c4326a99ed2903c1a0da984c5c3eb2ce523c4f6919d73b84708857ca51711fb4fdb0f8f00547ba81f3ea0e7bc700d166c07bb69 SHA512 7e84fcc7fbbdcb8e40d8ef35c48b331e0189427ca61d67b33c856c0598496cecade2bc7880590581c5eaf77c686496bb3228ed93d3d8edc073e8f5781a03ae9e +DIST miniupnpd-2.3.4.tar.gz.sig 543 BLAKE2B 5940c26bc6717e2b6f636dded1a5d7e4625d69e763191fe97fc7c2459ad9957a80d809c5795511ef35ef005817abb01a78e1c0f0af0c2508fea671a1fba17212 SHA512 abcea4fa53b31582e2bd8db1a1df53b25142757e760e62c4200c3067d3f8c2f9b6d11211d6d1232cc44565ded8503279e05ed42c3915a16ed432063f555c00e3 diff --git a/net-misc/miniupnpd/miniupnpd-2.3.4.ebuild b/net-misc/miniupnpd/miniupnpd-2.3.4.ebuild new file mode 100644 index 000000000000..ef90208e7b6d --- /dev/null +++ b/net-misc/miniupnpd/miniupnpd-2.3.4.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs verify-sig + +DESCRIPTION="MiniUPnP IGD Daemon" +HOMEPAGE=" + http://miniupnp.free.fr/ + https://miniupnp.tuxfamily.org/ + https://github.com/miniupnp/miniupnp/ +" +SRC_URI=" + https://miniupnp.tuxfamily.org/files/${P}.tar.gz + verify-sig? ( + https://miniupnp.tuxfamily.org/files/${P}.tar.gz.sig + ) +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="+leasefile igd2 ipv6 nftables pcp-peer portinuse strict" + +RDEPEND=" + dev-libs/gmp:0= + sys-apps/util-linux:= + dev-libs/openssl:0= + !nftables? ( + >=net-firewall/iptables-1.4.6:0=[ipv6(+)?] + net-libs/libnfnetlink:= + net-libs/libmnl:= + ) + nftables? ( + net-firewall/nftables + net-libs/libnftnl:= + net-libs/libmnl:= + ) +" +DEPEND=" + ${RDEPEND} + elibc_musl? ( sys-libs/queue-standalone ) +" +BDEPEND=" + sys-apps/lsb-release + verify-sig? ( sec-keys/openpgp-keys-miniupnp ) +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/miniupnp.asc + +src_prepare() { + default + + # fails without a default route + sed -i -e 's:EXTIF=.*:EXTIF=lo:' testgetifaddr.sh || die +} + +src_configure() { + local opts=( + --vendorcfg + $(usex igd2 '--igd2' '') + $(usex ipv6 '--ipv6' '') + $(usex leasefile '--leasefile' '') + $(usex portinuse '--portinuse' '') + $(usex pcp-peer '--pcp-peer' '') + $(usex strict '--strict' '') + --firewall=$(usex nftables nftables iptables) + ) + + # custom script + ./configure "${opts[@]}" || die + # prevent gzipping manpage + sed -i -e '/gzip/d' Makefile || die +} + +src_compile() { + # By default, it builds a bunch of unittests that are missing wrapper + # scripts in the tarball + emake CC="$(tc-getCC)" STRIP=true miniupnpd +} + +src_test() { + emake CC="$(tc-getCC)" check +} + +src_install() { + emake PREFIX="${ED}" STRIP=true install + + local confd_seds=() + if use nftables; then + confd_seds+=( -e 's/^iptables_scripts=/#&/' ) + else + confd_seds+=( -e 's/^nftables_scripts=/#&/' ) + fi + if ! use ipv6 || use nftables; then + confd_seds+=( -e 's/^ip6tables_scripts=/#&/' ) + fi + + newinitd "${FILESDIR}"/${PN}-init.d-r2 ${PN} + newconfd - ${PN} < <(sed "${confd_seds[@]}" \ + "${FILESDIR}"/${PN}-conf.d-r2 || die) +} + +pkg_postinst() { + elog "Please correct the external interface in the top of the two" + elog "scripts in /etc/miniupnpd and edit the config file in there too" +}