aboutsummaryrefslogblamecommitdiff
path: root/sysutils/pftop/Makefile
blob: 3d3e9b75ae0f9aee041a3c21b3511df727c3d817 (plain) (tree)
1
2
3
4
5
6
7
8
9
                     
                    
                 
                            
 
                                  
                                                                  
                                                
 

                          

                                        
                                
                   
                      
 



                                                 
                              
 
                                                                    
 
                                                    
 


                             
 
                          
 

                                         
 
                      
PORTNAME=	pftop
PORTVERSION=	0.10
PORTREVISION=	1
CATEGORIES=	sysutils net

MAINTAINER=	grembo@FreeBSD.org
COMMENT=	Utility for real-time display of statistics for pf
WWW=		https://github.com/grembo/pftop/

LICENSE=	BSD2CLAUSE

LIB_DEPENDS=	libpfctl.so:net/libpfctl

USES=		localbase uidfix
USE_GITHUB=	yes
GH_ACCOUNT=	grembo

OPTIONS_DEFINE=	ALTQ

ALTQ_DESC=	ALTQ support for queue statistics

.include <bsd.port.options.mk>

MAKE_ARGS=	LOCALBASE="${PREFIX}" MANDIR=${PREFIX}/share/man/man

CFLAGS+=	-DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1

.if ${PORT_OPTIONS:MALTQ}
CFLAGS+=	-DHAVE_ALTQ=1
.endif

MAKE_ARGS+=	CSTD=gnu89

PLIST_FILES=	sbin/pftop \
		share/man/man8/pftop.8.gz

.include <bsd.port.mk>