# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	security/intel-ipsec-mb
#	security/intel-ipsec-mb/distinfo
#	security/intel-ipsec-mb/Makefile
#	security/intel-ipsec-mb/files
#	security/intel-ipsec-mb/files/patch-perf_ipsec__perf.c
#	security/intel-ipsec-mb/pkg-descr
#
echo c - security/intel-ipsec-mb
mkdir -p security/intel-ipsec-mb > /dev/null 2>&1
echo x - security/intel-ipsec-mb/distinfo
sed 's/^X//' >security/intel-ipsec-mb/distinfo << 'c7ff5cc5e3a23f317788bb461c74b51d'
XTIMESTAMP = 1596669901
XSHA256 (intel-intel-ipsec-mb-vg2020080501-a4a0ff5_GH0.tar.gz) = 59ff4a625f5584152a4d0ac28d32234eccd32d0d76adbb81ae037c55deedd8a1
XSIZE (intel-intel-ipsec-mb-vg2020080501-a4a0ff5_GH0.tar.gz) = 960269
c7ff5cc5e3a23f317788bb461c74b51d
echo x - security/intel-ipsec-mb/Makefile
sed 's/^X//' >security/intel-ipsec-mb/Makefile << 'b6616050ed3b08da8fc68dad65e924d4'
X# $FreeBSD$
X
XPORTNAME=	intel-ipsec-mb
XDISTVERSIONPREFIX=	v
XDISTVERSION=	g2020080501
XCATEGORIES=	security
X
XMAINTAINER=	freebsd@sysctl.cz
XCOMMENT=	Intel(R) Multi-Buffer Crypto for IPsec Library
X
XLICENSE=	BSD3CLAUSE
XLICENSE_FILE=	${WRKSRC}/LICENSE
X
XONLY_FOR_ARCHS=	amd64
X
XBUILD_DEPENDS=	nasm:devel/nasm
X
XUSES=		compiler:c11 gmake
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	intel
XGH_PROJECT=	intel-ipsec-mb
XGH_TAGNAME=	a4a0ff5
X
XUSE_LDCONFIG=	yes
XPLIST_FILES=	include/intel-ipsec-mb.h \
X		lib/libIPSec_MB.so \
X		lib/libIPSec_MB.so.0 \
X		lib/libIPSec_MB.so.0.54.1 \
X		man/man7/libipsec-mb.7.gz
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/lib/intel-ipsec-mb.h ${STAGEDIR}${PREFIX}/include/
X	${INSTALL_LIB} ${WRKSRC}/lib/libIPSec_MB.so.0.54.1-dev ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so.0.54.1
X	${RLN} ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so.0.54.1 ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so.0
X	${RLN} ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so.0 ${STAGEDIR}${PREFIX}/lib/libIPSec_MB.so
X	${INSTALL_MAN} ${WRKSRC}/lib/libipsec-mb.7 ${STAGEDIR}${PREFIX}/man/man7
X
X.include <bsd.port.mk>
b6616050ed3b08da8fc68dad65e924d4
echo c - security/intel-ipsec-mb/files
mkdir -p security/intel-ipsec-mb/files > /dev/null 2>&1
echo x - security/intel-ipsec-mb/files/patch-perf_ipsec__perf.c
sed 's/^X//' >security/intel-ipsec-mb/files/patch-perf_ipsec__perf.c << 'd93433f942a10f517360951be4aa5de0'
X--- perf/ipsec_perf.c.orig	2020-07-30 14:06:18 UTC
X+++ perf/ipsec_perf.c
X@@ -32,8 +32,11 @@
X #include <inttypes.h>
X #include <string.h>
X #include <errno.h>
X+#if defined (__linux__) || defined (__FreeBSD__)
X+#include <stdlib.h>
X+#else
X #include <malloc.h> /* memalign() or _aligned_malloc()/aligned_free() */
X-
X+#endif
X #ifdef _WIN32
X #include <windows.h>
X #include <process.h>
d93433f942a10f517360951be4aa5de0
echo x - security/intel-ipsec-mb/pkg-descr
sed 's/^X//' >security/intel-ipsec-mb/pkg-descr << '568cd7f70f1ca8666c64be40475711f8'
XIntel Multi-Buffer Crypto for IPsec Library is highly-optimized software
Ximplementations of the core cryptographic processing for IPsec, which
Xprovides industry-leading performance on a range of Intel(R) Processors.
X
XWWW: https://github.com/intel/intel-ipsec-mb
568cd7f70f1ca8666c64be40475711f8
exit

