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: Sun, 25 Feb 2018 20:04:44
Message-Id: 1519589074.23e76e29c3adf1d78aea2099bc13d0e258a0617f.mgorny@gentoo
1 commit: 23e76e29c3adf1d78aea2099bc13d0e258a0617f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 25 19:15:24 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 25 20:04:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23e76e29
7
8 net-misc/miniupnpd: Bump to 2.0.20180222
9
10 net-misc/miniupnpd/Manifest | 1 +
11 net-misc/miniupnpd/miniupnpd-2.0.20180222.ebuild | 62 ++++++++++++++++++++++++
12 2 files changed, 63 insertions(+)
13
14 diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest
15 index 7bc51592b92..05c1f6c5168 100644
16 --- a/net-misc/miniupnpd/Manifest
17 +++ b/net-misc/miniupnpd/Manifest
18 @@ -1,2 +1,3 @@
19 DIST miniupnpd-2.0.20171212.tar.gz 222617 BLAKE2B 6ac33048b18d9f8aeb5103f57c9982fec956a61155f8592118c38dea70801597d9e867690ef2f1cdfaf848a25d7ddb4891b3ebf37cd391b33518d6b02e6f9b4a SHA512 3ab81c840953736c662bcb6f074421052a846c7827768acd7a961a23906b9e3d3389f5b593fb6f8011c8e717dae6cd3907b6d34e7904d560378671a7fc1dd3b2
20 DIST miniupnpd-2.0.20180203.tar.gz 223084 BLAKE2B 14d7b1f8136be5e211ee2e5374b8ee77dfeb3e64e1308f918d9334a8600234e38581caa293b613cd3736d4a8cfc196a54839cffa8091a36961f4e0e79c727455 SHA512 ef02e33cd93225992c193a13be2320de02255610532de77cf704573384c777d82a4cb89c295982bb660ce056e38ef341223ab362bab74b2cb6954ed4e62b0219
21 +DIST miniupnpd-2.0.20180222.tar.gz 223697 BLAKE2B f551c9219a3a0a0eda905c953c5f9f45df3f192d3d253111cb35ce51351561ae2547351cb901b91eafc1765bd89b75760063e109bacfae625ff8090563913883 SHA512 a7ee306ccac0673e55780129b3c61de025ec63a653383ae475f08695a95647ae83e5e5978ce6ee166e8d0270a5bd08250613593acaabd0b730178ca2e52dc482
22
23 diff --git a/net-misc/miniupnpd/miniupnpd-2.0.20180222.ebuild b/net-misc/miniupnpd/miniupnpd-2.0.20180222.ebuild
24 new file mode 100644
25 index 00000000000..9f786c4d43a
26 --- /dev/null
27 +++ b/net-misc/miniupnpd/miniupnpd-2.0.20180222.ebuild
28 @@ -0,0 +1,62 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +
34 +inherit toolchain-funcs
35 +
36 +DESCRIPTION="MiniUPnP IGD Daemon"
37 +HOMEPAGE="http://miniupnp.free.fr/"
38 +SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
39 +
40 +LICENSE="BSD"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~arm ~x86"
43 +IUSE="+leasefile igd2 ipv6 pcp-peer portinuse strict"
44 +
45 +RDEPEND=">=net-firewall/iptables-1.4.6:0=[ipv6?]
46 + net-libs/libnfnetlink:=
47 + net-libs/libmnl:=
48 + dev-libs/gmp:0=
49 + sys-apps/util-linux
50 + dev-libs/openssl:0="
51 +DEPEND="${RDEPEND}
52 + sys-apps/lsb-release"
53 +
54 +src_prepare() {
55 + default
56 + mv Makefile.linux Makefile || die
57 +}
58 +
59 +src_configure() {
60 + local -a opts
61 + opts=(
62 + --vendorcfg
63 + $(usex igd2 '--igd2' '')
64 + $(usex ipv6 '--ipv6' '')
65 + $(usex leasefile '--leasefile' '')
66 + $(usex portinuse '--portinuse' '')
67 + $(usex pcp-peer '--pcp-peer' '')
68 + $(usex strict '--strict' '')
69 + )
70 +
71 + emake CONFIG_OPTIONS="${opts[*]}" config.h
72 +}
73 +
74 +src_compile() {
75 + # By default, it builds a bunch of unittests that are missing wrapper
76 + # scripts in the tarball
77 + emake CC="$(tc-getCC)" STRIP=true miniupnpd
78 +}
79 +
80 +src_install() {
81 + emake PREFIX="${ED}" STRIP=true install
82 +
83 + newinitd "${FILESDIR}"/${PN}-init.d-r1 ${PN}
84 + newconfd "${FILESDIR}"/${PN}-conf.d-r1 ${PN}
85 +}
86 +
87 +pkg_postinst() {
88 + elog "Please correct the external interface in the top of the two"
89 + elog "scripts in /etc/miniupnpd and edit the config file in there too"
90 +}