1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/net/nmsg/Makefile
Don Lewis b2caa2b036 net/nmsg: Upgrade to 1.2.0
nmsg (1.2.0)

 * Add support for Kafka i/o in JSON and binary forms.

 * Add support for prometheus metrics export.

 * Replace mutex protected counters and flags with stdatomic
   operations.

 * New command line options: --kafkakey, --readkafka, --writekafka,
                             --promport

 * New functions: nmsg_input_open_kafka_endpoint(),
                  nmsg_input_open_kafka_json(),
                  nmsg_output_open_kafka_endpoint(),
                  nmsg_output_open_kafka_json()

Sponsored by:	DomainTools LLC
2024-07-11 11:09:40 -07:00

69 lines
1.9 KiB
Makefile

PORTNAME= nmsg
PORTVERSION= 1.2.0
PORTREVISION= 0
CATEGORIES= net
MASTER_SITES= FARSIGHT LOCAL/truckman/farsight
MAINTAINER= truckman@FreeBSD.org
COMMENT= Network message encapsulation system
WWW= https://github.com/farsightsec/nmsg
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libprotobuf-c.so:devel/protobuf-c \
libwdns.so:dns/wdns
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
USES= gmake libtool pathfix pkgconfig
USE_LDCONFIG= yes
USE_PERL5= build
CONFIGURE_ARGS= --with-pkgconfigdir='$${exec_prefix}/libdata/pkgconfig'
INSTALL_TARGET= install-strip
PORTDOCS= *
# The DOXYGEN option is best effort.
# If doxygen is installed, it will get used if the option is set to NO.
OPTIONS_DEFINE= JSON_C KAFKA ZEROMQ DOXYGEN EXAMPLES MANPAGES DOCS
OPTIONS_DEFAULT= JSON_C KAFKA ZEROMQ DOXYGEN MANPAGES
OPTIONS_SUB= yes
JSON_C_DESC= JSON support via libjson-c
JSON_C_CONFIGURE_WITH= json-c
JSON_C_LIB_DEPENDS= libjson-c.so:devel/json-c
KAFKA_DESC= Kafka I/O in JSON and binary forms
KAFKA_CONFIGURE_WITH= librdkafka
KAFKA_LIB_DEPENDS= librdkafka.so:net/librdkafka
ZEROMQ_DESC= ZeroMQ support
ZEROMQ_CONFIGURE_WITH= libzmq
ZEROMQ_LIB_DEPENDS= libzmq.so:net/libzmq4
ALL_TARGET= all
DOXYGEN_IMPLIES= DOCS
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_USES= perl5
DOXYGEN_ALL_TARGET= html-local
DOCBOOK_XML= ${LOCALBASE}/share/xml/docbook/4.2
MANPAGES_BUILD_DEPENDS= xsltproc:textproc/libxslt \
docbook-xml>0:textproc/docbook-xml \
docbook-xsl-ns>0:textproc/docbook-xsl-ns
MANPAGES_CONFIGURE_WITH= xsltproc
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} README.md README.FILTERS.md \
${STAGEDIR}${DOCSDIR}
post-install-DOXYGEN-on:
(cd ${WRKSRC}/doc/doxygen && \
${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && \
${INSTALL_DATA} *.c *.py ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>