# 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 }