summaryrefslogblamecommitdiff
path: root/net-misc/icmptx/icmptx-0.2-r1.ebuild
blob: 08f0dd19024998aef0849feaec02ce741cfe3697 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                    
                                                                  
 

                                         

                                 
                                             
 
               
                      
        
                    

                                   
                                                     
                   


                   



                                            
               

               
                    






                            

                                                             
          
 
                            

                                                           

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