blob: a6c98ec8ca20ce5f62e448488648b198f9374e3d (
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: trafd
# Date created: 22 January 2000
# Whom: Michael Vasilenko <acid@stu.cn.ua>
#
# $FreeBSD$
#
PORTNAME= trafd
PORTVERSION= 3.0.2.1
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.riss-telecom.ru/pub/dev/trafd/
MAINTAINER= ports@FreeBSD.org
COMMENT= The BPF Traffic Collector
CONFLICTS= bpft-4.*
RCSUBRBASE= /etc
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/trafd/trafd ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/trafd/trafstart ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/trafd/trafstop ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/trafd/trafsave ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/trafd/trafdump ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/trafstat/trafstat ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/trafstatd/trafstatd ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/traflog/traflog ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/traflog/traflog.format ${PREFIX}/etc
${CP} ${FILESDIR}/trafd.sh.sample ${WRKDIR}
${REINPLACE_CMD} -e "s|%%RC_SUBR%%|${RCSUBRBASE}/rc.subr|g;" \
${WRKDIR}/trafd.sh.sample
${INSTALL_SCRIPT} ${WRKDIR}/trafd.sh.sample ${PREFIX}/etc/rc.d
@${MKDIR} ${PREFIX}/var/trafd
@${MKDIR} ${PREFIX}/var/log
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} >= 800000
@${REINPLACE_CMD} -e "s|-DCSLIP|-UCSLIP|" \
${WRKSRC}/Makefile.inc
.endif
.include <bsd.port.post.mk>
|