aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/bpft/Makefile
blob: 8e95ea2b265b9c610911a19cdb6d4e0ac193b2b6 (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
# New ports collection makefile for:   bpft
# Date created:         26 August 2002
# Whom:             El Vampiro <vampiro@rootshell.ru>
#
# $FreeBSD$

PORTNAME=   bpft
PORTVERSION=    4.20040414
CATEGORIES= net-mgmt
MASTER_SITES=   SF/${PORTNAME}4/${PORTNAME}4/${PORTNAME}4-snapshot \
        ftp://rusunix.org/pub/FreeBSD/distfiles/

DISTNAME=   bpft4-2004-04-14
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    The BPF Traffic collector

CONFLICTS=  trafd-3.0.*

WRKSRC=     ${WRKDIR}/bpft
MAN1=       traflog.1 trafstat.1
MAN8=       trafstatd.8 trafd.8
PORTDOCS=   README WhatsNew
MANCOMPRESSED=  yes

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/include/pathnames.h
    @${REINPLACE_CMD} -e 's|/usr/local/|${PREFIX}/|g' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|<net/slip.h>|"../linux-include/net/slip.h"|' \
        ${WRKSRC}/lib/interfaces.c

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
. for file in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
. endfor
.endif

.include <bsd.port.mk>