summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2025-05-13 18:13:16 +0100
committerMatthew Seaman <matthew@FreeBSD.org>2025-05-13 18:18:21 +0100
commitdcc09be5dc87473aede4f6c90c114fd4364d7a91 (patch)
tree03a251c693f81a0cd07d24bad7a72d430836a2cf
parentdevel/py-virtualenv: Update to 20.31.2 (diff)
mail/libtlsrpt: new port
Add libtlsrpt shared library. This can be compiled into an MTA (currently postfix) to enable the sending of TLS reports as defined in RFC 8460. I'll be submitting patches to the postfix and postfix-current ports to enable compiling against this library in the near future. Changes: https://github.com/sys4/libtlsrpt/blob/v0.5.0/CHANGELOG.md
-rw-r--r--mail/Makefile1
-rw-r--r--mail/libtlsrpt/Makefile22
-rw-r--r--mail/libtlsrpt/distinfo3
-rw-r--r--mail/libtlsrpt/pkg-descr6
-rw-r--r--mail/libtlsrpt/pkg-plist23
5 files changed, 55 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 80443466c193..6c286492fe1f 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -188,6 +188,7 @@
SUBDIR += libspf2
SUBDIR += libsrs2
SUBDIR += libsrs_alt
+ SUBDIR += libtlsrpt
SUBDIR += libvmime
SUBDIR += linux-r7-organizer
SUBDIR += linux-r7-organizer-pro
diff --git a/mail/libtlsrpt/Makefile b/mail/libtlsrpt/Makefile
new file mode 100644
index 000000000000..84101df1c7c4
--- /dev/null
+++ b/mail/libtlsrpt/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= libtlsrpt
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.5.0
+CATEGORIES= mail
+
+MAINTAINER= matthew@FreeBSD.org
+COMMENT= Low-level C Library to implement TLSRPT into a MTA
+WWW= https://github.com/sys4/libtlsrpt
+
+LICENSE= LGPL3+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= autoreconf libtool
+
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install-strip
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= sys4
+
+.include <bsd.port.mk>
diff --git a/mail/libtlsrpt/distinfo b/mail/libtlsrpt/distinfo
new file mode 100644
index 000000000000..c2666e3f18be
--- /dev/null
+++ b/mail/libtlsrpt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1747144889
+SHA256 (sys4-libtlsrpt-v0.5.0_GH0.tar.gz) = 8cf811f4feece4e00f9f0140c2f3211b67d7fd46db57d8381d3b35ad5d00135f
+SIZE (sys4-libtlsrpt-v0.5.0_GH0.tar.gz) = 27115
diff --git a/mail/libtlsrpt/pkg-descr b/mail/libtlsrpt/pkg-descr
new file mode 100644
index 000000000000..e1e3a23c3ca9
--- /dev/null
+++ b/mail/libtlsrpt/pkg-descr
@@ -0,0 +1,6 @@
+The libtlsrpt project provides a low-level C Library which implements
+functions that help generate TLSRPT datagrams. Included into a MTA it
+assists the MTA in collecting and sending these datagrams to a TLSRPT
+reporting service where they can be collected, summarized and finally
+sent to a mail platform that requests TLSRPT reports as defined in in
+RFC 8460.
diff --git a/mail/libtlsrpt/pkg-plist b/mail/libtlsrpt/pkg-plist
new file mode 100644
index 000000000000..8204218f7ff7
--- /dev/null
+++ b/mail/libtlsrpt/pkg-plist
@@ -0,0 +1,23 @@
+include/tlsrpt.h
+include/tlsrpt_version.h
+lib/libtlsrpt.a
+lib/libtlsrpt.so
+lib/libtlsrpt.so.0
+lib/libtlsrpt.so.0.0.0
+share/man/man3/tlsrpt_add_delivery_request_failure.3.gz
+share/man/man3/tlsrpt_add_mx_host_pattern.3.gz
+share/man/man3/tlsrpt_add_policy_string.3.gz
+share/man/man3/tlsrpt_cancel_delivery_request.3.gz
+share/man/man3/tlsrpt_close.3.gz
+share/man/man3/tlsrpt_errno_from_error_code.3.gz
+share/man/man3/tlsrpt_error_code_is_internal.3.gz
+share/man/man3/tlsrpt_finish_delivery_request.3.gz
+share/man/man3/tlsrpt_finish_policy.3.gz
+share/man/man3/tlsrpt_get_socket.3.gz
+share/man/man3/tlsrpt_init_delivery_request.3.gz
+share/man/man3/tlsrpt_init_policy.3.gz
+share/man/man3/tlsrpt_open.3.gz
+share/man/man3/tlsrpt_set_blocking.3.gz
+share/man/man3/tlsrpt_set_malloc_and_free.3.gz
+share/man/man3/tlsrpt_set_nonblocking.3.gz
+share/man/man3/tlsrpt_strerror.3.gz