diff --git a/net-mgmt/ipfixcol2/Makefile b/net-mgmt/ipfixcol2/Makefile index 59aca4ede7a7..38ff4557deae 100644 --- a/net-mgmt/ipfixcol2/Makefile +++ b/net-mgmt/ipfixcol2/Makefile @@ -1,45 +1,46 @@ PORTNAME= ipfixcol2 DISTVERSIONPREFIX= v DISTVERSION= 2.6.0 CATEGORIES= net-mgmt MAINTAINER= zarychtam@plan-b.pwste.edu.pl COMMENT= NetFlow v5/v9 and IPFIX flow (RFC 7011) data collector WWW= https://github.com/CESNET/ipfixcol2 LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS= aarch64 amd64 ONLY_FOR_ARCHS_REASON= Require SSE2 and static_assert(sizeof(uint64_t) == sizeof(time_t), "Assumed that time_t is uint64_t, but it's not") -BUILD_DEPENDS= rst2man:textproc/py-docutils +BUILD_DEPENDS_aarch64= ${LOCALBASE}/include/sse2neon.h:devel/sse2neon +BUILD_DEPENDS= rst2man:textproc/py-docutils ${BUILD_DEPENDS_${ARCH}} LIB_DEPENDS= librdkafka.so:net/librdkafka \ libepoll-shim.so:devel/libepoll-shim \ libfds.so:net-mgmt/libfds -USES= cmake localbase:ldflags pkgconfig +USES= cmake:testing localbase:ldflags pkgconfig USE_GITHUB= yes GH_ACCOUNT= CESNET USE_RC_SUBR= ${PORTNAME} CXXFLAGS+= -D_GNU_SOURCE LDFLAGS+= -rdynamic SUB_LIST= USER=${USERS:[0]} USERS= ${PORTNAME} GROUPS= ${PORTNAME} PORTEXAMPLES= * OPTIONS_DEFINE= EXAMPLES post-install: ${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}/var/run/${PORTNAME} ${INSTALL_DATA} ${WRKSRC}/doc/data/configs/udp2json.xml \ ${STAGEDIR}${ETCDIR}/startup.xml.sample post-install-EXAMPLES-on: (cd ${WRKSRC}/doc/data && ${COPYTREE_SHARE} "configs" \ ${STAGEDIR}${EXAMPLESDIR}) .include diff --git a/net-mgmt/ipfixcol2/files/patch-src_tools_fdsdump_src_aggregator_hashTable.cpp b/net-mgmt/ipfixcol2/files/patch-src_tools_fdsdump_src_aggregator_hashTable.cpp new file mode 100644 index 000000000000..250fa05e6475 --- /dev/null +++ b/net-mgmt/ipfixcol2/files/patch-src_tools_fdsdump_src_aggregator_hashTable.cpp @@ -0,0 +1,14 @@ +--- src/tools/fdsdump/src/aggregator/hashTable.cpp.orig 2024-10-15 16:33:15 UTC ++++ src/tools/fdsdump/src/aggregator/hashTable.cpp +@@ -6,7 +6,11 @@ + + #define XXH_INLINE_ALL + ++#if defined(__arm__) || defined(__aarch64__) ++#include ++#else + #include ++#endif + + #include "hashTable.hpp" + #include "3rd_party/xxhash/xxhash.h"