aboutsummaryrefslogtreecommitdiffstats
path: root/security/p5-Net-SinFP/Makefile
blob: 8984e98cd7fa988115c83e48f5ce27f4bd180273 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# New ports collection makefile for:    p5-Net-SinFP
# Date created:     26 May 2006
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME?=  Net-SinFP
PORTVERSION=    2.09
.ifdef DBDATE
PORTREVISION=   ${DBDATE}
.endif
CATEGORIES= security ipv6 perl5
MASTER_SITES=   CPAN
.ifdef DBDATE
MASTER_SITES+=  http://www.gomor.org/files/:DB
.endif
MASTER_SITE_SUBDIR= CPAN:GOMOR
DISTNAME=   Net-SinFP-${PORTVERSION}
.ifdef DBDATE
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} \
        ${PORTNAME}-${DBDATE}.db:DB
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}
.endif

MAINTAINER= sbz@FreeBSD.org
COMMENT=    Full operating system stack fingerprinting suite

LICENSE=    ART10
LICENSE_FILE=   ${WRKSRC}/LICENSE

.if ${PORTNAME} == "Net-SinFP"
PKGNAMEPREFIX=  p5-

BUILD_DEPENDS+= p5-Class-Gomor>=1.00:${PORTSDIR}/devel/p5-Class-Gomor \
        p5-DBIx-SQLite-Simple>=0.33:${PORTSDIR}/databases/p5-DBIx-SQLite-Simple \
        p5-Net-Packet>=3.00:${PORTSDIR}/net/p5-Net-Packet \
        p5-Net-Packet-Target>=1.00:${PORTSDIR}/net/p5-Net-Packet-Target
RUN_DEPENDS:=   ${BUILD_DEPENDS}

PERL_CONFIGURE= yes
INSTALL_TARGET= pure_install

MAN3=   Net::SinFP.3 \
    Net::SinFP::Consts.3 \
    Net::SinFP::DB.3 \
    Net::SinFP::DB::IpVersion.3 \
    Net::SinFP::DB::Os.3 \
    Net::SinFP::DB::OsVersion.3 \
    Net::SinFP::DB::OsVersionChildren.3 \
    Net::SinFP::DB::OsVersionFamily.3 \
    Net::SinFP::DB::PatternBinary.3 \
    Net::SinFP::DB::PatternTcpFlags.3 \
    Net::SinFP::DB::PatternTcpMss.3 \
    Net::SinFP::DB::PatternTcpOptions.3 \
    Net::SinFP::DB::PatternTcpWindow.3 \
    Net::SinFP::DB::Signature.3 \
    Net::SinFP::DB::SystemClass.3 \
    Net::SinFP::DB::Vendor.3 \
    Net::SinFP::Result.3 \
    Net::SinFP::Search.3 \
    Net::SinFP::SinFP4.3 \
    Net::SinFP::SinFP6.3

post-patch:
    @${REINPLACE_CMD} -e 's/.*EXE_FILES.*//' ${WRKSRC}/${CONFIGURE_SCRIPT}

regression-test:
    @(cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} && ${MAKE} test)
.endif

ONLY_FOR_ARCHS=     i386 amd64 alpha
ONLY_FOR_ARCHS_REASON=  Big endian architectures not supported yet

.include <bsd.port.mk>