mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Update courier to 0.37.2; fix security bugs, update MIME handling, add
knob for NOUUCP. PR: 34145
This commit is contained in:
parent
9e36160fff
commit
c607e749ed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53515
@ -6,16 +6,14 @@
|
||||
#
|
||||
|
||||
PORTNAME= courier
|
||||
PORTVERSION= 0.37.0
|
||||
PORTVERSION= 0.37.2
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= mail ipv6
|
||||
MASTER_SITES= http://www.courier-mta.org/beta/%SUBDIR%/ \
|
||||
${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= courier
|
||||
|
||||
MAINTAINER= yds@CoolRat.org
|
||||
|
||||
#BUILD_DEPENDS= ${LOCALBASE}/share/aclocal/sysconftool.m4:${PORTSDIR}/devel/sysconftool
|
||||
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/CIDR.pm:${PORTSDIR}/net/p5-Net-CIDR
|
||||
|
||||
#
|
||||
@ -76,9 +74,17 @@ CONFIGURE_ARGS= --disable-root-check --with-db=db \
|
||||
--enable-workarounds-for-imap-client-bugs
|
||||
CONFIGURE_ENV= PATH="${PATH}:${SCRIPTDIR}"
|
||||
|
||||
# Respect the make.conf(5) NOUUCP setting
|
||||
.if defined(NOUUCP)
|
||||
CONFIGURE_ARGS+=--with-transport='local esmtp dsn'
|
||||
PLIST_SUB+= SUB_UUCP="@comment "
|
||||
.else
|
||||
PLIST_SUB+= SUB_UUCP=""
|
||||
.endif
|
||||
|
||||
PKGMESSAGE= ${WRKDIR}/.PKGMESSAGE
|
||||
|
||||
INSTALL_TARGET= install-strip
|
||||
INSTALL_TARGET= install-strip install-perms
|
||||
|
||||
PLIST_SUB+= CACHEOWNER="${CACHEOWNER}"
|
||||
|
||||
|
@ -32,7 +32,6 @@ MAN8= \
|
||||
courierldapaliasd.8 \
|
||||
courierperlfilter.8 \
|
||||
courierpop3d.8 \
|
||||
courieruucp.8 \
|
||||
deliverquota.8 \
|
||||
dupfilter.8 \
|
||||
esmtpd.8 \
|
||||
@ -65,8 +64,13 @@ MLINKS= dot-forward.1 dotforward.1 \
|
||||
authlib.7 authvchkpw.7 \
|
||||
courierfilter.8 filterctl.8 \
|
||||
courierpop3d.8 courierpop3login.8 \
|
||||
courieruucp.8 makeuucpneighbors.8 \
|
||||
esmtpd.8 esmtpd-msa.8 \
|
||||
makesmtpaccess.8 makesmtpaccess-msa.8 \
|
||||
makeuserdb.8 pw2userdb.8 \
|
||||
makeuserdb.8 vchkpw2userdb.8
|
||||
|
||||
.if !defined(NOUUCP)
|
||||
MAN8+= courieruucp.8
|
||||
MLINKS+=courieruucp.8 makeuucpneighbors.8
|
||||
.endif
|
||||
|
||||
|
@ -1 +1 @@
|
||||
MD5 (courier-0.37.0.tar.gz) = 3bbece1455c9d2de871d3edc9970a1c4
|
||||
MD5 (courier-0.37.2.tar.gz) = f7935e8152477a9f4625f982533e15ec
|
||||
|
@ -1,18 +1,17 @@
|
||||
--- courier/perms.sh.in.orig Fri Dec 7 08:37:35 2001
|
||||
+++ courier/perms.sh.in Wed Dec 19 22:04:44 2001
|
||||
@@ -10,9 +10,9 @@
|
||||
+++ courier/perms.sh.in Mon Jan 21 18:46:38 2002
|
||||
@@ -10,9 +10,7 @@
|
||||
exec_prefix="@exec_prefix@"
|
||||
|
||||
PERMS="
|
||||
-. 755
|
||||
+. 755 x root wheel
|
||||
|
||||
-
|
||||
-@localstatedir@ 755 x bin bin
|
||||
+@localstatedir@ 755 x root wheel
|
||||
@localstatedir@/tmp 770
|
||||
@localstatedir@/msgs 750
|
||||
@localstatedir@/msgq 750
|
||||
@@ -41,120 +41,131 @@
|
||||
@@ -41,120 +39,125 @@
|
||||
@sysconfdir@/rfcerr2046.txt 444 config
|
||||
@sysconfdir@/rfcerr2047.txt 444 config
|
||||
|
||||
@ -21,7 +20,6 @@
|
||||
-@libexecdir@/courier 755 x bin bin
|
||||
-@libexecdir@/courier/modules 755 x bin bin
|
||||
-@libexecdir@/courier/modules/modules.ctl 444 x bin bin
|
||||
+@libexecdir@ 755 x root wheel
|
||||
+@libexecdir@/authlib 755 x root wheel
|
||||
+@libexecdir@/courier 755 x root wheel
|
||||
+@libexecdir@/courier/modules 755 x root wheel
|
||||
@ -32,7 +30,6 @@
|
||||
+@libexecdir@/courier/modules/local/courierdeliver 555 x root wheel
|
||||
+@libexecdir@/courier/modules/local/courierlocal 555 x root wheel
|
||||
+@libexecdir@/courier/modules/modules.ctl 444 x root wheel
|
||||
+@libexecdir@/courier/modules/uucp 755 x root wheel
|
||||
@libexecdir@/courier/submitmkdir 4550
|
||||
-@libexecdir@/courier/courierd 550
|
||||
-@libexecdir@/courier/courierpop3d 555
|
||||
@ -64,7 +61,6 @@
|
||||
+@libexecdir@/filters/dupfilter 555 x root wheel
|
||||
+@libexecdir@/filters/perlfilter 555 x root wheel
|
||||
+
|
||||
+@sbindir@ 755 x root wheel
|
||||
+@sbindir@/courier 555 x root wheel
|
||||
+@sbindir@/showconfig 555 x root wheel
|
||||
@sbindir@/showmodules 550
|
||||
@ -84,7 +80,6 @@
|
||||
+@datadir@/imapd-ssl 555 x root wheel
|
||||
|
||||
-@bindir@ 755 x bin bin
|
||||
+@bindir@ 755 x root wheel
|
||||
@bindir@/cancelmsg 6555
|
||||
-@bindir@/courier-config 555
|
||||
-@bindir@/mailq 2555
|
||||
@ -180,7 +175,6 @@
|
||||
+@bindir@/mimegpg 555 x root wheel
|
||||
+@bindir@/couriermlm 555 x root wheel
|
||||
+@bindir@/dotforward 555 x root wheel
|
||||
+@bindir@/preline 555 x root wheel
|
||||
+
|
||||
+@datadir@/makedat 555 x root wheel
|
||||
+@bindir@/makedat 555 x root wheel
|
||||
@ -205,7 +199,6 @@
|
||||
+@datadir@/vchkpw2userdb 555 x root wheel
|
||||
+@sbindir@/vchkpw2userdb 555 x root wheel
|
||||
+
|
||||
+@datadir@ 755 x root wheel
|
||||
+@datadir@/courierctl.start 555 x root wheel
|
||||
+
|
||||
+@datadir@/mkimapdcert 555 x root wheel
|
||||
@ -250,7 +243,7 @@
|
||||
"
|
||||
|
||||
echo "$PERMS" | while read FILE MODE SPECIAL USER GROUP
|
||||
@@ -198,7 +209,7 @@
|
||||
@@ -198,7 +201,7 @@
|
||||
|
||||
if test "$couriertls" != ""
|
||||
then
|
||||
@ -259,7 +252,7 @@
|
||||
fi
|
||||
|
||||
if test "@HAVE_LDAP@" != 0
|
||||
@@ -207,23 +218,23 @@
|
||||
@@ -207,23 +210,23 @@
|
||||
echo @sbindir@/courierldapaliasd 700 @mailuser@ @mailgroup@
|
||||
fi
|
||||
|
||||
@ -287,7 +280,7 @@
|
||||
done
|
||||
|
||||
. ../authlib/authdaemonrc
|
||||
@@ -240,16 +251,16 @@
|
||||
@@ -240,16 +243,16 @@
|
||||
|
||||
. ../authlib/authpwdprogs
|
||||
|
||||
@ -305,5 +298,5 @@
|
||||
test "$f" = "dummy" && continue
|
||||
echo "@authchangepwdir@/$f 555 @mailuser@ @mailgroup@"
|
||||
- echo "@datadir@/$f 555 @mailuser@ @mailgroup@"
|
||||
+ echo "@datadir@/$f 555 root wheel
|
||||
+ echo "@datadir@/$f 555 root wheel"
|
||||
done
|
||||
|
@ -1,18 +1,26 @@
|
||||
--- courier/submit2.C.orig Sat Dec 15 16:19:01 2001
|
||||
+++ courier/submit2.C Mon Jan 14 20:32:21 2002
|
||||
@@ -800,6 +800,7 @@
|
||||
--- courier/submit2.C.orig Tue Jan 15 17:44:37 2002
|
||||
+++ courier/submit2.C Mon Jan 21 15:38:40 2002
|
||||
@@ -777,6 +777,8 @@
|
||||
{
|
||||
int is8bit=0, dorewrite=0, rwmode=0;
|
||||
const char *mime=getenv("MIME");
|
||||
+const char *q=getenv("BOFHACCEPT8BIT");
|
||||
+const int accept8bit=(q && *q == '1' ? 1 : 0);
|
||||
unsigned n;
|
||||
struct stat stat_buf;
|
||||
const char *rfcerr=NULL;
|
||||
@@ -800,12 +802,12 @@
|
||||
return (1);
|
||||
}
|
||||
|
||||
+#if !defined(RFC2045_ERR8BITACCEPT)
|
||||
if (rwrfcptr->rfcviolation & RFC2045_ERR8BITHEADER)
|
||||
- if (rwrfcptr->rfcviolation & RFC2045_ERR8BITHEADER)
|
||||
+ if (!accept8bit && (rwrfcptr->rfcviolation & RFC2045_ERR8BITHEADER))
|
||||
{
|
||||
rfcerr= SYSCONFDIR "/rfcerr2047.txt";
|
||||
@@ -810,6 +811,7 @@
|
||||
rfcerr= SYSCONFDIR "/rfcerr2045.txt";
|
||||
dorewrite=1;
|
||||
}
|
||||
+#endif
|
||||
else if (rwrfcptr->rfcviolation & RFC2045_ERRBADBOUNDARY)
|
||||
- else if (rwrfcptr->rfcviolation & RFC2045_ERR8BITCONTENT)
|
||||
+ else if (!accept8bit && (rwrfcptr->rfcviolation & RFC2045_ERR8BITCONTENT))
|
||||
{
|
||||
rfcerr= SYSCONFDIR "/rfcerr2046.txt";
|
||||
rfcerr= SYSCONFDIR "/rfcerr2045.txt";
|
||||
dorewrite=1;
|
||||
|
@ -79,7 +79,7 @@ etc/courier/maildropfilter
|
||||
etc/courier/module.dsn
|
||||
etc/courier/module.esmtp
|
||||
etc/courier/module.local
|
||||
etc/courier/module.uucp
|
||||
%%SUB_UUCP%%etc/courier/module.uucp
|
||||
etc/courier/pop3d-ssl.dist
|
||||
etc/courier/pop3d.authpam
|
||||
etc/courier/pop3d.cnf
|
||||
@ -142,7 +142,7 @@ libexec/courier/modules/esmtp/courieresmtpd
|
||||
libexec/courier/modules/local/courierdeliver
|
||||
libexec/courier/modules/local/courierlocal
|
||||
libexec/courier/modules/modules.ctl
|
||||
libexec/courier/modules/uucp/courieruucp
|
||||
%%SUB_UUCP%%libexec/courier/modules/uucp/courieruucp
|
||||
libexec/courier/pcpd
|
||||
libexec/courier/submit
|
||||
libexec/courier/submitmkdir
|
||||
@ -152,7 +152,7 @@ libexec/filters/dupfilter
|
||||
libexec/filters/perlfilter
|
||||
@dirrm libexec/authlib/changepwd
|
||||
@dirrm libexec/authlib
|
||||
@dirrm libexec/courier/modules/uucp
|
||||
%%SUB_UUCP%%@dirrm libexec/courier/modules/uucp
|
||||
@dirrm libexec/courier/modules/local
|
||||
@dirrm libexec/courier/modules/esmtp
|
||||
@dirrm libexec/courier/modules/dsn
|
||||
@ -178,7 +178,7 @@ sbin/makepercentrelay
|
||||
sbin/makesmtpaccess
|
||||
sbin/makesmtpaccess-msa
|
||||
sbin/makeuserdb
|
||||
sbin/makeuucpneighbors
|
||||
%%SUB_UUCP%%sbin/makeuucpneighbors
|
||||
sbin/mkesmtpdcert
|
||||
sbin/mkimapdcert
|
||||
sbin/mkpop3dcert
|
||||
@ -280,7 +280,7 @@ share/courier/makehosteddomains
|
||||
share/courier/makepercentrelay
|
||||
share/courier/makesmtpaccess
|
||||
share/courier/makeuserdb
|
||||
share/courier/makeuucpneighbors
|
||||
%%SUB_UUCP%%share/courier/makeuucpneighbors
|
||||
share/courier/mkesmtpdcert
|
||||
share/courier/mkimapdcert
|
||||
share/courier/mkpop3dcert
|
||||
@ -445,6 +445,7 @@ share/courier/sqwebmail/images/replyall.gif
|
||||
share/courier/sqwebmail/images/replylist.gif
|
||||
share/courier/sqwebmail/images/right.gif
|
||||
share/courier/sqwebmail/images/right2.gif
|
||||
share/courier/sqwebmail/images/save.gif
|
||||
share/courier/sqwebmail/images/sep.gif
|
||||
share/courier/sqwebmail/images/signin.gif
|
||||
share/courier/sqwebmail/images/sqwebmail.css
|
||||
@ -497,7 +498,7 @@ share/courier/webgpg
|
||||
%%PORTDOCS%%share/doc/courier/html/courierpop3d.html
|
||||
%%PORTDOCS%%share/doc/courier/html/couriertcpd.html
|
||||
%%PORTDOCS%%share/doc/courier/html/couriertls.html
|
||||
%%PORTDOCS%%share/doc/courier/html/courieruucp.html
|
||||
%%SUB_UUCP%%%%PORTDOCS%%share/doc/courier/html/courieruucp.html
|
||||
%%PORTDOCS%%share/doc/courier/html/deliverquota.html
|
||||
%%PORTDOCS%%share/doc/courier/html/dot-courier.html
|
||||
%%PORTDOCS%%share/doc/courier/html/dot-forward.html
|
||||
@ -592,7 +593,7 @@ share/courier/webgpg
|
||||
@exec chown courier:courier %D/etc/courier/module.dsn
|
||||
@exec chown courier:courier %D/etc/courier/module.esmtp
|
||||
@exec chown courier:courier %D/etc/courier/module.local
|
||||
@exec chown courier:courier %D/etc/courier/module.uucp
|
||||
%%SUB_UUCP%%@exec chown courier:courier %D/etc/courier/module.uucp
|
||||
@exec chown root:wheel %D/etc/courier/pop3d-ssl.dist
|
||||
@exec chown root:wheel %D/etc/courier/pop3d.authpam
|
||||
@exec chown root:wheel %D/etc/courier/pop3d.cnf
|
||||
@ -614,7 +615,7 @@ share/courier/webgpg
|
||||
@exec chown root:courier %D/libexec/courier/modules/esmtp/authstart
|
||||
@exec chown courier:courier %D/libexec/courier/modules/esmtp/courieresmtp
|
||||
@exec chown courier:courier %D/libexec/courier/modules/esmtp/courieresmtpd
|
||||
@exec chown courier:courier %D/libexec/courier/modules/uucp/courieruucp
|
||||
%%SUB_UUCP%%@exec chown courier:courier %D/libexec/courier/modules/uucp/courieruucp
|
||||
@exec chown courier:courier %D/libexec/courier/submit
|
||||
@exec chown courier:courier %D/libexec/courier/submitmkdir
|
||||
@exec chown courier:courier %D/sbin/showmodules
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD: /tmp/pcvs/ports/mail/courier/scripts/Attic/configure.courier,v 1.1 2002-01-15 06:17:28 dwhite Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/mail/courier/scripts/Attic/configure.courier,v 1.2 2002-01-22 04:44:18 dwhite Exp $
|
||||
|
||||
[ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ] && exit
|
||||
|
||||
@ -14,25 +14,19 @@ else
|
||||
fi
|
||||
|
||||
if [ "${BATCH}" = "yes" ]; then
|
||||
[ "x${ENABLE_ACCEPT8BIT}" = "xYES" ] && OPTIONS="${OPTIONS} \"Accept8bit\""
|
||||
[ "x${ENABLE_EXPECT}" = "xYES" ] && OPTIONS="${OPTIONS} \"Expect\""
|
||||
[ "x${ENABLE_GNUPG}" = "xYES" ] && OPTIONS="${OPTIONS} \"GnuPG\""
|
||||
[ "x${ENABLE_ASPELL}" = "xYES" ] && OPTIONS="${OPTIONS} \"ASpell\""
|
||||
[ "x${ENABLE_ISPELL}" = "xYES" ] && OPTIONS="${OPTIONS} \"ISpell\""
|
||||
[ "x${ENABLE_LDAP1}" = "xYES" ] && OPTIONS="${OPTIONS} \"OpenLDAP1\""
|
||||
[ "x${ENABLE_LDAP2}" = "xYES" ] && OPTIONS="${OPTIONS} \"OpenLDAP2\""
|
||||
[ "x${ENABLE_MYSQL}" = "xYES" ] && OPTIONS="${OPTIONS} \"MySQL\""
|
||||
[ "x${ENABLE_PGSQL}" = "xYES" ] && OPTIONS="${OPTIONS} \"PostgreSQL\""
|
||||
[ "x${ENABLE_VPOPMAIL}" = "xYES" ] && OPTIONS="${OPTIONS} \"VPopMail\""
|
||||
[ "x${ENABLE_PROCMAIL}" = "xYES" ] && OPTIONS="${OPTIONS} \"Procmail\""
|
||||
[ "x${ENABLE_IPV6}" = "xYES" ] && OPTIONS="${OPTIONS} \"IPv6\""
|
||||
[ "x${ENABLE_EXPECT}" = "xYES" ] && OPTIONS="${OPTIONS} \"Expect\""
|
||||
[ "x${ENABLE_GNUPG}" = "xYES" ] && OPTIONS="${OPTIONS} \"GnuPG\""
|
||||
[ "x${ENABLE_ASPELL}" = "xYES" ] && OPTIONS="${OPTIONS} \"ASpell\""
|
||||
[ "x${ENABLE_ISPELL}" = "xYES" ] && OPTIONS="${OPTIONS} \"ISpell\""
|
||||
[ "x${ENABLE_LDAP1}" = "xYES" ] && OPTIONS="${OPTIONS} \"OpenLDAP1\""
|
||||
[ "x${ENABLE_LDAP2}" = "xYES" ] && OPTIONS="${OPTIONS} \"OpenLDAP2\""
|
||||
[ "x${ENABLE_MYSQL}" = "xYES" ] && OPTIONS="${OPTIONS} \"MySQL\""
|
||||
[ "x${ENABLE_PGSQL}" = "xYES" ] && OPTIONS="${OPTIONS} \"PostgreSQL\""
|
||||
[ "x${ENABLE_VPOPMAIL}" = "xYES" ] && OPTIONS="${OPTIONS} \"VPopMail\""
|
||||
[ "x${ENABLE_PROCMAIL}" = "xYES" ] && OPTIONS="${OPTIONS} \"Procmail\""
|
||||
[ "x${ENABLE_IPV6}" = "xYES" ] && OPTIONS="${OPTIONS} \"IPv6\""
|
||||
[ -n "${OPTIONS}" ] && set ${OPTIONS}
|
||||
else
|
||||
if [ "x${ENABLE_ACCEPT8BIT}" = "xYES" ]; then
|
||||
SET_ACCEPT8BIT="ON"
|
||||
else
|
||||
SET_ACCEPT8BIT="OFF"
|
||||
fi
|
||||
if [ "x${ENABLE_EXPECT}" = "xYES" \
|
||||
-o -x ${LOCALBASE}/bin/expect ]; then
|
||||
SET_EXPECT="ON"
|
||||
@ -107,7 +101,6 @@ else
|
||||
/usr/bin/dialog --title "Courier configuration options" --clear \
|
||||
--checklist "\n\
|
||||
Please select desired options:" -1 -1 16 \
|
||||
Accept8bit "http://www.Courier-MTA.org/FAQ.html#esmtperr" ${SET_ACCEPT8BIT} \
|
||||
Expect "Expect support for WebMail change passwd" ${SET_EXPECT} \
|
||||
GnuPG "GNU Privacy Guard support for WebMail" ${SET_GNUPG} \
|
||||
ASpell "ASpell support for WebMail" ${SET_ASPELL} \
|
||||
@ -155,9 +148,6 @@ SUB_PGSQL="@comment "
|
||||
|
||||
while [ "$1" ]; do
|
||||
case $1 in
|
||||
\"Accept8bit\")
|
||||
echo "CXXFLAGS+= -DRFC2045_ERR8BITACCEPT"
|
||||
;;
|
||||
\"Expect\")
|
||||
echo "BUILD_DEPENDS+= expect:${PORTSDIR}/lang/expect"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user