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: Fri, 14 May 2021 08:14:31 +0000 (UTC)	[thread overview]
Message-ID: <1620980062.6466466bd467eb68f44231c8df8d1d7d64561407.mgorny@gentoo> (raw)

commit:     6466466bd467eb68f44231c8df8d1d7d64561407
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 14 07:53:54 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 14 08:14:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6466466b

net-misc/miniupnpd: Bump to 2.2.2

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

 net-misc/miniupnpd/Manifest               |  2 +
 net-misc/miniupnpd/miniupnpd-2.2.2.ebuild | 86 +++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+)

diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest
index d39cff455b0..c6ce7f5720a 100644
--- a/net-misc/miniupnpd/Manifest
+++ b/net-misc/miniupnpd/Manifest
@@ -2,3 +2,5 @@ DIST miniupnpd-2.2.0.tar.gz 249858 BLAKE2B ef216c7703cb9806a3719b247d67c5c844879
 DIST miniupnpd-2.2.0.tar.gz.sig 543 BLAKE2B 11778dd70128ece1f80144bb229176c53f3cd89847a8eedd4fe1b75ac55d986ae7c4689edf40f80c4605ba42260bc41f8fd069e99b8c249226ab9e2981d15412 SHA512 5e0e053a2a3ab876da001589677b0f5e3a4df8511ea5185dbbaee9b80928f9cb9705029f1c83bd9d26b144e39721fce1c4c8c33983956b6731ae654bc094063c
 DIST miniupnpd-2.2.1.tar.gz 250023 BLAKE2B 67418a8480f7d3ac3d51a9c18fdcce4a85c33ff6c373051e1f9df121b00d936f02038ed0a5a5a848b7b2c145aa08dc1e2b954b211cc79fae1de09075f55a9f21 SHA512 211b608472a72065d892e9197f8bdd8c82e44296bb692244ec5e83ca9b076cbcc3426c806ff27d5e805505b1c82b1a7afd7b4030ddecdb60aa85c37062c10c8a
 DIST miniupnpd-2.2.1.tar.gz.sig 543 BLAKE2B fac8c2fd5c50e3201c5fc490d91aed5752bf70297bed101cb3d5ec53d891fdc8f893b3d83e0cf064eb9e9bf16ae9504a849187e18eabc8ed12055574d1e551f5 SHA512 da5b52b1c62bf433a165acf87a64195e27c71c98dfa086cfde19f7b1c4046a62926cca5eb2d10f4260eb1b97c428ba08b4b7fcbf280c2a7009c86279a7563e0f
+DIST miniupnpd-2.2.2.tar.gz 250649 BLAKE2B d561916ced9b5c58371382fe0bec68cd0771d1dc3b2c7fa7e3701cb2579db69697fbdcd724bea2350abd46381eda1fd257dede6df99f99fa54e423db4ee52717 SHA512 3cc11ad901e93a9879fe07e35a20f8977df466bb402e0270e46d1dbd0b5dc3b5dc22303467d5022103952d7dd789ac590c17d0fa81fc7ec42676b66223d37ee4
+DIST miniupnpd-2.2.2.tar.gz.sig 543 BLAKE2B 461a9149c66b0e314a767405024fc7bfb641a20ae36b908dc467c9211660d5cb0753fb3c99fa9d6df35d693a2f6790efb6a325f0005804572eaa78a02b23a482 SHA512 8ffc9901cd992cbd9d0fa4c5e510fe43f748ab4a7c4732cc8f2f685f19b71a3f087a63a39e1dbf081175ac65de34b5c05dc3ef636a805e550a0406119a5904ef

diff --git a/net-misc/miniupnpd/miniupnpd-2.2.2.ebuild b/net-misc/miniupnpd/miniupnpd-2.2.2.ebuild
new file mode 100644
index 00000000000..b2d4b1534d1
--- /dev/null
+++ b/net-misc/miniupnpd/miniupnpd-2.2.2.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs verify-sig
+
+MY_P=${P/_rc/-RC}
+DESCRIPTION="MiniUPnP IGD Daemon"
+HOMEPAGE="http://miniupnp.free.fr/"
+SRC_URI="http://miniupnp.free.fr/files/${MY_P}.tar.gz
+	verify-sig? ( http://miniupnp.free.fr/files/${MY_P}.tar.gz.sig )"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~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}"
+BDEPEND="
+	sys-apps/lsb-release
+	verify-sig? ( app-crypt/openpgp-keys-miniupnp )"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/miniupnp.asc
+
+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_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:[~2021-05-14  8:14 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-14  8:14 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-23  2:53 [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
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=1620980062.6466466bd467eb68f44231c8df8d1d7d64561407.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