summaryrefslogtreecommitdiff
path: root/net-mgmt/p0f/Makefile
blob: 797f990e4b19e975e6ba03d6e2d44891a7307e68 (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
# New ports collection makefile for:	p0f
# Date created:				2000-06-12
# Whom:					Trevor Johnson
#
# $FreeBSD$
#

PORTNAME=		p0f
PORTVERSION=		1.7
CATEGORIES=		net
MASTER_SITES=		http://lcamtuf.hack.pl/
DISTNAME=		${PORTNAME}
EXTRACT_SUFX=		.tgz

MAINTAINER=		trevor@jpj.net

WRKSRC=			${WRKDIR}/${PORTNAME}-${PORTVERSION}

post-patch:
	@${PERL} -pi -e "s=/etc=${PREFIX}/etc=g" ${WRKSRC}/p0f.c
	@${PERL} -pi -e "s=/etc=${PREFIX}/etc=g" ${WRKSRC}/README

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/p0f ${PREFIX}/bin
	@${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/etc

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/p0f
	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/p0f
.endif

.include <bsd.port.mk>