freebsd-ports/net/trafd/Makefile
Bruce M Simpson 71c1e14887 Add an rcNG script to this port, allowing trafd to be invoked more easily
during the boot process.

Sponsored by:	The Paper Street Soap Company
2003-12-12 01:07:39 +00:00

53 lines
1.5 KiB
Makefile

# New ports collection makefile for: trafd
# Date created: 22 January 2000
# Whom: Michael Vasilenko <acid@stu.cn.ua>
#
# $FreeBSD$
#
PORTNAME= trafd
PORTVERSION= 3.0.1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ftp://ftp.riss-telecom.ru/pub/dev/trafd/
EXTRACT_SUFX= .tgz
MAINTAINER= bms@FreeBSD.org
COMMENT= The BPF Traffic Collector
CONFLICTS= bpft-4.*
.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
USE_REINPLACE= yes
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.post.mk>