diff --git a/security/Makefile b/security/Makefile index a5cd60abe4c8..33ac92ffc9be 100644 --- a/security/Makefile +++ b/security/Makefile @@ -225,6 +225,7 @@ SUBDIR += ike SUBDIR += imds-filterd SUBDIR += integrit + SUBDIR += intel-ipsec-mb SUBDIR += ipfilter2dshield SUBDIR += ipfmeta SUBDIR += ipfw2dshield diff --git a/security/intel-ipsec-mb/Makefile b/security/intel-ipsec-mb/Makefile new file mode 100644 index 000000000000..bce91b9b408e --- /dev/null +++ b/security/intel-ipsec-mb/Makefile @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= intel-ipsec-mb +DISTVERSION= g20200801 +CATEGORIES= security + +MAINTAINER= freebsd@sysctl.cz +COMMENT= Intel(R) Multi-Buffer Crypto for IPsec Library + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +ONLY_FOR_ARCHS= amd64 + +BUILD_DEPENDS= nasm:devel/nasm + +USES= gmake compiler:c11 localbase:ldflags + +USE_GITHUB= yes +GH_ACCOUNT= intel +GH_PROJECT= intel-ipsec-mb +GH_TAGNAME= 3209c57 + +USE_LDCONFIG= yes +PLIST_FILES= include/intel-ipsec-mb.h \ + lib/libIPSec_MB.so \ + lib/libIPSec_MB.so.0 \ + lib/libIPSec_MB.so.0.54.1 \ + man/man7/libipsec-mb.7.gz + +do-install: + ${INSTALL_DATA} ${WRKSRC}/lib/intel-ipsec-mb.h ${STAGEDIR}${PREFIX}/include/ + ${INSTALL_LIB} ${WRKSRC}/lib/libIPSec_MB.so.0.54.1-dev ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so.0.54.1 + ${RLN} ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so.0.54.1 ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so.0 + ${RLN} ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so.0 ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so + ${INSTALL_MAN} ${WRKSRC}/lib/libipsec-mb.7 ${STAGEDIR}${PREFIX}/man/man7 + +do-test: + cd ${WRKSRC}/test && ./ipsec_xvalid_test -v + cd ${WRKSRC}/test && ./ipsec_MB_testapp -v + +.include diff --git a/security/intel-ipsec-mb/distinfo b/security/intel-ipsec-mb/distinfo new file mode 100644 index 000000000000..f037dee0d003 --- /dev/null +++ b/security/intel-ipsec-mb/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1596650698 +SHA256 (intel-intel-ipsec-mb-g20200801-3209c57_GH0.tar.gz) = 31e968fb9ffa8188a706592b9db8a5af0cca37f82429494a5f37d6eb187d910d +SIZE (intel-intel-ipsec-mb-g20200801-3209c57_GH0.tar.gz) = 962139 diff --git a/security/intel-ipsec-mb/files/patch-perf_ipsec__perf.c b/security/intel-ipsec-mb/files/patch-perf_ipsec__perf.c new file mode 100644 index 000000000000..c3fcb6bd188c --- /dev/null +++ b/security/intel-ipsec-mb/files/patch-perf_ipsec__perf.c @@ -0,0 +1,15 @@ +--- perf/ipsec_perf.c.orig 2020-07-30 14:06:18 UTC ++++ perf/ipsec_perf.c +@@ -32,8 +32,11 @@ + #include + #include + #include ++#if defined (__linux__) || defined (__FreeBSD__) ++#include ++#else + #include /* memalign() or _aligned_malloc()/aligned_free() */ +- ++#endif + #ifdef _WIN32 + #include + #include diff --git a/security/intel-ipsec-mb/pkg-descr b/security/intel-ipsec-mb/pkg-descr new file mode 100644 index 000000000000..fa4f60f0ea76 --- /dev/null +++ b/security/intel-ipsec-mb/pkg-descr @@ -0,0 +1,5 @@ +Intel Multi-Buffer Crypto for IPsec Library is highly-optimized software +implementations of the core cryptographic processing for IPsec, which +provides industry-leading performance on a range of Intel(R) Processors. + +WWW: https://github.com/intel/intel-ipsec-mb