diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-12-13 08:31:00 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-12-13 08:56:43 +0100 |
commit | f9760a8bfe9e249c4c5cf0dac2860b49f482e4b3 (patch) | |
tree | 62948acb8b149de7175db1449f6919adcc29e315 /net-misc/miniupnpd/miniupnpd-2.0.20171212.ebuild | |
parent | profiles/package.mask: Mask icu-60.2 #640896 (diff) | |
download | gentoo-f9760a8bfe9e249c4c5cf0dac2860b49f482e4b3.tar.gz gentoo-f9760a8bfe9e249c4c5cf0dac2860b49f482e4b3.tar.bz2 gentoo-f9760a8bfe9e249c4c5cf0dac2860b49f482e4b3.zip |
net-misc/miniupnpd: Bump to 2.0.20171212
Diffstat (limited to 'net-misc/miniupnpd/miniupnpd-2.0.20171212.ebuild')
-rw-r--r-- | net-misc/miniupnpd/miniupnpd-2.0.20171212.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/net-misc/miniupnpd/miniupnpd-2.0.20171212.ebuild b/net-misc/miniupnpd/miniupnpd-2.0.20171212.ebuild new file mode 100644 index 000000000000..cbdc231611f5 --- /dev/null +++ b/net-misc/miniupnpd/miniupnpd-2.0.20171212.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="MiniUPnP IGD Daemon" +HOMEPAGE="http://miniupnp.free.fr/" +SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+leasefile igd2 ipv6 pcp-peer portinuse strict" + +RDEPEND=">=net-firewall/iptables-1.4.6:0=[ipv6?] + net-libs/libnfnetlink:= + net-libs/libmnl:= + dev-libs/gmp:0= + sys-apps/util-linux + dev-libs/openssl:0=" +DEPEND="${RDEPEND} + sys-apps/lsb-release" + +src_prepare() { + default + mv Makefile.linux Makefile || die +} + +src_configure() { + local -a opts + opts=( + --vendorcfg + $(use igd2 && printf -- '--igd2\n') + $(use ipv6 && printf -- '--ipv6\n') + $(use leasefile && printf -- '--leasefile\n') + $(use portinuse && printf -- '--portinuse\n') + $(use pcp-peer && printf -- '--pcp-peer\n') + $(use strict && printf -- '--strict\n') + ) + + emake CONFIG_OPTIONS="${opts[*]}" config.h +} + +src_compile() { + # By default, it builds a bunch of unittests that are missing wrapper + # scripts in the tarball + emake CC="$(tc-getCC)" STRIP=true miniupnpd +} + +src_install() { + emake PREFIX="${ED}" STRIP=true install + + newinitd "${FILESDIR}"/${PN}-init.d-r1 ${PN} + newconfd "${FILESDIR}"/${PN}-conf.d-r1 ${PN} +} + +pkg_postinst() { + elog "Please correct the external interface in the top of the two" + elog "scripts in /etc/miniupnpd and edit the config file in there too" +} |