blob: 08f0dd19024998aef0849feaec02ce741cfe3697 (
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
41
42
43
44
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3 linux-info toolchain-funcs
DESCRIPTION="IP over ICMP tunnel"
HOMEPAGE="https://github.com/jakkarth/icmptx"
LICENSE="GPL-3"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="client server"
REQUIRED_USE="|| ( client server )"
EGIT_REPO_URI="https://github.com/jakkarth/${PN}.git"
EGIT_COMMIT="${PV}"
CONFIG_CHECK="~TUN"
PATCHES=(
"${FILESDIR}/${P}-BJA-Makefile.diff"
)
src_prepare() {
default
tc-export CC
}
src_install() {
dosbin icmptx
dodoc README
if use client ; then
newinitd "${FILESDIR}/icmptxcd.init" icmptxcd
newconfd "${FILESDIR}/icmptxcd.conf" icmptxcd
fi
if use server ; then
newinitd "${FILESDIR}/icmptxd.init" icmptxd
newconfd "${FILESDIR}/icmptxd.conf" icmptxd
fi
}
|