git: 812ed750c73e - main - security/libcaes: new port

From: Antoine Brodin <antoine_at_FreeBSD.org>
Date: Wed, 14 Feb 2024 13:13:53 UTC
The branch main has been updated by antoine:

URL: https://cgit.FreeBSD.org/ports/commit/?id=812ed750c73ee278f0dc0fa58bcd06cdd13ce480

commit 812ed750c73ee278f0dc0fa58bcd06cdd13ce480
Author:     Antoine Brodin <antoine@FreeBSD.org>
AuthorDate: 2024-02-14 13:12:51 +0000
Commit:     Antoine Brodin <antoine@FreeBSD.org>
CommitDate: 2024-02-14 13:12:51 +0000

    security/libcaes: new port
    
    Library to support cross-platform AES encryption
---
 security/Makefile          |  1 +
 security/libcaes/Makefile  | 28 ++++++++++++++++++++++++++++
 security/libcaes/distinfo  |  3 +++
 security/libcaes/pkg-descr |  1 +
 security/libcaes/pkg-plist | 14 ++++++++++++++
 5 files changed, 47 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index 87ca5ce6b288..40fff6073d01 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -285,6 +285,7 @@
     SUBDIR += lego
     SUBDIR += libargon2
     SUBDIR += libassuan
+    SUBDIR += libcaes
     SUBDIR += libcryptui
     SUBDIR += libdecaf
     SUBDIR += libecc
diff --git a/security/libcaes/Makefile b/security/libcaes/Makefile
new file mode 100644
index 000000000000..830bca155014
--- /dev/null
+++ b/security/libcaes/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	libcaes
+DISTVERSION=	alpha-20231120
+CATEGORIES=	security
+MASTER_SITES=	https://github.com/libyal/libcaes/releases/download/${PORTVERSION:E}/ \
+		LOCAL/antoine
+
+MAINTAINER=	antoine@FreeBSD.org
+COMMENT=	Library to support cross-platform AES encryption
+WWW=		https://github.com/libyal/libcaes
+
+LICENSE=	LGPL3+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--enable-python --with-openssl=no
+CONFIGURE_ENV=	PYTHON_CONFIG=${PYTHON_CMD}-config
+USES=		libtool pathfix pkgconfig python
+USE_LDCONFIG=	yes
+INSTALL_TARGET=	install-strip
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:E}
+
+OPTIONS_DEFINE=	NLS
+
+NLS_USES=	gettext
+NLS_CONFIGURE_ON=	--with-libintl-prefix=${LOCALBASE}
+NLS_CONFIGURE_OFF=	--disable-nls
+
+.include <bsd.port.mk>
diff --git a/security/libcaes/distinfo b/security/libcaes/distinfo
new file mode 100644
index 000000000000..2bc77b6b0ccb
--- /dev/null
+++ b/security/libcaes/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707831581
+SHA256 (libcaes-alpha-20231120.tar.gz) = d645f90ffff7b0f9a9d7137b7662cfda839db1323f7b4bc6abd57e1a51df6009
+SIZE (libcaes-alpha-20231120.tar.gz) = 922055
diff --git a/security/libcaes/pkg-descr b/security/libcaes/pkg-descr
new file mode 100644
index 000000000000..18b0d9a77fce
--- /dev/null
+++ b/security/libcaes/pkg-descr
@@ -0,0 +1 @@
+libcaes is a library to support cross-platform AES encryption.
diff --git a/security/libcaes/pkg-plist b/security/libcaes/pkg-plist
new file mode 100644
index 000000000000..2ee5dd526202
--- /dev/null
+++ b/security/libcaes/pkg-plist
@@ -0,0 +1,14 @@
+include/libcaes.h
+include/libcaes/definitions.h
+include/libcaes/error.h
+include/libcaes/extern.h
+include/libcaes/features.h
+include/libcaes/types.h
+lib/libcaes.a
+lib/libcaes.so
+lib/libcaes.so.1
+lib/libcaes.so.1.0.0
+%%PYTHON_SITELIBDIR%%/pycaes.a
+%%PYTHON_SITELIBDIR%%/pycaes.so
+libdata/pkgconfig/libcaes.pc
+man/man3/libcaes.3.gz