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

PORTNAME=   bpft
PORTVERSION=    4.20031028
CATEGORIES= net
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE} \
        ftp://rusunix.org/pub/FreeBSD/distfiles/
MASTER_SITE_SUBDIR=bpft4
DISTNAME=   bpft4-latest
EXTRACT_SUFX=   .tgz

MAINTAINER= aquatique@rusunix.org
COMMENT=    The BPF Traffic collector

CONFLICTS=  trafd-3.0.*

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

pre-everything::
    @${ECHO_MSG}
    @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    @${ECHO_MSG} "!!!                         WARNING                           !!!"
    @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    @${ECHO_MSG}
    @${ECHO_MSG} "This port uses original trafd binaries layout"
    @${ECHO_MSG} "Original trafd and bpft binaries layout are mutually exclusive"
    @${ECHO_MSG}

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/include/pathnames.h

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/WhatsNew ${DOCSDIR}
.endif

.include <bsd.port.mk>