aboutsummaryrefslogtreecommitdiffstats
path: root/security/sinfp/Makefile
blob: 9a1ac5bb1eedbce45dc236d128e7f526ad207d51 (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
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=   sinfp
PORTREVISION=   ${DBDATE}

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

LICENSE=    ART10

BUILD_DEPENDS=  p5-Net-SinFP>=2.02:${PORTSDIR}/security/p5-Net-SinFP
RUN_DEPENDS:=   ${BUILD_DEPENDS}

PLIST=      ""
PLIST_FILES=    bin/${PORTNAME} \
        %%DATADIR%%/${PORTNAME}.db
NO_BUILD=   yes
MASTERDIR=  ${.CURDIR}/../p5-Net-SinFP
DBDATE=     20110125

USES=       shebangfix
SHEBANG_FILES=  bin/${PORTNAME}.pl

post-patch:
    @${REINPLACE_CMD} -e 's!$$Bin/../db/!${DATADIR}/!' ${WRKSRC}/bin/${PORTNAME}.pl

do-install:
    ${INSTALL} -d ${STAGEDIR}${DATADIR}/
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.ifdef DBDATE
    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}-${DBDATE}.db ${STAGEDIR}${DATADIR}/${PORTNAME}.db
.else
    ${INSTALL_DATA} ${WRKSRC}/bin/${PORTNAME}.db ${STAGEDIR}${DATADIR}/
.endif

.include "${MASTERDIR}/Makefile"