net-dns/dnshijacker: Port to EAPI 7

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2020-01-18 18:35:43 +01:00
parent d629ccb0c0
commit 5317b6380e

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=4
EAPI=7
inherit eutils toolchain-funcs
inherit toolchain-funcs
DESCRIPTION="a libnet/libpcap based packet sniffer and spoofer"
HOMEPAGE="http://pedram.redhive.com/projects.php"
@@ -12,18 +12,16 @@ SRC_URI="http://pedram.redhive.com/downloads/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""
DEPEND="net-libs/libpcap
DEPEND="
net-libs/libpcap
>=net-libs/libnet-1.0.2a-r3:1.0"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.patch
}
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
src_compile() {
emake CC=$(tc-getCC)
src_configure() {
tc-export CC
}
src_install() {
@@ -32,5 +30,5 @@ src_install() {
insinto /etc/dnshijacker
doins ftable
dodoc README
einstalldocs
}