Fri Apr 21 00:49:56 2023 UTC ()
Added mail/openarc 20180921

ARC is a technology proposal, put forward by a consortium of organizations,
intended to allow a chain of message handlers (typically email operators)
to confirm handling by trusted upstream handlers in an attempt to confirm
the valid use of certain identifiers in the message.

ARC is still experimental, and its specification may change.  This package
is intended for use by operators willing to take part in the experiment and
provide their feedback to the development team.


(manu)
diff -r1.2343 -r1.2344 pkgsrc/doc/CHANGES-2023
diff -r1.595 -r1.596 pkgsrc/mail/Makefile
diff -r0 -r1.1 pkgsrc/mail/openarc/DESCR
diff -r0 -r1.1 pkgsrc/mail/openarc/Makefile
diff -r0 -r1.1 pkgsrc/mail/openarc/PLIST
diff -r0 -r1.1 pkgsrc/mail/openarc/buildlink3.mk
diff -r0 -r1.1 pkgsrc/mail/openarc/distinfo
diff -r0 -r1.1 pkgsrc/mail/openarc/files/openarc.sh
diff -r0 -r1.1 pkgsrc/mail/openarc/patches/patch-libopenarc_arc.c

cvs diff -r1.2343 -r1.2344 pkgsrc/doc/CHANGES-2023 (expand / switch to unified diff)

--- pkgsrc/doc/CHANGES-2023 2023/04/21 00:44:18 1.2343
+++ pkgsrc/doc/CHANGES-2023 2023/04/21 00:49:56 1.2344
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: CHANGES-2023,v 1.2343 2023/04/21 00:44:18 manu Exp $ 1$NetBSD: CHANGES-2023,v 1.2344 2023/04/21 00:49:56 manu Exp $
2 2
3Changes to the packages collection and infrastructure in 2023: 3Changes to the packages collection and infrastructure in 2023:
4 4
5 Updated devel/R-cli to 3.5.0 [mef 2023-01-01] 5 Updated devel/R-cli to 3.5.0 [mef 2023-01-01]
6 Updated devel/R-purrr to 1.0.0 [mef 2023-01-01] 6 Updated devel/R-purrr to 1.0.0 [mef 2023-01-01]
7 Updated www/R-webfakes to 1.1.6 [mef 2023-01-01] 7 Updated www/R-webfakes to 1.1.6 [mef 2023-01-01]
8 Updated devel/R-pkgcache to 2.0.4 [mef 2023-01-01] 8 Updated devel/R-pkgcache to 2.0.4 [mef 2023-01-01]
9 Updated devel/R-repr to 1.1.4 [mef 2023-01-01] 9 Updated devel/R-repr to 1.1.4 [mef 2023-01-01]
10 Updated databases/R-dbplyr to 2.2.1 [mef 2023-01-01] 10 Updated databases/R-dbplyr to 2.2.1 [mef 2023-01-01]
11 Updated archivers/R-zip to 2.2.2 [mef 2023-01-01] 11 Updated archivers/R-zip to 2.2.2 [mef 2023-01-01]
12 Updated misc/R-pillar to 1.8.1 [mef 2023-01-01] 12 Updated misc/R-pillar to 1.8.1 [mef 2023-01-01]
13 Updated math/R-tibble to 3.1.8 [mef 2023-01-01] 13 Updated math/R-tibble to 3.1.8 [mef 2023-01-01]
14 Updated databases/R-RSQLite to 2.2.20 [mef 2023-01-01] 14 Updated databases/R-RSQLite to 2.2.20 [mef 2023-01-01]
@@ -3369,13 +3369,14 @@ Changes to the packages collection and i @@ -3369,13 +3369,14 @@ Changes to the packages collection and i
3369 Updated net/syncthing to 1.23.4 [triaxx 2023-04-20] 3369 Updated net/syncthing to 1.23.4 [triaxx 2023-04-20]
3370 Updated textproc/py-rdflib to 6.3.2 [adam 2023-04-20] 3370 Updated textproc/py-rdflib to 6.3.2 [adam 2023-04-20]
3371 Updated devel/py-jaraco.path to 3.5.0 [adam 2023-04-20] 3371 Updated devel/py-jaraco.path to 3.5.0 [adam 2023-04-20]
3372 Updated lang/qore to 1.14.2 [nros 2023-04-20] 3372 Updated lang/qore to 1.14.2 [nros 2023-04-20]
3373 Updated textproc/qore-json-module to 1.8.2 [nros 2023-04-20] 3373 Updated textproc/qore-json-module to 1.8.2 [nros 2023-04-20]
3374 Updated databases/qore-openldap-module to 1.2.3 [nros 2023-04-20] 3374 Updated databases/qore-openldap-module to 1.2.3 [nros 2023-04-20]
3375 Updated textproc/qore-xml-module to 1.8.0 [nros 2023-04-20] 3375 Updated textproc/qore-xml-module to 1.8.0 [nros 2023-04-20]
3376 Updated textproc/qore-yaml-module to 0.7.3 [nros 2023-04-20] 3376 Updated textproc/qore-yaml-module to 0.7.3 [nros 2023-04-20]
3377 Updated textproc/icu to 73.1nb1 [wiz 2023-04-20] 3377 Updated textproc/icu to 73.1nb1 [wiz 2023-04-20]
3378 Updated shells/oh-my-posh to 14.31.2 [schmonz 2023-04-20] 3378 Updated shells/oh-my-posh to 14.31.2 [schmonz 2023-04-20]
3379 Updated www/p5-Playwright to 1.324 [schmonz 2023-04-20] 3379 Updated www/p5-Playwright to 1.324 [schmonz 2023-04-20]
3380 Added misc/chatgpt-shell-cli version 0.0.20230420 [schmonz 2023-04-20] 3380 Added misc/chatgpt-shell-cli version 0.0.20230420 [schmonz 2023-04-20]
3381 Added databases/openldap-autogroup 2.6.4 [manu 2023-04-21] 3381 Added databases/openldap-autogroup 2.6.4 [manu 2023-04-21]
 3382 Added mail/openarc 20180921 [manu 2023-04-21]

cvs diff -r1.595 -r1.596 pkgsrc/mail/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/Makefile 2023/03/08 23:45:10 1.595
+++ pkgsrc/mail/Makefile 2023/04/21 00:49:56 1.596
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.595 2023/03/08 23:45:10 nikita Exp $ 1# $NetBSD: Makefile,v 1.596 2023/04/21 00:49:56 manu Exp $
2# 2#
3 3
4COMMENT= Electronic mail utilities 4COMMENT= Electronic mail utilities
5 5
6SUBDIR+= GNUMail 6SUBDIR+= GNUMail
7SUBDIR+= OSBF-lua 7SUBDIR+= OSBF-lua
8SUBDIR+= Pantomime 8SUBDIR+= Pantomime
9SUBDIR+= R-mime 9SUBDIR+= R-mime
10SUBDIR+= akonadi 10SUBDIR+= akonadi
11SUBDIR+= alpine 11SUBDIR+= alpine
12SUBDIR+= amavisd-milter 12SUBDIR+= amavisd-milter
13SUBDIR+= amavisd-new 13SUBDIR+= amavisd-new
14SUBDIR+= anomy-sanitizer 14SUBDIR+= anomy-sanitizer
@@ -179,26 +179,27 @@ SUBDIR+= mush @@ -179,26 +179,27 @@ SUBDIR+= mush
179SUBDIR+= mutt 179SUBDIR+= mutt
180SUBDIR+= neomutt 180SUBDIR+= neomutt
181SUBDIR+= netbiff 181SUBDIR+= netbiff
182SUBDIR+= newmail 182SUBDIR+= newmail
183SUBDIR+= newspipe 183SUBDIR+= newspipe
184SUBDIR+= nmh 184SUBDIR+= nmh
185SUBDIR+= nmzmail 185SUBDIR+= nmzmail
186SUBDIR+= nopop3d 186SUBDIR+= nopop3d
187SUBDIR+= notmuch 187SUBDIR+= notmuch
188SUBDIR+= notmuch-emacs 188SUBDIR+= notmuch-emacs
189SUBDIR+= nullmailer 189SUBDIR+= nullmailer
190SUBDIR+= oe2mbx 190SUBDIR+= oe2mbx
191SUBDIR+= offlineimap 191SUBDIR+= offlineimap
 192SUBDIR+= openarc
192SUBDIR+= opendkim 193SUBDIR+= opendkim
193SUBDIR+= opendmarc 194SUBDIR+= opendmarc
194SUBDIR+= p5-App-Siesh 195SUBDIR+= p5-App-Siesh
195SUBDIR+= p5-Catalyst-View-Email 196SUBDIR+= p5-Catalyst-View-Email
196SUBDIR+= p5-Email-Abstract 197SUBDIR+= p5-Email-Abstract
197SUBDIR+= p5-Email-Address 198SUBDIR+= p5-Email-Address
198SUBDIR+= p5-Email-Address-List 199SUBDIR+= p5-Email-Address-List
199SUBDIR+= p5-Email-Address-XS 200SUBDIR+= p5-Email-Address-XS
200SUBDIR+= p5-Email-Date 201SUBDIR+= p5-Email-Date
201SUBDIR+= p5-Email-Date-Format 202SUBDIR+= p5-Email-Date-Format
202SUBDIR+= p5-Email-Find 203SUBDIR+= p5-Email-Find
203SUBDIR+= p5-Email-Folder 204SUBDIR+= p5-Email-Folder
204SUBDIR+= p5-Email-FolderType 205SUBDIR+= p5-Email-FolderType

File Added: pkgsrc/mail/openarc/DESCR
ARC is a technology proposal, put forward by a consortium of organizations,
intended to allow a chain of message handlers (typically email operators)
to confirm handling by trusted upstream handlers in an attempt to confirm
the valid use of certain identifiers in the message.

ARC is still experimental, and its specification may change.  This package
is intended for use by operators willing to take part in the experiment and
provide their feedback to the development team.

File Added: pkgsrc/mail/openarc/Makefile
# $NetBSD: Makefile,v 1.1 2023/04/21 00:49:56 manu Exp $

GITHUB_PROJECT=	OpenARC
GITHUB_TAG=	355ee2a1ca85acccce494478991983b54f794f4e
DISTNAME=	openarc-20180921
PKGREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_GITHUB:=trusteddomainproject/}
DIST_SUBDIR=	${GITHUB_PROJECT}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/trusteddomainproject/OpenARC
COMMENT=	Open source ARC library, MTA filter implementation and tools
LICENSE=	modified-bsd

RCD_SCRIPTS=	openarc

USE_LIBTOOL=	yes
USE_TOOLS+=	aclocal autoconf automake

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--with-milter=${BUILDLINK_PREFIX.libmilter}

EGDIR=		${PREFIX}/share/examples/${PKGBASE}

INSTALLATION_DIRS=	${EGDIR}

pre-configure:
	set -e; cd ${WRKSRC}; \
	libtoolize; aclocal; autoheader; automake -a --foreign -i; autoconf

post-install:
	${INSTALL_DATA} ${WRKSRC}/openarc/openarc.conf.sample \
		${DESTDIR}${EGDIR}/

.include "../../security/openssl/buildlink3.mk"
BUILDLINK_API_DEPENDS.libmilter+=	libmilter>=8.13.0
.include "../../mail/libmilter/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/mail/openarc/PLIST
@comment $NetBSD: PLIST,v 1.1 2023/04/21 00:49:56 manu Exp $
include/openarc/arc.h
lib/libopenarc.la
lib/pkgconfig/openarc.pc
man/man5/openarc.conf.5
man/man8/openarc.8
sbin/openarc
share/doc/openarc/LICENSE
share/doc/openarc/LICENSE.Sendmail
share/doc/openarc/RELEASE_NOTES
share/doc/openarc/draft-andersen-arc-05.txt
share/doc/openarc/index.html
share/doc/openarc/openarc
share/doc/openarc/openarc.conf.sample
share/doc/openarc/openarc.conf.simple
share/doc/openarc/openarc.service
share/doc/openarc/openarc.spec.in
share/doc/openarc/openarc.xml
share/examples/openarc/openarc.conf.sample

File Added: pkgsrc/mail/openarc/buildlink3.mk
# $NetBSD: buildlink3.mk,v 1.1 2023/04/21 00:49:56 manu Exp $

BUILDLINK_TREE+=	openarc

.if !defined(OPENARC_BUILDLINK3_MK)
OPENARC_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.openarc+=	openarc>=1.1.3nb2
BUILDLINK_ABI_DEPENDS.openarc?=	openarc>=1.3.1nb6
BUILDLINK_PKGSRCDIR.openarc?=	../../mail/openarc

.include "../../security/openssl/buildlink3.mk"
.include "../../mail/libmilter/buildlink3.mk"
.endif	# OPENARC_BUILDLINK3_MK

BUILDLINK_TREE+=	-openarc

File Added: pkgsrc/mail/openarc/distinfo
$NetBSD: distinfo,v 1.1 2023/04/21 00:49:56 manu Exp $

SHA1 (OpenARC/openarc-20180921-355ee2a1ca85acccce494478991983b54f794f4e.tar.gz) = 2d3da6808e7ac6570df1a6dfa6be20204dfde152
RMD160 (OpenARC/openarc-20180921-355ee2a1ca85acccce494478991983b54f794f4e.tar.gz) = 0fce32633c541fcc7d14d80190dd6262fddf35da
SHA512 (OpenARC/openarc-20180921-355ee2a1ca85acccce494478991983b54f794f4e.tar.gz) = edf006b4c8312ea93f478a228a498cd00394c9ec9682cd918e15629ef77974c530033a2de466d7e3d30eefa5d0ad12514f18a914fb69ccfc4b8306ee147c917c
Size (OpenARC/openarc-20180921-355ee2a1ca85acccce494478991983b54f794f4e.tar.gz) = 150982 bytes

File Added: pkgsrc/mail/openarc/files/openarc.sh
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: openarc.sh,v 1.1 2023/04/21 00:49:56 manu Exp $
#
# PROVIDE: openarc
# REQUIRE: DAEMON
# BEFORE: mail

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="openarc"
rcvar=$name
command="@PREFIX@/sbin/openarc"
pidfile="@VARBASE@/run/openarc/${name}.pid"
command_args="-P ${pidfile} -c @PKG_SYSCONFDIR@/openarc.conf" 
required_files="@PKG_SYSCONFDIR@/openarc.conf"
start_precmd="openarc_precmd"

openarc_precmd()
{
        if [ ! -d @VARBASE@/run/openarc ]; then
                @MKDIR@ @VARBASE@/run/openarc
                @CHMOD@ 0750 @VARBASE@/run/openarc
        fi

	if [ -f @VARBASE@/run/openarc/${name}.sock ]; then
		@RM@ -f @VARBASE@/run/openarc/${name}.sock
	fi
}

if [ -f /etc/rc.subr ]; then
        load_rc_config $name
	run_rc_command "$1"
else
	echo -n " ${name}"
	${command} ${openarc_flags} ${command_args}
fi

File Added: pkgsrc/mail/openarc/patches/patch-libopenarc_arc.c
$NetBSD: patch-libopenarc_arc.c,v 1.1 2023/04/21 00:49:56 manu Exp $

Fix buffer overrun

From upstream
https://github.com/trusteddomainproject/OpenARC/pull/117

--- libopenarc/arc.c.orig	2021-03-30 15:33:39.683325974 +0200
+++ libopenarc/arc.c	2021-03-30 15:34:50.693955186 +0200
@@ -2329,8 +2329,12 @@
 
 	while (end > hdr && isascii(*(end - 1)) && isspace(*(end - 1)))
 		end--;
 
+	/* don't allow incredibly large field names */
+	if (end - hdr > ARC_MAXHEADER)
+		return ARC_STAT_SYNTAX;
+
 	/* don't allow a field name containing a semicolon */
 	semicolon = memchr(hdr, ';', hlen);
 	if (semicolon != NULL && colon != NULL && semicolon < colon)
 		return ARC_STAT_SYNTAX;
@@ -2676,8 +2680,9 @@
 
 	for (h = msg->arc_hhead; h != NULL; h = h->hdr_next)
 	{
 		char hnbuf[ARC_MAXHEADER + 1];
+		assert(h->hdr_namelen <= ARC_MAXHEADER);
 
 		memset(hnbuf, '\0', sizeof hnbuf);
 		strncpy(hnbuf, h->hdr_text, h->hdr_namelen);
 		if (strcasecmp(hnbuf, ARC_AR_HDRNAME) == 0 ||