b832d227c3
Makefile rev 1.15 Install the p0fa.fp and p0fr.fp files, needed when the -A and -R options are used (new PORTREVISION). PR: 62273 Submitted by: Radim Kolar files/patch-p0f.c rev 1.3 On FreeBSD, the loopback interface is normally called lo0. PR: 62358 Submitted by: Radim Kolar files/patch-mtu.h rev 1.5 files/patch-p0f.c rev 1.1 more patches to add loopback support PR: 62274 Submitted by: Radim Kolar Reported by: Radim Kolar <hsn@netmag.cz> Pointy hat (XL size) to: wollman
65 lines
1.5 KiB
Makefile
65 lines
1.5 KiB
Makefile
# New ports collection makefile for: p0f
|
|
# Date created: 2000-06-12
|
|
# Whom: Trevor Johnson
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= p0f
|
|
PORTVERSION= 2.0.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://lcamtuf.coredump.cx/p0f/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
|
COMMENT= Passive OS fingerprinting tool
|
|
|
|
ALL_TARGET= all p0fq tools
|
|
DOCFILES= COPYING CREDITS ChangeLog KNOWN_BUGS README TODO win-memleak.txt
|
|
MAN1= p0f.1
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
WRKSRC= ${WRKDIR}/p0f
|
|
|
|
post-patch:
|
|
.for ii in config.h doc/README
|
|
${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig
|
|
${SED} -e "s=/etc=${PREFIX}/etc=g" < ${WRKSRC}/${ii}.orig > \
|
|
${WRKSRC}/${ii}
|
|
.endfor
|
|
|
|
do-install:
|
|
.for ii in p0f test/p0fq test/sendack test/sendack2 test/sendsyn
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${ii} ${PREFIX}/bin
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${WRKSRC}/p0frep ${PREFIX}/bin
|
|
${MKDIR} ${PREFIX}/etc/p0f
|
|
.for ii in . a. r.
|
|
${INSTALL_DATA} ${WRKSRC}/p0f${ii}fp ${PREFIX}/etc/p0f/
|
|
.endfor
|
|
${INSTALL_MAN} ${WRKSRC}/p0f.1 ${MANPREFIX}/man/man1/
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for ii in ${DOCFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${ii} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
pre-install:
|
|
@>${PLIST}
|
|
.for ii in p0f p0frep p0fq sendack sendack2 sendsyn
|
|
${ECHO_CMD} bin/${ii} >> ${PLIST}
|
|
.endfor
|
|
.for ii in . a. r.
|
|
${ECHO_CMD} etc/p0f/p0f${ii}fp >> ${PLIST}
|
|
.endfor
|
|
${ECHO_CMD} "@dirrm etc/p0f" >> ${PLIST}
|
|
.if !defined(NOPORTDOCS)
|
|
.for i in ${DOCFILES}
|
|
${ECHO_CMD} share/doc/p0f/$i >> ${PLIST}
|
|
.endfor
|
|
${ECHO_CMD} "@dirrm share/doc/p0f" >> ${PLIST}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|