1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/net/trafshow/Makefile
Alexey Degtyarev ca48c6d764 - Support STAGE
- Make extra patch for >= 8.x into a normal patch as it's used on all supported
  FreeBSD versions

PR:		ports/187320
Submitted by:	Dmitry Marakasov <amdmi3@amdmi3.ru>
Approved by:	wg (mentor)
2014-03-26 12:27:50 +00:00

36 lines
984 B
Makefile

# Created by: igor@zynaps.ru
# $FreeBSD$
PORTNAME= trafshow
PORTVERSION= 5.2.3
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= net ipv6
MASTER_SITES= ftp://renatasystems.org/pub/FreeBSD/ports/distfiles/ \
ftp://ftp.nsk.su/pub/RinetSoftware/
EXTRACT_SUFX= .tgz
MAINTAINER= alexey@renatasystems.org
COMMENT= Full screen visualization of network traffic
CONFLICTS= trafshow-4.* trafshow3-*
GNU_CONFIGURE= yes
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
ALL_TARGET= trafshow
OPTIONS_DEFINE= IPV6
IPV6_CFLAGS= -DINET6
post-patch:
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \
${WRKSRC}/colormask.c ${WRKSRC}/trafshow.1 ${WRKSRC}/trafshow.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/.trafshow ${STAGEDIR}${PREFIX}/etc/trafshow.dist
.include <bsd.port.mk>