summaryrefslogtreecommitdiff
path: root/net-misc/smcroute/smcroute-0.92.ebuild
blob: fe1da33e90ff53a5931b16ad59cb11de8e99916d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit toolchain-funcs

DESCRIPTION="command line tool to manipulate the multicast routes of the Linux kernel"
HOMEPAGE="http://www.cschill.de/smcroute"
SRC_URI="http://www.cschill.de/smcroute/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

DOCS=( ChangeLog.txt )
HTML_DOCS=( doc/smcroute-man.html )

S="${WORKDIR}/${P}/src"

src_prepare() {
	default

	sed -i -e "/^CFLAGS/d" \
		Makefile

	tc-export CC
}

src_compile() {
	emake all
}

src_install() {
	emake install

	cd ..
	dosbin bin/mcsender bin/smcroute
	doman  doc/smcroute.8
}