1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/net/nmsg/Makefile
Don Lewis 6c94525d41 Upgrade net/nmsg to version 0.15.0:
* Added runtime-tunable environment variables NMSG_GRALIAS_FILE and
   NMSG_OPALIAS_FILE.

 * Added compile-time version info to API: NMSG_LIBRARY_VERSION and
   MSG_LIBRARY_VERSION_NUMBER; and runtime functions: nmsg_get_version()
   and nmsg_get_version_number().

 * Ensure nmsg_sock_parse_sockspec() returns an error if an invalid port
   range is supplied.

 * Fixed nmsg_io filtering default policy logic. (Previously, if the final
   filter returned "declined", that result was returned in place of the
   configured default policy.)

 * Make nmsg_output_set_buffered() able to unbuffer nmsg_output_type_json
   objects.

 * Fixed many compiler check warnings.

 * Added multiple unit tests.

 * Fix bugs caught by static analysis (cppcheck).

 * For protobuf compatibility, renamed all protobuf-c generated enum
   names and types, although the wire format of the messages remains
   the same. (Thank you to Chris Morrow.) Compatibility definitions
   added to nmsg/compat.h to allow existing code to continue using the
   old names.

 * Miscellaneous documentation improvements.

Sponsored by:	Farsight Security, Inc.
2019-11-06 05:46:46 +00:00

60 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= nmsg
PORTVERSION= 0.15.0
CATEGORIES= net
MASTER_SITES= FARSIGHT LOCAL/truckman/farsight
MAINTAINER= truckman@FreeBSD.org
COMMENT= Network message encapsulation system
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libprotobuf-c.so:devel/protobuf-c \
libxs.so:devel/libxs \
libwdns.so:dns/wdns \
libyajl.so:devel/yajl
GNU_CONFIGURE= yes
USES= gmake libtool pathfix pkgconfig
USE_LDCONFIG= yes
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= DOXYGEN EXAMPLES MANPAGES DOCS
OPTIONS_DEFAULT= DOXYGEN MANPAGES
OPTIONS_SUB= yes
CPPFLAGS+= -I${LOCALBASE}/include/yajl
ALL_TARGET= all
DOXYGEN_IMPLIES= DOCS
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
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>