2013-04-30 02:42:13 +02:00
|
|
|
# Created by: El Vampiro <vampiro@rootshell.ru>
|
2003-02-05 13:30:01 +01:00
|
|
|
|
|
|
|
PORTNAME= bpft
|
2013-04-30 02:42:13 +02:00
|
|
|
PORTVERSION= 4.20040506
|
2016-08-23 19:43:42 +02:00
|
|
|
PORTREVISION= 1
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2013-04-30 02:42:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}4/${PORTNAME}4/${PORTNAME}4-snapshot
|
|
|
|
DISTNAME= ${PORTNAME}4-2004-05-06
|
2003-02-05 13:30:01 +01:00
|
|
|
|
2008-01-24 09:29:49 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-04-30 02:42:13 +02:00
|
|
|
COMMENT= BPF Traffic collector
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2015-12-31 02:16:31 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING.GNU
|
2003-02-05 13:30:01 +01:00
|
|
|
|
2003-10-10 12:01:37 +02:00
|
|
|
CONFLICTS= trafd-3.0.*
|
|
|
|
|
2016-08-23 19:43:42 +02:00
|
|
|
USES= ncurses tar:tgz
|
2013-04-30 02:42:13 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2014-09-13 14:56:20 +02:00
|
|
|
MAKE_ARGS= INSTALL_FILE="${INSTALL_DATA}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
|
|
INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
2013-04-30 02:42:13 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2015-12-31 02:16:31 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2003-02-05 13:30:01 +01:00
|
|
|
|
2003-11-11 10:02:24 +01:00
|
|
|
post-patch:
|
2013-04-30 02:42:13 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/local|${PREFIX}|g' ${WRKSRC}/include/pathnames.h
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^PATH_TOSAVE/s|=.*|= ${PREFIX}/var/bpft| ; \
|
2014-01-15 09:25:17 +01:00
|
|
|
/^INSTALL_DIRECTORY/s|=.*|= ${MKDIR}| ; \
|
2016-08-23 19:43:42 +02:00
|
|
|
s|-lcurses -ltermcap|-L${LOCALBASE}/lib -lncurses|g ; \
|
2014-01-15 09:25:17 +01:00
|
|
|
s|please!|&"| ; \
|
|
|
|
s| $${PATH_| $${DESTDIR}$${PATH_|g ; \
|
|
|
|
s| $${PREFIX_| $${DESTDIR}$${PREFIX_|g' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|bpf_dump.[co]||' ${WRKSRC}/lib/Makefile
|
2013-04-30 02:42:13 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|<net/slip.h>|"../linux-include/net/slip.h"|' \
|
2009-05-06 20:45:34 +02:00
|
|
|
${WRKSRC}/lib/interfaces.c
|
2003-11-11 10:02:24 +01:00
|
|
|
|
2015-12-31 02:16:31 +01:00
|
|
|
post-install-DOCS-on:
|
2014-01-15 09:25:17 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-04-30 02:42:13 +02:00
|
|
|
.for i in README WhatsNew
|
2015-12-31 02:16:31 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2013-04-30 02:42:13 +02:00
|
|
|
.endfor
|
2003-02-05 13:30:01 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|