2000-01-29 05:37:41 +00:00
|
|
|
# New ports collection makefile for: trafd
|
|
|
|
# Date created: 22 January 2000
|
|
|
|
# Whom: Michael Vasilenko <acid@stu.cn.ua>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= trafd
|
2000-07-07 19:22:14 +00:00
|
|
|
PORTVERSION= 3.0.1
|
2003-12-12 01:07:39 +00:00
|
|
|
PORTREVISION= 2
|
2004-02-23 04:42:13 +00:00
|
|
|
CATEGORIES= net-mgmt
|
2000-01-29 05:37:41 +00:00
|
|
|
MASTER_SITES= ftp://ftp.riss-telecom.ru/pub/dev/trafd/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-12-12 00:41:06 +00:00
|
|
|
MAINTAINER= bms@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= The BPF Traffic Collector
|
2000-01-29 05:37:41 +00:00
|
|
|
|
2003-10-10 10:01:37 +00:00
|
|
|
CONFLICTS= bpft-4.*
|
|
|
|
|
2003-12-12 01:07:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/etc/rc.subr:${PORTSDIR}/sysutils/rc_subr
|
|
|
|
RCSUBRBASE= ${LOCALBASE}/etc
|
|
|
|
.else
|
|
|
|
RCSUBRBASE= /etc
|
|
|
|
.endif
|
|
|
|
|
2000-02-12 20:19:01 +00:00
|
|
|
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
|
2003-12-12 01:07:39 +00:00
|
|
|
${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
|
2003-01-03 07:47:21 +00:00
|
|
|
@${MKDIR} ${PREFIX}/var/trafd
|
|
|
|
@${MKDIR} ${PREFIX}/var/log
|
2000-01-29 05:37:41 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-12-24 02:17:17 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2000-01-29 05:37:41 +00:00
|
|
|
.endif
|
2003-01-03 07:47:21 +00:00
|
|
|
|
2003-12-12 01:07:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|