f952f726e1
> 8.13.6/8.13.6 2006/03/22 > SECURITY: Replace unsafe use of setjmp(3)/longjmp(3) in the server > and client side of sendmail with timeouts in the libsm I/O > layer and fix problems in that code. Also fix handling of > a buffer in sm_syslog() which could have been used as an > attack vector to exploit the unsafe handling of > setjmp(3)/longjmp(3) in combination with signals. > Problem detected by Mark Dowd of ISS X-Force. > Handle theoretical integer overflows that could triggered if > the server accepted headers larger than the maximum > (signed) integer value. This is prevented in the default > configuration by restricting the size of a header, and on > most machines memory allocations would fail before reaching > those values. Problems found by Phil Brass of ISS. > If a server returns 421 for an RSET command when trying to start > another transaction in a session while sending mail, do > not trigger an internal consistency check. Problem found > by Allan E Johannesen of Worcester Polytechnic Institute. > If a server returns a 5xy error code (other than 501) in response > to a STARTTLS command despite the fact that it advertised > STARTTLS and that the code is not valid according to RFC > 2487 treat it nevertheless as a permanent failure instead > of a protocol error (which has been changed to a > temporary error in 8.13.5). Problem reported by Jeff > A. Earickson of Colby College. > Clear SMTP state after a HELO/EHLO command. Patch from John > Myers of Proofpoint. > Observe MinQueueAge option when gathering entries from the queue > for sorting etc instead of waiting until the entries are > processed. Patch from Brian Fundakowski Feldman. > Set up TLS session cache to properly handle clients that try to > resume a stored TLS session. > Properly count the number of (direct) child processes such that > a configured value (MaxDaemonChildren) is not exceeded. > Based on patch from Attila Bruncsak. > LIBMILTER: Remove superfluous backslash in macro definition > (libmilter.h). Based on patch from Mike Kupfer of > Sun Microsystems. > LIBMILTER: Don't try to set SO_REUSEADDR on UNIX domain sockets. > This generates an error message from libmilter on > Solaris, though other systems appear to just discard the > request silently. > LIBMILTER: Deal with sigwait(2) implementations that return > -1 and set errno instead of returning an error code > directly. Patch from Chris Adams of HiWAAY Informations > Services. > Portability: > Fix compilation checks for closefrom(3) and statvfs(2) > in NetBSD. Problem noted by S. Moonesamy, patch from > Andrew Brown.
97 lines
3.2 KiB
Makefile
97 lines
3.2 KiB
Makefile
# $NetBSD: Makefile,v 1.87 2006/05/12 22:23:09 adrianp Exp $
|
|
|
|
.include "../../mail/sendmail/Makefile.common"
|
|
|
|
PKGNAME= sendmail-${DIST_VERS}
|
|
COMMENT= The well known Mail Transport Agent
|
|
|
|
CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 postfix-[0-9]*
|
|
|
|
MESSAGE_SRC= ${WRKDIR}/.MESSAGE_SRC
|
|
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
|
|
|
|
SMRSH_CMDDIR?= ${PREFIX}/libexec/sm.bin
|
|
PLIST_SUBST+= SMRSH_CMDDIR=${SMRSH_CMDDIR:Q}
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_STAGE.paths= pre-build
|
|
SUBST_FILES.paths= ../mailer.conf include/sm/conf.h smrsh/smrsh.8
|
|
SUBST_SED.paths= -e "s|@@PREFIX@@|${PREFIX}|g" \
|
|
-e "s|@@SMRSH_CMDDIR@@|${SMRSH_CMDDIR}|g"
|
|
SUBST_MESSAGE.paths= Fixing paths.
|
|
|
|
post-patch: make-sendmail-siteconfig
|
|
.if !empty(PKG_OPTIONS:Mtcpwrappers)
|
|
@${CAT} ${FILESDIR}/site.config.m4-tcpwrappers >>${SITECONFIG}
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
|
@${CAT} ${FILESDIR}/site.config.m4-ldap >>${SITECONFIG}
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mdb2)
|
|
@${CAT} ${FILESDIR}/site.config.m4-db2 >>${SITECONFIG}
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mdb4)
|
|
@${CAT} ${FILESDIR}/site.config.m4-db4 >>${SITECONFIG}
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mtls)
|
|
@${CAT} ${FILESDIR}/site.config.m4-starttls >>${SITECONFIG}
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Msasl)
|
|
@${CAT} ${FILESDIR}/site.config.m4-sasl2 >>${SITECONFIG}
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Msendmail-socketmap)
|
|
@${CAT} ${FILESDIR}/site.config.m4-socketmap >>${SITECONFIG}
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.socketmap
|
|
.endif
|
|
|
|
post-extract:
|
|
@${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
|
|
|
|
do-build:
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./Build)
|
|
|
|
post-build:
|
|
@${CP} ${PKGDIR}/MESSAGE ${MESSAGE_SRC}
|
|
@${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC
|
|
|
|
pre-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/libexec/sendmail
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${SMRSH_CMDDIR}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sendmail
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/sendmail
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sendmail
|
|
${INSTALL_DATA} ${WRKDIR}/mailer.conf \
|
|
${PREFIX}/share/examples/sendmail/
|
|
cd ${WRKSRC}/cf && ${PAX} -rw -pp -pm -s',^.*\.orig$$,,' . ${PREFIX}/share/sendmail
|
|
${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/sendmail
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/obj.`${UNAME} -srm | ${TR} \ . | ${TR} \/ - | ${SED} s/sun4./sun4/`/libsm/libsm.a \
|
|
${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} \
|
|
${WRKSRC}/obj.`${UNAME} -srm | ${TR} \ . | ${TR} \/ - | ${SED} s/sun4./sun4/`/libsmutil/libsmutil.a \
|
|
${PREFIX}/lib
|
|
|
|
.if !empty(PKG_OPTIONS:Msendmail-socketmap)
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/socketmapClient.pl \
|
|
${PREFIX}/share/examples/sendmail
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/socketmapServer.pl \
|
|
${PREFIX}/share/examples/sendmail
|
|
.endif
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES ${PREFIX}/share/doc/sendmail
|
|
${INSTALL_DATA} ${WRKSRC}/cf/README ${PREFIX}/share/doc/sendmail
|
|
${INSTALL_DATA} ${WRKSRC}/sendmail/SECURITY ${PREFIX}/share/doc/sendmail
|
|
${INSTALL_DATA} ${WRKSRC}/doc/op/op.me ${PREFIX}/share/doc/sendmail
|
|
${INSTALL_DATA} ${WRKSRC}/doc/op/op.ps ${PREFIX}/share/doc/sendmail
|
|
|
|
PKG_GROUPS= smmsp
|
|
PKG_USERS= smmsp:smmsp
|
|
PKG_GECOS.smmsp= Sendmail Message Submission Program
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
# has to be below include for bsd.pkg.mk, else substition fails
|
|
OBJDIR!= ${ECHO} obj.`${UNAME} -srm | ${TR} \ . | ${TR} \/ -`
|