pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc
Module Name: pkgsrc
Committed By: manu
Date: Fri Apr 21 00:49:56 UTC 2023
Modified Files:
pkgsrc/doc: CHANGES-2023
pkgsrc/mail: Makefile
Added Files:
pkgsrc/mail/openarc: DESCR Makefile PLIST buildlink3.mk distinfo
pkgsrc/mail/openarc/files: openarc.sh
pkgsrc/mail/openarc/patches: patch-libopenarc_arc.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.2343 -r1.2344 pkgsrc/doc/CHANGES-2023
cvs rdiff -u -r1.595 -r1.596 pkgsrc/mail/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/openarc/DESCR pkgsrc/mail/openarc/Makefile \
pkgsrc/mail/openarc/PLIST pkgsrc/mail/openarc/buildlink3.mk \
pkgsrc/mail/openarc/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/openarc/files/openarc.sh
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/openarc/patches/patch-libopenarc_arc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/doc/CHANGES-2023
diff -u pkgsrc/doc/CHANGES-2023:1.2343 pkgsrc/doc/CHANGES-2023:1.2344
--- pkgsrc/doc/CHANGES-2023:1.2343 Fri Apr 21 00:44:18 2023
+++ pkgsrc/doc/CHANGES-2023 Fri Apr 21 00:49:56 2023
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2023,v 1.2343 2023/04/21 00:44:18 manu Exp $
+$NetBSD: CHANGES-2023,v 1.2344 2023/04/21 00:49:56 manu Exp $
Changes to the packages collection and infrastructure in 2023:
@@ -3379,3 +3379,4 @@ Changes to the packages collection and i
Updated www/p5-Playwright to 1.324 [schmonz 2023-04-20]
Added misc/chatgpt-shell-cli version 0.0.20230420 [schmonz 2023-04-20]
Added databases/openldap-autogroup 2.6.4 [manu 2023-04-21]
+ Added mail/openarc 20180921 [manu 2023-04-21]
Index: pkgsrc/mail/Makefile
diff -u pkgsrc/mail/Makefile:1.595 pkgsrc/mail/Makefile:1.596
--- pkgsrc/mail/Makefile:1.595 Wed Mar 8 23:45:10 2023
+++ pkgsrc/mail/Makefile Fri Apr 21 00:49:56 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.595 2023/03/08 23:45:10 nikita Exp $
+# $NetBSD: Makefile,v 1.596 2023/04/21 00:49:56 manu Exp $
#
COMMENT= Electronic mail utilities
@@ -189,6 +189,7 @@ SUBDIR+= notmuch-emacs
SUBDIR+= nullmailer
SUBDIR+= oe2mbx
SUBDIR+= offlineimap
+SUBDIR+= openarc
SUBDIR+= opendkim
SUBDIR+= opendmarc
SUBDIR+= p5-App-Siesh
Added files:
Index: pkgsrc/mail/openarc/DESCR
diff -u /dev/null pkgsrc/mail/openarc/DESCR:1.1
--- /dev/null Fri Apr 21 00:49:56 2023
+++ pkgsrc/mail/openarc/DESCR Fri Apr 21 00:49:56 2023
@@ -0,0 +1,8 @@
+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.
Index: pkgsrc/mail/openarc/Makefile
diff -u /dev/null pkgsrc/mail/openarc/Makefile:1.1
--- /dev/null Fri Apr 21 00:49:56 2023
+++ pkgsrc/mail/openarc/Makefile Fri Apr 21 00:49:56 2023
@@ -0,0 +1,41 @@
+# $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@localhost
+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"
Index: pkgsrc/mail/openarc/PLIST
diff -u /dev/null pkgsrc/mail/openarc/PLIST:1.1
--- /dev/null Fri Apr 21 00:49:56 2023
+++ pkgsrc/mail/openarc/PLIST Fri Apr 21 00:49:56 2023
@@ -0,0 +1,19 @@
+@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
Index: pkgsrc/mail/openarc/buildlink3.mk
diff -u /dev/null pkgsrc/mail/openarc/buildlink3.mk:1.1
--- /dev/null Fri Apr 21 00:49:56 2023
+++ pkgsrc/mail/openarc/buildlink3.mk Fri Apr 21 00:49:56 2023
@@ -0,0 +1,16 @@
+# $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
Index: pkgsrc/mail/openarc/distinfo
diff -u /dev/null pkgsrc/mail/openarc/distinfo:1.1
--- /dev/null Fri Apr 21 00:49:56 2023
+++ pkgsrc/mail/openarc/distinfo Fri Apr 21 00:49:56 2023
@@ -0,0 +1,6 @@
+$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
Index: pkgsrc/mail/openarc/files/openarc.sh
diff -u /dev/null pkgsrc/mail/openarc/files/openarc.sh:1.1
--- /dev/null Fri Apr 21 00:49:56 2023
+++ pkgsrc/mail/openarc/files/openarc.sh Fri Apr 21 00:49:56 2023
@@ -0,0 +1,39 @@
+#!@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
Index: pkgsrc/mail/openarc/patches/patch-libopenarc_arc.c
diff -u /dev/null pkgsrc/mail/openarc/patches/patch-libopenarc_arc.c:1.1
--- /dev/null Fri Apr 21 00:49:56 2023
+++ pkgsrc/mail/openarc/patches/patch-libopenarc_arc.c Fri Apr 21 00:49:56 2023
@@ -0,0 +1,32 @@
+$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 ||
Home |
Main Index |
Thread Index |
Old Index