summaryrefslogtreecommitdiff
path: root/net-proxy/tayga/tayga-0.9.2-r3.ebuild
blob: a52ba9b60133dd661062dea19cb2604627b77e8b (plain)
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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="6"

inherit autotools

DESCRIPTION="out-of-kernel stateless NAT64 implementation based on TUN"
HOMEPAGE="http://www.litech.org/tayga/"
SRC_URI="http://www.litech.org/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}"/${P}-static-EAM.patch
	"${FILESDIR}"/${P}-manpage-RFC.patch
	"${FILESDIR}"/${P}-release-reserved-addr.patch
)

src_prepare() {
	default
	sed -e '/^CFLAGS/d' \
		-i configure.ac || die "sed failed"
	eautoreconf
}

src_install() {
	default
	newconfd "${FILESDIR}"/tayga.confd ${PN}
	newinitd "${FILESDIR}"/tayga.initd ${PN}
}