diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-28 08:17:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-28 08:17:07 +0100 |
commit | 5a165c60b9b8c4847067cb83b4be7da785d01f93 (patch) | |
tree | 166b01591366d3479084ea774c888bc84aaa8d4f /net-misc/mrouted/mrouted-3.9.8.ebuild | |
parent | a5b65c81168c90928784a1e92cda84ed5d6b9eb3 (diff) |
gentoo resync : 28.09.2019
Diffstat (limited to 'net-misc/mrouted/mrouted-3.9.8.ebuild')
-rw-r--r-- | net-misc/mrouted/mrouted-3.9.8.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net-misc/mrouted/mrouted-3.9.8.ebuild b/net-misc/mrouted/mrouted-3.9.8.ebuild new file mode 100644 index 000000000000..74cff54b4c32 --- /dev/null +++ b/net-misc/mrouted/mrouted-3.9.8.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="IP multicast routing daemon" +HOMEPAGE="https://troglobit.com/projects/mrouted/" +SRC_URI="https://github.com/troglobit/${PN}/releases/download/${PV}/${P}.tar.bz2" +LICENSE="Stanford GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="rsrr" +RESTRICT="test" + +DEPEND="|| ( dev-util/yacc sys-devel/bison )" + +src_prepare() { + # Respect user CFLAGS, remove upstream optimisation and -Werror, do not + # print command summaries, do print commands + sed -i \ + -e '/^CFLAGS/{s|[[:space:]]=| +=|g;s|-O2||g;s|-Werror||g}' \ + -e '/@printf/d' \ + -e 's|^\t-@|\t-|g' \ + -e 's|^\t@|\t|g' \ + Makefile || die + default +} + +src_configure() { + sh configure $(usex rsrr --enable-rsrr '') + tc-export CC CXX +} + +src_compile() { + emake CC=$(tc-getCC) CXX=$(tc-getCXX) +} + +src_install() { + dobin mrouted + dosbin mtrace mrinfo map-mbone + doman mrouted.8 mtrace.8 mrinfo.8 map-mbone.8 + + insinto /etc + doins mrouted.conf + newinitd "${FILESDIR}"/mrouted.rc mrouted +} |