aboutsummaryrefslogblamecommitdiff
path: root/net-mgmt/ng_ipacct/Makefile
blob: 9333ae301eec056c081d97c54053528204a1c429 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                              
           

                         
                        
                        
 
                                    

                                      
                          
 

                                                                                                                          

                                                                                             
                   
                           
 
                        
 

                                       
 
                         
                           
                              
 


                                                                              
             

                                                                                             
                                                    
                                                              
 



                                                 
                      
# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$

PORTNAME=	ng_ipacct
PORTVERSION=	20180401
CATEGORIES=	net-mgmt

MAINTAINER=	vsevolod@FreeBSD.org
COMMENT=	Netgraph IP accounting

LICENSE=	BSD2CLAUSE

BROKEN_armv6=		fails to build: ng_ipacct_hash.h:52:2: implicit declaration of function 'MALLOC' is invalid in C99
BROKEN_armv7=		fails to build: ng_ipacct_hash.h:52:2: implicit declaration of function 'MALLOC' is invalid in C99
BROKEN_powerpc64=	fails to build: pcpu.h: error: size of array '__assert_0' is negative

USE_GITHUB=	yes
USES=		kmod uidfix

GH_ACCOUNT=	vstakhov

MAKE_ARGS+=	OSVERSION=${OSVERSION}
MAKE_ENV+=	BINDIR="${PREFIX}/sbin"

USE_RC_SUBR=	ng_ipacct
SUB_FILES=	pkg-message
CFLAGS+=	-DMEM_USE_ZONE

post-patch:
	@${REINPLACE_CMD} 's,{MANDIR},{DESTDIR}$$&,' ${WRKSRC}/man_ru/Makefile

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/netgraph
	${INSTALL_DATA} ${WRKSRC}/ng_ipacct/ng_ipacct.h ${STAGEDIR}${PREFIX}/include/netgraph
	${INSTALL_DATA} ${FILESDIR}/ng_ipacct.conf \
		${STAGEDIR}${PREFIX}/etc/ng_ipacct.conf.sample

OPTIONS_DEFINE=	VIMAGE
VIMAGE_DESC=	VIMAGE virtual networking support
VIMAGE_CFLAGS=	-DVIMAGE

.include <bsd.port.mk>