2000-07-09 23:51:01 -04:00
|
|
|
# New ports collection makefile for: p0f
|
|
|
|
# Date created: 2000-06-12
|
|
|
|
# Whom: Trevor Johnson
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= p0f
|
2002-02-10 19:48:30 -05:00
|
|
|
PORTVERSION= 1.8.2
|
2002-01-21 03:47:53 -05:00
|
|
|
PORTREVISION= 1
|
2000-07-09 23:51:01 -04:00
|
|
|
CATEGORIES= net
|
2002-01-21 03:47:53 -05:00
|
|
|
MASTER_SITES= http://www.stearns.org/p0f/
|
2000-07-09 23:51:01 -04:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2000-10-02 01:39:35 -04:00
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
2000-07-09 23:51:01 -04:00
|
|
|
|
2002-02-10 19:48:30 -05:00
|
|
|
DOCFILES= COPYING CREDITS ChangeLog README
|
2002-01-21 03:47:53 -05:00
|
|
|
MAN1= p0f.1
|
2002-02-10 19:48:30 -05:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2000-07-09 23:51:01 -04:00
|
|
|
|
|
|
|
post-patch:
|
2002-01-21 03:47:53 -05:00
|
|
|
${PERL} -pi -e "s=/etc=${PREFIX}/etc=g" \
|
2002-01-09 16:19:39 -05:00
|
|
|
${WRKSRC}/README \
|
|
|
|
${WRKSRC}/p0f.c
|
2000-07-09 23:51:01 -04:00
|
|
|
|
|
|
|
do-install:
|
2002-01-21 03:47:53 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/p0f ${PREFIX}/bin
|
2002-02-10 19:48:30 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/p0frep ${PREFIX}/bin
|
2002-01-21 03:47:53 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/etc
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
|
2000-07-09 23:51:01 -04:00
|
|
|
|
2002-02-10 19:48:30 -05:00
|
|
|
pre-install:
|
|
|
|
${ECHO_CMD} bin/p0f > ${PLIST}
|
|
|
|
${ECHO_CMD} bin/p0frep >> ${PLIST}
|
|
|
|
${ECHO_CMD} etc/p0f.fp >> ${PLIST}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for i in ${DOCFILES}
|
|
|
|
${ECHO_CMD} share/doc/p0f/$i >> ${PLIST}
|
|
|
|
.endfor
|
|
|
|
${ECHO_CMD} "@dirrm share/doc/p0f" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
|
2000-07-09 23:51:01 -04:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-02-10 19:48:30 -05:00
|
|
|
${MKDIR} ${DOCSDIR}/p0f
|
|
|
|
.for i in ${DOCFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/p0f
|
|
|
|
.endfor
|
2000-07-09 23:51:01 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|