mail/nullmailer: update to 2.2

ChangeLog: http://untroubled.org/nullmailer/ChangeLog

PR:	251074
Submitted by:	uffe@uffe.org
This commit is contained in:
Fernando Apesteguía 2020-11-13 07:12:18 +00:00
parent 44af19702c
commit 4d5c0461dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=555007
8 changed files with 56 additions and 63 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= nullmailer
PORTVERSION= 1.13
PORTREVISION= 4
PORTVERSION= 2.2
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= http://untroubled.org/nullmailer/ \
@ -15,29 +14,30 @@ COMMENT= MTA for hosts which relay to a fixed set of smart relays
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LOCALSTATEDIR= /var/spool
USERS= nullmail
GROUPS= nullmail
USES= gmake
USE_CXXSTD= gnu++98
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${LOCALSTATEDIR}
USE_CXXSTD= gnu++98
USE_RC_SUBR= ${PORTNAME}
SUB_FILES= pkg-install pkg-deinstall pkg-message
SUB_LIST= LOCALSTATEDIR=${LOCALSTATEDIR} NULLMAIL_USER=${USERS}
USERS= nullmail
GROUPS= nullmail
PLIST_SUB= LOCALSTATEDIR=${LOCALSTATEDIR} NULLMAIL_USER=${USERS}
SUB_LIST= LOCALSTATEDIR=${LOCALSTATEDIR} NULLMAIL_USER=${USERS}
OPTIONS_DEFINE= GNUTLS
GNUTLS_CONFIGURE_ENABLE=tls
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
GNUTLS_USES= localbase:ldflags
GNUTLS_CONFIGURE_ENABLE=tls
GNUTLS_LDFLAGS= -lgnutls
LOCALSTATEDIR= /var
post-install:
${INSTALL_DATA} -c ${FILESDIR}/remotes.sample ${STAGEDIR}${ETCDIR}
${ECHO} 'hostname' > ${STAGEDIR}${ETCDIR}/me.sample

View File

@ -1,2 +1,3 @@
SHA256 (nullmailer-1.13.tar.gz) = 3f8861ebb1b46cea0a1caf1e6236e1e0d2a5a91def19551b7cad12eab676277d
SIZE (nullmailer-1.13.tar.gz) = 205431
TIMESTAMP = 1604790898
SHA256 (nullmailer-2.2.tar.gz) = 9886fa627b7e7e775e2f09fbe789247b1ca304f152da04ff705e50079263a855
SIZE (nullmailer-2.2.tar.gz) = 257740

View File

@ -1,15 +1,15 @@
--- Makefile.in.orig 2007-10-09 19:23:26.000000000 -0400
+++ Makefile.in 2009-08-11 17:21:54.000000000 -0400
@@ -143,7 +143,7 @@
--- Makefile.in.orig 2018-10-12 20:49:36 UTC
+++ Makefile.in
@@ -278,7 +278,7 @@ includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
-libexecdir = @libexecdir@
+libexecdir = @libexecdir@/nullmailer
localedir = @localedir@
localstatedir = @localstatedir@/nullmailer
localstatedir = @localstatedir@/spool/nullmailer
mandir = @mandir@
@@ -613,8 +613,8 @@
@@ -793,8 +793,8 @@ install-root:
chown nullmail $(DESTDIR)$(localstatedir)/*
chown nullmail $(DESTDIR)$(sbindir)/nullmailer-queue
chmod u+s $(DESTDIR)$(sbindir)/nullmailer-queue

View File

@ -1,11 +0,0 @@
--- lib/fdbuf/fdobuf.h~ Sat Mar 5 01:12:32 2005
+++ lib/fdbuf/fdobuf.h Sat Mar 5 01:12:53 2005
@@ -17,6 +17,8 @@
#ifndef FDBUF__FDOBUF__H__
#define FDBUF__FDOBUF__H__
+#include <pwd.h>
+
class fdobuf : protected fdbuf
{
public:

View File

@ -1,14 +1,16 @@
--- lib/fdbuf/tlsibuf.cc.orig
--- lib/fdbuf/tlsibuf.cc.orig 2018-10-12 20:49:30 UTC
+++ lib/fdbuf/tlsibuf.cc
@@ -27,5 +27,10 @@
@@ -27,7 +27,12 @@ tlsibuf::tlsibuf(gnutls_session_t s, unsigned bufsz)
ssize_t tlsibuf::_read(char* buf, ssize_t len)
{
- return gnutls_record_recv(session, buf, len);
- int rc;
+ ssize_t rc;
+ do
+ {
+ rc = gnutls_record_recv(session, buf, len);
+ } while (rc == GNUTLS_E_AGAIN || rc == GNUTLS_E_INTERRUPTED);
+ return rc;
}
do
{
rc = gnutls_record_recv(session, buf, len);

View File

@ -1,6 +1,6 @@
--- lib/fdbuf/tlsobuf.cc.orig
--- lib/fdbuf/tlsobuf.cc.orig 2018-10-12 20:49:30 UTC
+++ lib/fdbuf/tlsobuf.cc
@@ -27,5 +27,10 @@
@@ -27,5 +27,10 @@ tlsobuf::tlsobuf(gnutls_session_t s, unsigned bufsz)
ssize_t tlsobuf::_write(const char* buf, ssize_t len)
{

View File

@ -1,31 +1,29 @@
--- src/Makefile.in.orig 2007-10-09 19:23:25.000000000 -0400
+++ src/Makefile.in 2009-08-11 17:24:28.000000000 -0400
@@ -30,10 +30,9 @@
--- src/Makefile.in.orig 2018-10-12 20:49:36 UTC
+++ src/Makefile.in
@@ -86,10 +86,10 @@ POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
-bin_PROGRAMS = mailq$(EXEEXT) nullmailer-inject$(EXEEXT) \
- nullmailer-smtpd$(EXEEXT)
-bin_PROGRAMS = mailq$(EXEEXT) nullmailer-dsn$(EXEEXT) \
+bin_PROGRAMS = nullmailer-dsn$(EXEEXT) \
nullmailer-inject$(EXEEXT) nullmailer-smtpd$(EXEEXT)
-sbin_PROGRAMS = nullmailer-queue$(EXEEXT) nullmailer-send$(EXEEXT) \
- sendmail$(EXEEXT)
+bin_PROGRAMS = nullmailer-inject$(EXEEXT) nullmailer-smtpd$(EXEEXT)
+sbin_PROGRAMS = nullmailer-queue$(EXEEXT) nullmailer-send$(EXEEXT)
+libexec_PROGRAMS = mailq$(EXEEXT) sendmail$(EXEEXT)
subdir = src
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -46,7 +46,9 @@
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
@@ -102,7 +102,7 @@ CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)"
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
-PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS)
+libexecPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+
+PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS) $(libexec_PROGRAMS)
am_mailq_OBJECTS = mailq.$(OBJEXT)
mailq_OBJECTS = $(am_mailq_OBJECTS)
mailq_DEPENDENCIES = ../lib/libnullmailer.a
@@ -154,7 +156,7 @@
@@ -268,7 +268,7 @@ includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
@ -34,9 +32,9 @@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
@@ -253,6 +255,31 @@
else :; fi; \
done
@@ -421,6 +421,31 @@ uninstall-sbinPROGRAMS:
clean-sbinPROGRAMS:
-test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
+mostlyclean-libexecPROGRAMS:
+
@ -63,12 +61,12 @@
+ rm -f $(DESTDIR)$(libexecdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
+ done
+
uninstall-sbinPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(sbin_PROGRAMS)'; for p in $$list; do \
@@ -435,7 +462,7 @@
mailq$(EXEEXT): $(mailq_OBJECTS) $(mailq_DEPENDENCIES) $(EXTRA_mailq_DEPENDENCIES)
@rm -f mailq$(EXEEXT)
$(AM_V_CXXLD)$(CXXLINK) $(mailq_OBJECTS) $(mailq_LDADD) $(LIBS)
@@ -625,7 +650,7 @@ install-dvi: install-dvi-am
install-dvi: install-dvi-am
install-dvi-am:
-install-exec-am: install-binPROGRAMS install-sbinPROGRAMS
+install-exec-am: install-binPROGRAMS install-sbinPROGRAMS install-libexecPROGRAMS

View File

@ -2,10 +2,12 @@ libexec/nullmailer/smtp
libexec/nullmailer/qmqp
@(%%NULLMAIL_USER%%,,4555) libexec/nullmailer/mailq
libexec/nullmailer/sendmail
bin/nullmailer-dsn
bin/nullmailer-inject
bin/nullmailer-smtpd
@(%%NULLMAIL_USER%%,,4555) sbin/nullmailer-queue
sbin/nullmailer-send
man/man1/nullmailer-dsn.1.gz
man/man1/nullmailer-inject.1.gz
man/man1/sendmail.1.gz
man/man7/nullmailer.7.gz
@ -13,10 +15,11 @@ man/man8/nullmailer-queue.8.gz
man/man8/nullmailer-send.8.gz
%%ETCDIR%%/me.sample
%%ETCDIR%%/remotes.sample
@dir(%%NULLMAIL_USER%%,%%NULLMAIL_USER%%,700) %%LOCALSTATEDIR%%/nullmailer/queue
@dir(%%NULLMAIL_USER%%,%%NULLMAIL_USER%%,700) %%LOCALSTATEDIR%%/nullmailer/tmp
@dir %%LOCALSTATEDIR%%/nullmailer
@exec mkfifo %%LOCALSTATEDIR%%/nullmailer/trigger
@exec chmod 600 %%LOCALSTATEDIR%%/nullmailer/trigger
@exec chown %%NULLMAIL_USER%%:%%NULLMAIL_USER%% %%LOCALSTATEDIR%%/nullmailer/trigger
@unexec rm -f %%LOCALSTATEDIR%%/nullmailer/trigger
@dir(%%NULLMAIL_USER%%,%%NULLMAIL_USER%%,700) %%LOCALSTATEDIR%%/spool/nullmailer/failed
@dir(%%NULLMAIL_USER%%,%%NULLMAIL_USER%%,700) %%LOCALSTATEDIR%%/spool/nullmailer/queue
@dir(%%NULLMAIL_USER%%,%%NULLMAIL_USER%%,700) %%LOCALSTATEDIR%%/spool/nullmailer/tmp
@dir %%LOCALSTATEDIR%%/spool/nullmailer
@preexec mkfifo %%LOCALSTATEDIR%%/spool/nullmailer/trigger
@preexec chmod 600 %%LOCALSTATEDIR%%/spool/nullmailer/trigger
@preexec chown %%NULLMAIL_USER%%:%%NULLMAIL_USER%% %%LOCALSTATEDIR%%/spool/nullmailer/trigger
@postunexec rm -f %%LOCALSTATEDIR%%/spool/nullmailer/trigger