public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/miniupnpd/
Date: Sun, 23 Jun 2024 02:53:21 +0000 (UTC)	[thread overview]
Message-ID: <1719111185.f807b67af9b98cf2d1dda674be93f4b3612809ff.mgorny@gentoo> (raw)

commit:     f807b67af9b98cf2d1dda674be93f4b3612809ff
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 23 02:49:30 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun 23 02:53:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f807b67a

net-misc/miniupnpd: Bump to 2.3.7

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 net-misc/miniupnpd/Manifest               |   2 +
 net-misc/miniupnpd/miniupnpd-2.3.7.ebuild | 108 ++++++++++++++++++++++++++++++
 2 files changed, 110 insertions(+)

diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest
index 1c264826a1b0..b3038b1cf9c6 100644
--- a/net-misc/miniupnpd/Manifest
+++ b/net-misc/miniupnpd/Manifest
@@ -2,3 +2,5 @@ DIST miniupnpd-2.3.5.tar.gz 261952 BLAKE2B 022ddbc495a2dbb500ab54a3c0569a16acf37
 DIST miniupnpd-2.3.5.tar.gz.sig 543 BLAKE2B 17394e1da7d95c89771dd7578e4f1e2ce407c04b142f44fe4f110beff908797991553a7275c3ba28df03b09877963d16092cb718d4c75d96211db07226bcb176 SHA512 ef21f493da56b9f3fe99003ee299c08b13ddcf433d7136222817ff2e1c775bf7c28cbb47ef3ab60c662380e585c2be0ca4c38e261697de410f5a751c1f4fe2da
 DIST miniupnpd-2.3.6.tar.gz 263018 BLAKE2B 9e3d6bfdbe71a09a15bf11c1a718b1388db991de52a2ec742aaec70128e4ac5147f441ccfa50e7077f09682ac724040343c4e351b4cc8c3d9e8efe04773651ec SHA512 41ed8d0afcfdba70ab5ec44a33ad4643b226bea2da972fc432035fd3ff3a790227a71c32ca47574558e36eb491b0f6ab7710d3ef0af5ac6a359d899dcb36893c
 DIST miniupnpd-2.3.6.tar.gz.sig 543 BLAKE2B 5c5c3566a9dfd16d95ca70fa006f7ce7097aebfe76940c03c22047064d5dae92aed73062f2455f08b61a99a747f9615e72c06e178628d948532b987b40fb262f SHA512 312a9db9cbd74912294a7cc2d4ccc69634806fc58702083fda56e11ad1fd978e92ad71f217cadf5f4482e8e655df07e6d7cc52ae494b8167140ae4db74cd352d
+DIST miniupnpd-2.3.7.tar.gz 265329 BLAKE2B 9d7cbe04644c6811950328f402e4666fc8d51cf022a3ec40e4cc76c0f8a1c89b6703fe4ebe8d5eca7f6cef20acad7efbc47503dad4391d1519a6774ae6b26afd SHA512 7409bd6777c2a572ea501d47be604d9b09c09b1451c0f4150acd2313e3a5b4f7f3567559324a6c634c11a2b7c0ff56886a85217d1b056d5402916d0a8a3408e8
+DIST miniupnpd-2.3.7.tar.gz.sig 543 BLAKE2B 957b5dad44b020004a38b6f4748ca251deaadfc8ade28332eb12484e4bac408f5afdb38fe9974f18bc17a28dd33aae91a287838c7c15984bc5df7f69a82f9c6f SHA512 b8edd3f69b61e63560fb902f43e0a1730c80908637978782a1141fe8ac910b24f578ee3980127f4726c44e44222491a83670adea36a19984b3ffd726b12fe0dc

diff --git a/net-misc/miniupnpd/miniupnpd-2.3.7.ebuild b/net-misc/miniupnpd/miniupnpd-2.3.7.ebuild
new file mode 100644
index 000000000000..ef90208e7b6d
--- /dev/null
+++ b/net-misc/miniupnpd/miniupnpd-2.3.7.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"
+}


             reply	other threads:[~2024-06-23  2:53 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-23  2:53 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-22  3:28 [gentoo-commits] repo/gentoo:master commit in: net-misc/miniupnpd/ Michał Górny
2024-03-20  6:28 Michał Górny
2024-03-20  6:28 Michał Górny
2024-03-02 19:47 Michał Górny
2024-01-04  4:35 Michał Górny
2024-01-04  4:35 Michał Górny
2023-01-20  4:50 Michał Górny
2022-10-22  6:22 Michał Górny
2022-10-22  6:22 Michał Górny
2022-10-18  7:26 Michał Górny
2022-07-18  0:26 Sam James
2022-05-16 23:06 Sam James
2022-02-18  2:44 Sam James
2022-01-23  9:33 Michał Górny
2021-12-23  8:14 Sam James
2021-08-22  8:01 Michał Górny
2021-05-14  8:14 Michał Górny
2020-12-21  9:29 Michał Górny
2020-12-21  9:29 Michał Górny
2020-11-01  7:20 Michał Górny
2020-10-31  8:33 Michał Górny
2020-10-10 18:21 Michał Górny
2020-09-29  2:14 Michał Górny
2020-09-18  9:38 Michał Górny
2020-05-14  6:26 Michał Górny
2020-05-04  9:37 Michał Górny
2020-04-02  7:32 Michał Górny
2020-04-02  7:32 Michał Górny
2019-12-29 20:51 Michał Górny
2019-10-07  8:05 Michał Górny
2019-09-25  5:53 Michał Górny
2019-09-08  6:43 Michał Górny
2019-09-02  2:53 Michał Górny
2019-08-28  5:36 Michał Górny
2019-07-01  7:56 Michał Górny
2019-06-26 15:47 Michał Górny
2019-05-24 21:55 Michał Górny
2019-05-03  7:15 Michał Górny
2019-04-10 15:07 Michał Górny
2019-04-08 19:17 Michał Górny
2019-04-05  5:23 Michał Górny
2019-03-10  8:08 Michał Górny
2019-02-13 14:28 Michał Górny
2019-02-13 14:28 Michał Górny
2018-09-06 21:22 Michał Górny
2018-07-07  5:31 Michał Górny
2018-07-07  5:31 Michał Górny
2018-05-05 15:27 Michał Górny
2018-05-05 15:27 Michał Górny
2018-04-23 13:44 Michał Górny
2018-04-11  7:03 Michał Górny
2018-03-13 11:59 Pacho Ramos
2018-02-25 20:04 Michał Górny
2018-02-04  8:44 Michał Górny
2018-01-02  6:19 Michał Górny
2017-12-13  7:56 Michał Górny
2017-12-13  7:56 Michał Górny
2017-11-26 23:23 David Seifert
2017-01-26 20:14 Michał Górny
2016-05-24  7:58 Michał Górny
2016-04-20 18:52 Patrick McLean
2016-04-13  1:12 Patrick McLean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1719111185.f807b67af9b98cf2d1dda674be93f4b3612809ff.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox