2020-08-10 09:32:00 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2018-09-29 20:20:39 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2020-08-10 09:32:00 +03:00
|
|
|
EAPI=7
|
2018-09-29 20:20:39 +03:00
|
|
|
|
|
|
|
inherit linux-info qmake-utils systemd
|
|
|
|
|
|
|
|
DESCRIPTION="A multicast proxy for IGMP/MLD"
|
|
|
|
HOMEPAGE="https://mcproxy.realmv6.org/ https://github.com/mcproxy/mcproxy"
|
|
|
|
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
2019-05-13 11:07:51 +03:00
|
|
|
KEYWORDS="amd64 x86"
|
2018-09-29 20:20:39 +03:00
|
|
|
LICENSE="GPL-2+"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="doc"
|
|
|
|
|
2018-11-09 08:19:41 +03:00
|
|
|
DEPEND="
|
|
|
|
dev-qt/qtcore:5
|
|
|
|
doc? ( app-doc/doxygen )
|
|
|
|
"
|
2018-09-29 20:20:39 +03:00
|
|
|
|
|
|
|
S="${WORKDIR}/${P}/${PN}"
|
|
|
|
|
2020-09-21 13:52:15 +03:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}/${P}-clang.patch"
|
|
|
|
"${FILESDIR}/${P}-fix-checksum-calculation.patch"
|
|
|
|
)
|
2018-09-29 20:20:39 +03:00
|
|
|
|
|
|
|
CONFIG_CHECK="~IP_MULTICAST ~IP_MROUTE"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
# Change install path from '/usr/local/bin' to '/usr/bin'
|
|
|
|
sed -e 's/local//' -i mcproxy.pro || die
|
|
|
|
|
|
|
|
default
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
eqmake5
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
default
|
|
|
|
|
|
|
|
use doc && emake doc
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2019-12-07 08:52:26 +03:00
|
|
|
emake INSTALL_ROOT="${ED}" install
|
2018-09-29 20:20:39 +03:00
|
|
|
|
|
|
|
insinto /etc
|
|
|
|
doins mcproxy.conf
|
|
|
|
|
|
|
|
newinitd "${FILESDIR}"/mcproxy.initd mcproxy
|
|
|
|
systemd_dounit "${FILESDIR}"/mcproxy.service
|
|
|
|
|
|
|
|
newconfd "${FILESDIR}"/mcproxy.confd mcproxy
|
|
|
|
|
|
|
|
use doc && dodoc -r ../docs/.
|
|
|
|
}
|