You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
891 B
38 lines
891 B
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/thc-ipv6/thc-ipv6-2.1.ebuild,v 1.1 2013/01/05 13:32:29 xmw Exp $
|
|
|
|
EAPI=4
|
|
|
|
inherit eutils toolchain-funcs
|
|
|
|
DESCRIPTION="complete tool set to attack the inherent protocol weaknesses of IPV6 and ICMP6"
|
|
HOMEPAGE="http://freeworld.thc.org/thc-ipv6/"
|
|
SRC_URI="http://freeworld.thc.org/releases/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3 openssl"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="ssl"
|
|
|
|
DEPEND="net-libs/libpcap
|
|
ssl? ( dev-libs/openssl )"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}"/${P}-Makefile.patch
|
|
if ! use ssl ; then
|
|
sed -e '/^HAVE_SSL/s:^:#:' \
|
|
-i Makefile
|
|
fi
|
|
}
|
|
|
|
src_compile() {
|
|
emake CC="$(tc-getCC)"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" PREFIX="/usr" STRIP="true" install
|
|
dodoc CHANGES FUCKIT HOWTO-INJECT README
|
|
}
|