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: Wed, 26 Jun 2019 15:47:28
Message-Id: 1561564037.1a0ec3e483cf0f483f608496b1f7bfb5656f0fbd.mgorny@gentoo
1 commit: 1a0ec3e483cf0f483f608496b1f7bfb5656f0fbd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 26 12:34:24 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 26 15:47:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a0ec3e4
7
8 net-misc/miniupnpd: Bump to 2.1.20190625
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.20190625.ebuild | 65 ++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest
17 index 7b4daa41d1c..d75a1d6b4cd 100644
18 --- a/net-misc/miniupnpd/Manifest
19 +++ b/net-misc/miniupnpd/Manifest
20 @@ -1 +1,2 @@
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
24 diff --git a/net-misc/miniupnpd/miniupnpd-2.1.20190625.ebuild b/net-misc/miniupnpd/miniupnpd-2.1.20190625.ebuild
25 new file mode 100644
26 index 00000000000..673b340fb09
27 --- /dev/null
28 +++ b/net-misc/miniupnpd/miniupnpd-2.1.20190625.ebuild
29 @@ -0,0 +1,65 @@
30 +# Copyright 1999-2019 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}.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 + # Prevent gzipping manpage.
60 + sed -i -e '/gzip/d' Makefile || die
61 +}
62 +
63 +src_configure() {
64 + local -a opts
65 + 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 + )
74 +
75 + emake CONFIG_OPTIONS="${opts[*]}" config.h
76 +}
77 +
78 +src_compile() {
79 + # By default, it builds a bunch of unittests that are missing wrapper
80 + # scripts in the tarball
81 + emake CC="$(tc-getCC)" STRIP=true miniupnpd
82 +}
83 +
84 +src_install() {
85 + emake PREFIX="${ED}" STRIP=true install
86 +
87 + newinitd "${FILESDIR}"/${PN}-init.d-r1 ${PN}
88 + newconfd "${FILESDIR}"/${PN}-conf.d-r1 ${PN}
89 +}
90 +
91 +pkg_postinst() {
92 + elog "Please correct the external interface in the top of the two"
93 + elog "scripts in /etc/miniupnpd and edit the config file in there too"
94 +}