Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/miniupnpd/
Date: Fri, 14 May 2021 08:14:36
Message-Id: 1620980062.6466466bd467eb68f44231c8df8d1d7d64561407.mgorny@gentoo
1 commit: 6466466bd467eb68f44231c8df8d1d7d64561407
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 14 07:53:54 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 14 08:14:22 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6466466b
7
8 net-misc/miniupnpd: Bump to 2.2.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 net-misc/miniupnpd/Manifest | 2 +
13 net-misc/miniupnpd/miniupnpd-2.2.2.ebuild | 86 +++++++++++++++++++++++++++++++
14 2 files changed, 88 insertions(+)
15
16 diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest
17 index d39cff455b0..c6ce7f5720a 100644
18 --- a/net-misc/miniupnpd/Manifest
19 +++ b/net-misc/miniupnpd/Manifest
20 @@ -2,3 +2,5 @@ DIST miniupnpd-2.2.0.tar.gz 249858 BLAKE2B ef216c7703cb9806a3719b247d67c5c844879
21 DIST miniupnpd-2.2.0.tar.gz.sig 543 BLAKE2B 11778dd70128ece1f80144bb229176c53f3cd89847a8eedd4fe1b75ac55d986ae7c4689edf40f80c4605ba42260bc41f8fd069e99b8c249226ab9e2981d15412 SHA512 5e0e053a2a3ab876da001589677b0f5e3a4df8511ea5185dbbaee9b80928f9cb9705029f1c83bd9d26b144e39721fce1c4c8c33983956b6731ae654bc094063c
22 DIST miniupnpd-2.2.1.tar.gz 250023 BLAKE2B 67418a8480f7d3ac3d51a9c18fdcce4a85c33ff6c373051e1f9df121b00d936f02038ed0a5a5a848b7b2c145aa08dc1e2b954b211cc79fae1de09075f55a9f21 SHA512 211b608472a72065d892e9197f8bdd8c82e44296bb692244ec5e83ca9b076cbcc3426c806ff27d5e805505b1c82b1a7afd7b4030ddecdb60aa85c37062c10c8a
23 DIST miniupnpd-2.2.1.tar.gz.sig 543 BLAKE2B fac8c2fd5c50e3201c5fc490d91aed5752bf70297bed101cb3d5ec53d891fdc8f893b3d83e0cf064eb9e9bf16ae9504a849187e18eabc8ed12055574d1e551f5 SHA512 da5b52b1c62bf433a165acf87a64195e27c71c98dfa086cfde19f7b1c4046a62926cca5eb2d10f4260eb1b97c428ba08b4b7fcbf280c2a7009c86279a7563e0f
24 +DIST miniupnpd-2.2.2.tar.gz 250649 BLAKE2B d561916ced9b5c58371382fe0bec68cd0771d1dc3b2c7fa7e3701cb2579db69697fbdcd724bea2350abd46381eda1fd257dede6df99f99fa54e423db4ee52717 SHA512 3cc11ad901e93a9879fe07e35a20f8977df466bb402e0270e46d1dbd0b5dc3b5dc22303467d5022103952d7dd789ac590c17d0fa81fc7ec42676b66223d37ee4
25 +DIST miniupnpd-2.2.2.tar.gz.sig 543 BLAKE2B 461a9149c66b0e314a767405024fc7bfb641a20ae36b908dc467c9211660d5cb0753fb3c99fa9d6df35d693a2f6790efb6a325f0005804572eaa78a02b23a482 SHA512 8ffc9901cd992cbd9d0fa4c5e510fe43f748ab4a7c4732cc8f2f685f19b71a3f087a63a39e1dbf081175ac65de34b5c05dc3ef636a805e550a0406119a5904ef
26
27 diff --git a/net-misc/miniupnpd/miniupnpd-2.2.2.ebuild b/net-misc/miniupnpd/miniupnpd-2.2.2.ebuild
28 new file mode 100644
29 index 00000000000..b2d4b1534d1
30 --- /dev/null
31 +++ b/net-misc/miniupnpd/miniupnpd-2.2.2.ebuild
32 @@ -0,0 +1,86 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit toolchain-funcs verify-sig
39 +
40 +MY_P=${P/_rc/-RC}
41 +DESCRIPTION="MiniUPnP IGD Daemon"
42 +HOMEPAGE="http://miniupnp.free.fr/"
43 +SRC_URI="http://miniupnp.free.fr/files/${MY_P}.tar.gz
44 + verify-sig? ( http://miniupnp.free.fr/files/${MY_P}.tar.gz.sig )"
45 +S=${WORKDIR}/${MY_P}
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~x86"
50 +IUSE="+leasefile igd2 ipv6 nftables pcp-peer portinuse strict"
51 +
52 +RDEPEND="
53 + dev-libs/gmp:0=
54 + sys-apps/util-linux:=
55 + dev-libs/openssl:0=
56 + !nftables? (
57 + >=net-firewall/iptables-1.4.6:0=[ipv6?]
58 + net-libs/libnfnetlink:=
59 + net-libs/libmnl:=
60 + )
61 + nftables? (
62 + net-firewall/nftables
63 + net-libs/libnftnl:=
64 + net-libs/libmnl:=
65 + )"
66 +DEPEND="${RDEPEND}"
67 +BDEPEND="
68 + sys-apps/lsb-release
69 + verify-sig? ( app-crypt/openpgp-keys-miniupnp )"
70 +
71 +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/miniupnp.asc
72 +
73 +src_configure() {
74 + local opts=(
75 + --vendorcfg
76 + $(usex igd2 '--igd2' '')
77 + $(usex ipv6 '--ipv6' '')
78 + $(usex leasefile '--leasefile' '')
79 + $(usex portinuse '--portinuse' '')
80 + $(usex pcp-peer '--pcp-peer' '')
81 + $(usex strict '--strict' '')
82 + --firewall=$(usex nftables nftables iptables)
83 + )
84 +
85 + # custom script
86 + ./configure "${opts[@]}" || die
87 + # prevent gzipping manpage
88 + sed -i -e '/gzip/d' Makefile || die
89 +}
90 +
91 +src_compile() {
92 + # By default, it builds a bunch of unittests that are missing wrapper
93 + # scripts in the tarball
94 + emake CC="$(tc-getCC)" STRIP=true miniupnpd
95 +}
96 +
97 +src_install() {
98 + emake PREFIX="${ED}" STRIP=true install
99 +
100 + local confd_seds=()
101 + if use nftables; then
102 + confd_seds+=( -e 's/^iptables_scripts=/#&/' )
103 + else
104 + confd_seds+=( -e 's/^nftables_scripts=/#&/' )
105 + fi
106 + if ! use ipv6 || use nftables; then
107 + confd_seds+=( -e 's/^ip6tables_scripts=/#&/' )
108 + fi
109 +
110 + newinitd "${FILESDIR}"/${PN}-init.d-r2 ${PN}
111 + newconfd - ${PN} < <(sed "${confd_seds[@]}" \
112 + "${FILESDIR}"/${PN}-conf.d-r2 || die)
113 +}
114 +
115 +pkg_postinst() {
116 + elog "Please correct the external interface in the top of the two"
117 + elog "scripts in /etc/miniupnpd and edit the config file in there too"
118 +}