aboutsummaryrefslogblamecommitdiff
path: root/net/trafshow/Makefile
blob: 8aa3736a3c88e2e9bd7f1510a0571cedee29c7a5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                

                                         
 
           
 
 
                        
                     
                 
                 
                   

                                                                      

                    
                                        
                                                            
 
                   
                                                                                 

                        
                          
 

                                                            

                          
           


                                                                               


                                                                
 



                       
           

                                                              
                                                                       


                                                                              
 
                           
# New ports collection makefile for:	trafshow
# Date created:         25 September 1996
# Whom:                 igor@zynaps.ru
#
# $FreeBSD$
#

PORTNAME=	trafshow
PORTVERSION=	5.2.3
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	net
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

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
ALL_TARGET=	trafshow

MAN1=		trafshow.1

OPTIONS=        IPV6           "Build with IPv6 support" off

.include <bsd.port.pre.mk>

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
.if ${OSVERSION} >= 800074
	@${PATCH} -d ${WRKSRC} < ${FILESDIR}/extra-patch-800074+
.endif

.if defined(WITH_IPV6)
CFLAGS+=	-DINET6
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow.dist
	if [ ! -e ${PREFIX}/etc/trafshow ]; then \
		${CP} -p ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow; \
	fi

.include <bsd.port.post.mk>