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: Tue, 29 Sep 2020 02:14:55
Message-Id: 1601345687.df4f437735c8007bdc400ce84ca10f4944e0b22d.mgorny@gentoo
1 commit: df4f437735c8007bdc400ce84ca10f4944e0b22d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 29 01:49:50 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 29 02:14:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df4f4377
7
8 net-misc/miniupnpd: Bump to 2.2.0-RC2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 net-misc/miniupnpd/Manifest | 1 +
13 net-misc/miniupnpd/miniupnpd-2.2.0_rc2.ebuild | 80 +++++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest
17 index 3ad834c9aff..5cc9be099c4 100644
18 --- a/net-misc/miniupnpd/Manifest
19 +++ b/net-misc/miniupnpd/Manifest
20 @@ -1 +1,2 @@
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
24 diff --git a/net-misc/miniupnpd/miniupnpd-2.2.0_rc2.ebuild b/net-misc/miniupnpd/miniupnpd-2.2.0_rc2.ebuild
25 new file mode 100644
26 index 00000000000..e80efef5db1
27 --- /dev/null
28 +++ b/net-misc/miniupnpd/miniupnpd-2.2.0_rc2.ebuild
29 @@ -0,0 +1,80 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit toolchain-funcs
36 +
37 +DESCRIPTION="MiniUPnP IGD Daemon"
38 +HOMEPAGE="http://miniupnp.free.fr/"
39 +SRC_URI="http://miniupnp.free.fr/files/${P/_rc/-RC}.tar.gz"
40 +S=${WORKDIR}/${P/_rc/-RC}
41 +
42 +LICENSE="BSD"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~x86"
45 +IUSE="+leasefile igd2 ipv6 nftables pcp-peer portinuse strict"
46 +
47 +RDEPEND="
48 + dev-libs/gmp:0=
49 + sys-apps/util-linux:=
50 + dev-libs/openssl:0=
51 + !nftables? (
52 + >=net-firewall/iptables-1.4.6:0=[ipv6?]
53 + net-libs/libnfnetlink:=
54 + net-libs/libmnl:=
55 + )
56 + nftables? (
57 + net-firewall/nftables
58 + net-libs/libnftnl:=
59 + net-libs/libmnl:=
60 + )"
61 +DEPEND="${RDEPEND}
62 + sys-apps/lsb-release"
63 +
64 +src_configure() {
65 + local opts=(
66 + --vendorcfg
67 + $(usex igd2 '--igd2' '')
68 + $(usex ipv6 '--ipv6' '')
69 + $(usex leasefile '--leasefile' '')
70 + $(usex portinuse '--portinuse' '')
71 + $(usex pcp-peer '--pcp-peer' '')
72 + $(usex strict '--strict' '')
73 + --firewall=$(usex nftables nftables iptables)
74 + )
75 +
76 + # custom script
77 + ./configure "${opts[@]}" || die
78 + # prevent gzipping manpage
79 + sed -i -e '/gzip/d' Makefile || die
80 +}
81 +
82 +src_compile() {
83 + # By default, it builds a bunch of unittests that are missing wrapper
84 + # scripts in the tarball
85 + emake CC="$(tc-getCC)" STRIP=true miniupnpd
86 +}
87 +
88 +src_install() {
89 + emake PREFIX="${ED}" STRIP=true install
90 +
91 + local confd_seds=()
92 + if use nftables; then
93 + confd_seds+=( -e 's/^iptables_scripts=/#&/' )
94 + else
95 + confd_seds+=( -e 's/^nftables_scripts=/#&/' )
96 + fi
97 + if ! use ipv6 || use nftables; then
98 + confd_seds+=( -e 's/^ip6tables_scripts=/#&/' )
99 + fi
100 +
101 + newinitd "${FILESDIR}"/${PN}-init.d-r2 ${PN}
102 + newconfd - ${PN} < <(sed "${confd_seds[@]}" \
103 + "${FILESDIR}"/${PN}-conf.d-r2 || die)
104 +}
105 +
106 +pkg_postinst() {
107 + elog "Please correct the external interface in the top of the two"
108 + elog "scripts in /etc/miniupnpd and edit the config file in there too"
109 +}