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: Sat, 31 Oct 2020 08:33:47
Message-Id: 1604133219.bc49647339fe5fefa518e7db7ae4061ea3876403.mgorny@gentoo
1 commit: bc49647339fe5fefa518e7db7ae4061ea3876403
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 31 08:00:00 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 31 08:33:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc496473
7
8 net-misc/miniupnpd: Bump to 2.2.0-RC3
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.0_rc3.ebuild | 86 +++++++++++++++++++++++++++
14 2 files changed, 88 insertions(+)
15
16 diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest
17 index de05c1338e1..0708355aa82 100644
18 --- a/net-misc/miniupnpd/Manifest
19 +++ b/net-misc/miniupnpd/Manifest
20 @@ -1,3 +1,5 @@
21 DIST miniupnpd-2.1.20200510.tar.gz 245426 BLAKE2B 17b5335bb4cfb55a517c1f0aeb1eabd7515c729480ee737a8ba525988e59f067e18d2de78393df2ff62cc15201a742d17a17d5632601c1d98ea2a943dcc4a393 SHA512 36a5d1844075a93e76f13aba8820b3747bcc8f562c8cbcc562f991ac154e91c951b5caaa9b7c7066cf80534066c3ee6e20a066012b830143f0a7352cb9f5d71b
22 DIST miniupnpd-2.2.0-RC2.tar.gz 248756 BLAKE2B 428f353496f4410ae2ddce96d8edca1d4addf4f77c1e794ba48b5ac7fbe12368f994d91c04eb5d54fbddd24f5e6d36aa87e4cfb4f60b8e3f08f3bf96b5b7f094 SHA512 17dd31477c018f3f26b05a9ab5370819f763bcab6c00f3bb13ea87bc3781f5dcd190e294837b85a9e41b4fe7d1bfa0b475ef8da2f1fa48c3fe357c284f585508
23 DIST miniupnpd-2.2.0-RC2.tar.gz.sig 543 BLAKE2B 678b76fcc994d66dad6988a272d99db1f1eb89096b72e171f9ee94c59734ff5a1885316ac2564119614b0a9c653cf7e7d88a6b9f291a6588d4577e669d2b4775 SHA512 fa6c93501b6bf5eef763d0ee637233458ddb6e2aac0ec92554c803ed29e6d3fb35e8618a7316fddc07a009a5a7b702351226ef2eaec6dd5404bea47d5fb0ebe2
24 +DIST miniupnpd-2.2.0-RC3.tar.gz 249879 BLAKE2B 718c40d9dadc17eca9544c499c75888ced5f058bb75e564d5bf17ef490200dd2055ba43cb265ec26381a14697e814524ca849deead4493b0e5de37bf6121e1b3 SHA512 2f946521e922016e58179dc9d6c5ce783a93dab9117066dea05d4f27a854dc9b7a92ea475df6565856294ecf82698a885968aa7b3325244ea87e695901bac3ed
25 +DIST miniupnpd-2.2.0-RC3.tar.gz.sig 543 BLAKE2B 4d11b6aa3e39f417e00e9aade4e5f2d0292595f64500a7d22fabc0e04e1784ebebb8616eaea5b7b93fd4ba1d83ee547cf2de7faac4578848b8bc213c54a9e264 SHA512 2fe3086103debbcb88774fc2428e09628aac3e0f686d1141f9c1bf38a8f0229e682bfa70bf939435bca6371750c601fd8b6fa2304b4f25fcc6cf4288ece1cf1d
26
27 diff --git a/net-misc/miniupnpd/miniupnpd-2.2.0_rc3.ebuild b/net-misc/miniupnpd/miniupnpd-2.2.0_rc3.ebuild
28 new file mode 100644
29 index 00000000000..1c2981def4c
30 --- /dev/null
31 +++ b/net-misc/miniupnpd/miniupnpd-2.2.0_rc3.ebuild
32 @@ -0,0 +1,86 @@
33 +# Copyright 1999-2020 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 +}