1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

Add intel-ipsec-mb g20200801, intel(R) Multi-Buffer Crypto for IPsec

Library.

PR:		248285
Submitted by:	freebsd@sysctl.cz
This commit is contained in:
Vanilla I. Shu 2020-09-13 12:52:17 +00:00
parent 039934f032
commit bc0f49c532
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=548475
5 changed files with 66 additions and 0 deletions

View File

@ -225,6 +225,7 @@
SUBDIR += ike
SUBDIR += imds-filterd
SUBDIR += integrit
SUBDIR += intel-ipsec-mb
SUBDIR += ipfilter2dshield
SUBDIR += ipfmeta
SUBDIR += ipfw2dshield

View File

@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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 <inttypes.h>
#include <string.h>
#include <errno.h>
+#if defined (__linux__) || defined (__FreeBSD__)
+#include <stdlib.h>
+#else
#include <malloc.h> /* memalign() or _aligned_malloc()/aligned_free() */
-
+#endif
#ifdef _WIN32
#include <windows.h>
#include <process.h>

View File

@ -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