1 |
commit: 5f24cde13775417e49f4fb9f90916392ff13dddf |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 13 13:31:59 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 13 14:28:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f24cde1 |
7 |
|
8 |
net-misc/miniupnpd: Bump to 2.1.20190210 |
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.20190210.ebuild | 62 ++++++++++++++++++++++++ |
14 |
2 files changed, 63 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest |
17 |
index 020b8d4282c..f95f7bc2a90 100644 |
18 |
--- a/net-misc/miniupnpd/Manifest |
19 |
+++ b/net-misc/miniupnpd/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST miniupnpd-2.1.20180706.tar.gz 233675 BLAKE2B 641be6dc6a32383a02711139ac56236dc285041f2bda595a909ed5281a5163d1300212892e011f6256c6cf73b877f0e5e2e93efbfb08a77b0ae7d3dde94c28f6 SHA512 90881e08754f9fe3d1ef01da1fe437626d1fef09bea5eab9c1bcf3347e1197038ab87de8c7c454083ba90a86760230a323a6c293307b0fcecefbd5cfb658d227 |
22 |
+DIST miniupnpd-2.1.20190210.tar.gz 235093 BLAKE2B d86b4a73ebfe6b5f3665b92624e7eac36718fffea058c0e7d2cb4af2c0871534c7f7ec56ade6c3cb2e13215a77971173259f912efd61a37e41d0f2f0a4596e5c SHA512 d664d5f61a0e2e71086aa520cb91af9f7f9b8b34268a76d570bbca271d86eab4976655a1fec1d21be80a93e357a0cb185281037604a0cfc00e4944d8e8b6f664 |
23 |
|
24 |
diff --git a/net-misc/miniupnpd/miniupnpd-2.1.20190210.ebuild b/net-misc/miniupnpd/miniupnpd-2.1.20190210.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..7937133ad3d |
27 |
--- /dev/null |
28 |
+++ b/net-misc/miniupnpd/miniupnpd-2.1.20190210.ebuild |
29 |
@@ -0,0 +1,62 @@ |
30 |
+# Copyright 1999-2019 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
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}.tar.gz" |
40 |
+ |
41 |
+LICENSE="BSD" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~arm ~x86" |
44 |
+IUSE="+leasefile igd2 ipv6 pcp-peer portinuse strict" |
45 |
+ |
46 |
+RDEPEND=">=net-firewall/iptables-1.4.6:0=[ipv6?] |
47 |
+ net-libs/libnfnetlink:= |
48 |
+ net-libs/libmnl:= |
49 |
+ dev-libs/gmp:0= |
50 |
+ sys-apps/util-linux:= |
51 |
+ dev-libs/openssl:0=" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ sys-apps/lsb-release" |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ mv Makefile.linux Makefile || die |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ local -a opts |
62 |
+ opts=( |
63 |
+ --vendorcfg |
64 |
+ $(usex igd2 '--igd2' '') |
65 |
+ $(usex ipv6 '--ipv6' '') |
66 |
+ $(usex leasefile '--leasefile' '') |
67 |
+ $(usex portinuse '--portinuse' '') |
68 |
+ $(usex pcp-peer '--pcp-peer' '') |
69 |
+ $(usex strict '--strict' '') |
70 |
+ ) |
71 |
+ |
72 |
+ emake CONFIG_OPTIONS="${opts[*]}" config.h |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ # By default, it builds a bunch of unittests that are missing wrapper |
77 |
+ # scripts in the tarball |
78 |
+ emake CC="$(tc-getCC)" STRIP=true miniupnpd |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ emake PREFIX="${ED}" STRIP=true install |
83 |
+ |
84 |
+ newinitd "${FILESDIR}"/${PN}-init.d-r1 ${PN} |
85 |
+ newconfd "${FILESDIR}"/${PN}-conf.d-r1 ${PN} |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ elog "Please correct the external interface in the top of the two" |
90 |
+ elog "scripts in /etc/miniupnpd and edit the config file in there too" |
91 |
+} |