48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
|
# $FreeBSD$
|
||
|
|
||
|
PORTNAME= bbparse
|
||
|
PORTVERSION= 0.1.0
|
||
|
DISTVERSIONPREFIX= v
|
||
|
CATEGORIES= devel
|
||
|
|
||
|
MAINTAINER= olivier@FreeBSD.org
|
||
|
COMMENT= Library to parse Blackbox-created PCAPng files
|
||
|
|
||
|
LICENSE= BSD2CLAUSE
|
||
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||
|
|
||
|
ONLY_FOR_ARCHS= amd64
|
||
|
|
||
|
USE_GITHUB= yes
|
||
|
GH_ACCOUNT= Netflix
|
||
|
|
||
|
PLIST_FILES= lib/libbbparse.a \
|
||
|
lib/libbbparse_p.a \
|
||
|
include/bbparse.h \
|
||
|
man/man3/libbbparse.3.gz
|
||
|
|
||
|
MANPAGE_LINKS= bbr_get_next bbr_get_stackname bbr_get_tlh bbr_init_fd bbr_init_file bbr_fini
|
||
|
|
||
|
.for l in ${MANPAGE_LINKS}
|
||
|
PLIST_FILES+= man/man3/${l}.3.gz
|
||
|
.endfor
|
||
|
|
||
|
.include <bsd.port.options.mk>
|
||
|
|
||
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300076
|
||
|
IGNORE= builds only on FreeBSD 13-head with minimum revision 356414
|
||
|
.endif
|
||
|
|
||
|
do-install:
|
||
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib
|
||
|
${MKDIR} ${STAGEDIR}${PREFIX}/include
|
||
|
${INSTALL_DATA} ${WRKSRC}/libbbparse.a ${STAGEDIR}${PREFIX}/lib
|
||
|
${INSTALL_DATA} ${WRKSRC}/libbbparse_p.a ${STAGEDIR}${PREFIX}/lib
|
||
|
${INSTALL_DATA} ${WRKSRC}/bbparse.h ${STAGEDIR}${PREFIX}/include
|
||
|
${INSTALL_MAN} ${WRKSRC}/libbbparse.3.gz ${STAGEDIR}${PREFIX}/man/man3
|
||
|
.for l in ${MANPAGE_LINKS}
|
||
|
${RLN} ${STAGEDIR}${PREFIX}/man/man3/libbbparse.3.gz ${STAGEDIR}${PREFIX}/man/man3/${l}.3.gz
|
||
|
.endfor
|
||
|
|
||
|
.include <bsd.port.mk>
|