summaryrefslogtreecommitdiff
blob: 0bd2c37257f3ddd2436f030bfcfff891315327ce (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/fpdns/fpdns-0.10.0_pre20130404-r1.ebuild,v 1.1 2014/08/27 17:03:58 axs Exp $

EAPI=5

inherit eutils perl-module

DESCRIPTION="Fingerprinting DNS servers"
HOMEPAGE="https://github.com/kirei/fpdns/"

MY_P="${PN}-${PV##*_pre}"
SRC_URI="https://github.com/kirei/fpdns/archive/20130404.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND=">=dev-perl/Net-DNS-0.74"

S="${WORKDIR}"/"${MY_P}"

src_prepare() {
	## fixes https://github.com/kirei/fpdns/issues/6
	epatch "${FILESDIR}/${P}.ro-header.patch"
}

src_install() {
	newbin apps/fpdns fpdns
	insinto "${VENDOR_LIB}"/Net/DNS/
	doins lib/Net/DNS/Fingerprint.pm
}