PORTNAME=	isal
DISTVERSION=	g20220517
PORTREVISION=	1
CATEGORIES=	security
PKGNAMESUFFIX=	-kmod

MAINTAINER=	jhb@FreeBSD.org
COMMENT=	Kernel crypto driver using Intel(R) ISA-L crypto
WWW=		https://github.com/bsdjhb/ocf_isa_l

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/isa-l_crypto/LICENSE

ONLY_FOR_ARCHS=	amd64

BUILD_DEPENDS=	yasm:devel/yasm

USES=		kmod uidfix

USE_GITHUB=	yes
GH_ACCOUNT=	bsdjhb
GH_PROJECT=	ocf_isa_l
GH_TAGNAME=	b9f0356
GH_TUPLE=	intel:isa-l_crypto:v2.22.0:isal_crypto/isa-l_crypto

PLIST_FILES=	${KMODDIR}/isal.ko \
		share/man/man4/isal.4.gz

post-install:
	${INSTALL_MAN} ${WRKSRC}/isal.4 ${STAGEDIR}${PREFIX}/share/man/man4/isal.4

.include <bsd.port.mk>
