git: 8a03fb6d4c50 - main - security/libtatsu: New port

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Thu, 11 Jul 2024 01:45:42 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8a03fb6d4c504049cdc4f2a98b7f1c07cdbac881

commit 8a03fb6d4c504049cdc4f2a98b7f1c07cdbac881
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2024-07-11 00:36:04 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2024-07-11 01:45:31 +0000

    security/libtatsu: New port
    
    Library handling the communication with Apple's Tatsu Signing Server
    (TSS).
    
    This library is part of the libimobiledevice project and its main
    purpose is to create TSS request payloads, send them to Apple's TSS
    server, and ultimately retrieve and process the response.
    
    PR:             280014
    Reported by:    <fabio.comolli@gmail.com>
---
 security/Makefile           |  1 +
 security/libtatsu/Makefile  | 30 ++++++++++++++++++++++++++++++
 security/libtatsu/distinfo  |  3 +++
 security/libtatsu/pkg-descr |  6 ++++++
 security/libtatsu/pkg-plist |  7 +++++++
 5 files changed, 47 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index 45cd7b6fec33..06c16a8abb62 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -323,6 +323,7 @@
     SUBDIR += libssh
     SUBDIR += libssh2
     SUBDIR += libtasn1
+    SUBDIR += libtatsu
     SUBDIR += libtomcrypt
     SUBDIR += libu2f-host
     SUBDIR += libuecc
diff --git a/security/libtatsu/Makefile b/security/libtatsu/Makefile
new file mode 100644
index 000000000000..1841fed507c5
--- /dev/null
+++ b/security/libtatsu/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	libtatsu
+PORTVERSION=	1.0.3
+CATEGORIES=	security
+MASTER_SITES=	https://github.com/libimobiledevice/${PORTNAME}/releases/download/${PORTVERSION}/
+
+MAINTAINER=	jhale@FreeBSD.org
+COMMENT=	Library for communicating with Apple's Tatsu Signing Server
+WWW=		https://www.libimobiledevice.org
+
+LICENSE=	LGPL21+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libplist-2.0.so:devel/libplist \
+		libcurl.so:ftp/curl
+
+USES=		libtool pathfix pkgconfig tar:bzip2
+USE_LDCONFIG=	yes
+
+GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
+
+PORTDOCS=	NEWS README.md
+
+OPTIONS_DEFINE=	DOCS
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/security/libtatsu/distinfo b/security/libtatsu/distinfo
new file mode 100644
index 000000000000..b1a6961e6cb7
--- /dev/null
+++ b/security/libtatsu/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1720416933
+SHA256 (libtatsu-1.0.3.tar.bz2) = 4f69452d23e50e0ffbe844110e6ab6a900d080e051fbda3b7d595f679dee9bc5
+SIZE (libtatsu-1.0.3.tar.bz2) = 303021
diff --git a/security/libtatsu/pkg-descr b/security/libtatsu/pkg-descr
new file mode 100644
index 000000000000..0a449acdde32
--- /dev/null
+++ b/security/libtatsu/pkg-descr
@@ -0,0 +1,6 @@
+Library handling the communication with Apple's Tatsu Signing Server
+(TSS).
+
+This library is part of the libimobiledevice project and its main
+purpose is to create TSS request payloads, send them to Apple's TSS
+server, and ultimately retrieve and process the response.
diff --git a/security/libtatsu/pkg-plist b/security/libtatsu/pkg-plist
new file mode 100644
index 000000000000..4af275dd3a76
--- /dev/null
+++ b/security/libtatsu/pkg-plist
@@ -0,0 +1,7 @@
+include/libtatsu/tatsu.h
+include/libtatsu/tss.h
+lib/libtatsu.a
+lib/libtatsu.so
+lib/libtatsu.so.0
+lib/libtatsu.so.0.0.1
+libdata/pkgconfig/libtatsu-1.0.pc