1 |
commit: e4088d04fc216ea0b6467c739fca9b8c69e0750c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 1 06:55:42 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 1 07:56:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4088d04 |
7 |
|
8 |
net-misc/miniupnpd: Bump to 2.1.20190630 |
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.1.20190630.ebuild | 88 ++++++++++++++++++++++++ |
14 |
2 files changed, 89 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest |
17 |
index d75a1d6b4cd..c76f8b96c1b 100644 |
18 |
--- a/net-misc/miniupnpd/Manifest |
19 |
+++ b/net-misc/miniupnpd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST miniupnpd-2.1.20190502.tar.gz 236052 BLAKE2B 9f2f81769d72fad2191969e0e80b4d2e70619d5674fe6b4ef9f4306e09ac4737577a2146bc04ec9960df092252abe3c9a57e32d5d893a763b85863d1c4892045 SHA512 6423cef89b5af62b6b6a120a3cd13a0e7755d609b33de8f1671f7f9160fb1b5e68b0ebd3f8b7b5758cf05a1c58b416cde253e37bc5ba0bb423c14b5fb44599f1 |
22 |
DIST miniupnpd-2.1.20190625.tar.gz 240120 BLAKE2B c6cf6b549a1c0c4a411d9487a3dae348d8a37767b9590d29ea763177d876ceb6f521bb7662452e2dff813354fc52f862bcc830079b3ff8af8185de6ee2771e8f SHA512 3b9a14f24c7e753cc71b84622bfbbc0db4a5b5e0fd602ef1129b89b1c729e754c51f5c29b4bf8d1cc37a16f77b33f04cf3f3540afe1ac529105cb91f45fa92c8 |
23 |
+DIST miniupnpd-2.1.20190630.tar.gz 240466 BLAKE2B fe4d4e59a7dad32bef9ed9b4c58b52e378ec9b26ea2439e84284630a7ef7269c6cd53cabdc632ff274cae88aea2552a8808af2ea349138f8b8ed667baf9e87ee SHA512 cd6006e5487652a258f7320e1e28fea7b0790528cc014071109a1abd0f6c249237cf8d0620987c14ee0ce1cca14f4bb4abd439b1d422e0e49a398cd485eaf970 |
24 |
|
25 |
diff --git a/net-misc/miniupnpd/miniupnpd-2.1.20190630.ebuild b/net-misc/miniupnpd/miniupnpd-2.1.20190630.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..07c804f3564 |
28 |
--- /dev/null |
29 |
+++ b/net-misc/miniupnpd/miniupnpd-2.1.20190630.ebuild |
30 |
@@ -0,0 +1,88 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="MiniUPnP IGD Daemon" |
39 |
+HOMEPAGE="http://miniupnp.free.fr/" |
40 |
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz" |
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_prepare() { |
65 |
+ default |
66 |
+ |
67 |
+ # Prevent overriding CFLAGS. |
68 |
+ sed -i -e '/^CFLAGS =/d' Makefile.linux_nft || die |
69 |
+ |
70 |
+ mv "Makefile.linux$(usex nftables _nft '')" Makefile || die |
71 |
+ |
72 |
+ # Prevent gzipping manpage. |
73 |
+ sed -i -e '/gzip/d' Makefile || die |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local -a opts |
78 |
+ opts=( |
79 |
+ --vendorcfg |
80 |
+ $(usex igd2 '--igd2' '') |
81 |
+ $(usex ipv6 '--ipv6' '') |
82 |
+ $(usex leasefile '--leasefile' '') |
83 |
+ $(usex portinuse '--portinuse' '') |
84 |
+ $(usex pcp-peer '--pcp-peer' '') |
85 |
+ $(usex strict '--strict' '') |
86 |
+ ) |
87 |
+ |
88 |
+ emake CONFIG_OPTIONS="${opts[*]}" config.h |
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 |
+} |