summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authormarkd <markd>2002-09-23 12:38:44 +0000
committermarkd <markd>2002-09-23 12:38:44 +0000
commit0153d45d3af067fdae4c9dca79c3c4afcda0daca (patch)
tree9c603632965edf58ad68d36a900423e3b421461e /mail
parent2ae038d475d5af3f96445e0103d56d2d906671e0 (diff)
downloadpkgsrc-0153d45d3af067fdae4c9dca79c3c4afcda0daca.tar.gz
Reimport of current sendmail-8.11.6 package as mail/sendmail811.
Diffstat (limited to 'mail')
-rw-r--r--mail/sendmail811/DESCR8
-rw-r--r--mail/sendmail811/MESSAGE9
-rw-r--r--mail/sendmail811/Makefile139
-rw-r--r--mail/sendmail811/PLIST191
-rw-r--r--mail/sendmail811/distinfo12
-rw-r--r--mail/sendmail811/files/mailer.conf10
-rw-r--r--mail/sendmail811/files/site.config.m412
-rw-r--r--mail/sendmail811/files/site.config.m4-db23
-rw-r--r--mail/sendmail811/files/site.config.m4-ldap3
-rw-r--r--mail/sendmail811/files/site.config.m4-sasl5
-rw-r--r--mail/sendmail811/files/site.config.m4-solaris9
-rw-r--r--mail/sendmail811/files/site.config.m4-starttls3
-rw-r--r--mail/sendmail811/files/site.config.m4-tcpwrappers3
-rw-r--r--mail/sendmail811/files/site.config.m4-v63
-rw-r--r--mail/sendmail811/patches/patch-aa25
-rw-r--r--mail/sendmail811/patches/patch-ab12
-rw-r--r--mail/sendmail811/patches/patch-ac12
-rw-r--r--mail/sendmail811/patches/patch-ad12
-rw-r--r--mail/sendmail811/patches/patch-ae13
-rw-r--r--mail/sendmail811/patches/patch-af14
20 files changed, 498 insertions, 0 deletions
diff --git a/mail/sendmail811/DESCR b/mail/sendmail811/DESCR
new file mode 100644
index 00000000000..3dd2e5933dd
--- /dev/null
+++ b/mail/sendmail811/DESCR
@@ -0,0 +1,8 @@
+Sendmail acts a unified "post office" to which all mail can be submitted.
+Address interpretation is controlled by a production system, which can
+parse both domain-based addressing and old-style "ad hoc" addresses.
+The production system is powerful enough to rewrite addresses in the message
+header to conform to the standards of a number of common target networks,
+including old (NCP/RFC733) Arpanet, new (TCP/RFC822) Arpanet, UUCP, and
+Phonenet. Sendmail also implements an SMTP server, message queueing, and
+aliasing.
diff --git a/mail/sendmail811/MESSAGE b/mail/sendmail811/MESSAGE
new file mode 100644
index 00000000000..734b16a82fa
--- /dev/null
+++ b/mail/sendmail811/MESSAGE
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2002/09/23 12:38:44 markd Exp $
+
+To use "${PKGNAME}" as the system's mail transport agent you have
+to install "${PREFIX}/etc/mailer.conf.sendmail" as global mailwrapper
+configuration file. The command below will do that for you:
+
+ln -fs ${PREFIX}/etc/mailer.conf.sendmail /etc/mailer.conf
+===========================================================================
diff --git a/mail/sendmail811/Makefile b/mail/sendmail811/Makefile
new file mode 100644
index 00000000000..18c58d32563
--- /dev/null
+++ b/mail/sendmail811/Makefile
@@ -0,0 +1,139 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+
+DISTNAME= sendmail.8.11.6
+PKGNAME= sendmail-8.11.6
+PKGREVISION= 1
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/ \
+ ftp://ftp.fu-berlin.de/pub/unix/mail/sendmail/ \
+ ftp://ftp.kyoto.wide.ad.jp/pub/mail/sendmail/
+
+USE_WIDEPATCH?= YES
+.if ${USE_WIDEPATCH} == "YES"
+PATCH_SITES= ftp://ftp.kyoto.wide.ad.jp/pub/mail/smtpfeed/
+PATCHFILES= sendmail8.11.6+3.4W.patch.gz
+PATCH_DIST_ARGS=-d ${WRKSRC}/sendmail -E ${PATCH_DIST_STRIP}
+.if !(defined(PATCH_DEBUG) || defined(PKG_VERBOSE))
+PATCH_DIST_ARGS+=--forward --quiet
+.endif
+PATCH_DIST_STRIP= -p1
+.endif
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.sendmail.org/
+COMMENT= The well known Mail Transport Agent
+
+LICENSE= no-profit
+
+MAKE_ENV+= BSD_BINOWN="${BINOWN}" BSD_BINGRP="${BINGRP}" \
+ BSD_MANOWN="${MANOWN}" BSD_MANGRP="${MANGRP}" \
+ BUILDLINK_DIR="${BUILDLINK_DIR}"
+WRKSRC= ${WRKDIR}/${PKGNAME:C/nb[0-9]+$//}
+SITECONFIG= ${WRKSRC}/devtools/Site/site.config.m4
+
+BUILD_DEFS+= USE_WIDEPATCH USE_INET6 USE_TCPWRAPPERS USE_LDAP USE_DB2 \
+ USE_SASL USE_STARTTLS
+MESSAGE_SRC= ${WRKDIR}/.MESSAGE_SRC
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+DESCR_SRC= ${WRKDIR}/.DESCR_SRC
+
+.include "../../mk/bsd.prefs.mk"
+# Make sure that ${BUILDLINK_DIR} is defined even no "buildlink.mk" gets
+# included below.
+.include "../../mk/bsd.buildlink.mk"
+
+.if ${OPSYS} == "SunOS"
+USE_DB2?= YES
+.else
+USE_DB2?= NO
+.endif
+.if ${USE_DB2} == YES
+.include "../../databases/db/buildlink.mk"
+.endif
+
+.if defined(USE_LDAP) && ${USE_LDAP} == YES
+.include "../../databases/openldap/buildlink.mk"
+.endif
+
+.if defined(USE_SASL) && ${USE_SASL} == YES
+.include "../../security/cyrus-sasl/buildlink.mk"
+.endif
+
+.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES
+.include "../../security/openssl/buildlink.mk"
+.endif
+
+USE_TCPWRAPPERS?= YES
+.if ${USE_TCPWRAPPERS} == YES
+.include "../../security/tcp_wrappers/buildlink.mk"
+.endif
+
+post-patch:
+ ${CP} ${FILESDIR}/site.config.m4 ${SITECONFIG}
+ ${CHMOD} +w ${SITECONFIG}
+ ${CP} ${PKGDIR}/DESCR ${DESCR_SRC}
+ ${ECHO} '---' >>${DESCR_SRC}
+ ${ECHO} -n 'compiled features:' >>${DESCR_SRC}
+.if ${USE_WIDEPATCH} == YES
+ ${ECHO} -n ' WIDE' >>${DESCR_SRC}
+.endif
+.if defined(USE_INET6) && ${USE_INET6} == YES
+ ${CAT} ${FILESDIR}/site.config.m4-v6 >>${SITECONFIG}
+ ${ECHO} -n ' INET6' >>${DESCR_SRC}
+.endif
+.if ${USE_TCPWRAPPERS} == YES
+ ${CAT} ${FILESDIR}/site.config.m4-tcpwrappers >>${SITECONFIG}
+ ${ECHO} -n ' TCPWRAPPERS' >>${DESCR_SRC}
+.endif
+.if ${OPSYS} == "SunOS"
+ ${CAT} ${FILESDIR}/site.config.m4-solaris >>${SITECONFIG}
+.endif
+.if defined(USE_LDAP) && ${USE_LDAP} == YES
+ ${CAT} ${FILESDIR}/site.config.m4-ldap >>${SITECONFIG}
+ ${ECHO} -n ' LDAP' >>${DESCR_SRC}
+.endif
+.if ${USE_DB2} == YES
+ ${CAT} ${FILESDIR}/site.config.m4-db2 >>${SITECONFIG}
+ ${ECHO} -n ' DB2' >>${DESCR_SRC}
+.endif
+.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES
+ ${CAT} ${FILESDIR}/site.config.m4-starttls >>${SITECONFIG}
+ ${ECHO} -n ' STARTTLS' >>${DESCR_SRC}
+.endif
+.if defined(USE_SASL) && ${USE_SASL} == YES
+ ${CAT} ${FILESDIR}/site.config.m4-sasl >>${SITECONFIG}
+ ${ECHO} -n ' SASL' >>${DESCR_SRC}
+.endif
+ ${ECHO} >>${DESCR_SRC}
+
+do-build:
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./Build)
+
+post-build:
+ ${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
+ <${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.sendmail
+ ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
+ ${CP} ${PKGDIR}/MESSAGE ${MESSAGE_SRC}
+.if ${USE_DB2} == YES
+ ${ECHO} "" >>${MESSAGE_SRC}
+ ${ECHO} "If you are upgrading from \"sendmail\" 8.8.x don't forget to rebuild all" >>${MESSAGE_SRC}
+ ${ECHO} "databases with \"${PREFIX}/bin/newaliases\" and \"${PREFIX}/sbin/makemap\"." >>${MESSAGE_SRC}
+ ${ECHO} >>${PLIST_SRC} "@exec mv -f /usr/sbin/makemap /usr/sbin/makemap.8.8 || true"
+ ${ECHO} >>${PLIST_SRC} "@unexec mv -f /usr/sbin/makemap.8.8 /usr/sbin/makemap || true"
+.endif
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/libexec/sendmail
+
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/mailer.conf.sendmail ${PREFIX}/etc
+ ${CP} -pr ${WRKSRC}/cf ${PREFIX}/share/sendmail
+ ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/sendmail
+.if ${USE_DB2} == YES
+ ${MV} -f /usr/sbin/makemap /usr/sbin/makemap.8.8 || ${TRUE}
+.endif
+
+.include "../../mk/bsd.pkg.mk"
+
+# has to be below include for bsd.pkg.mk, else substition fails
+OBJDIR!= ${ECHO} obj.`uname -srm | ${TR} \ .`
diff --git a/mail/sendmail811/PLIST b/mail/sendmail811/PLIST
new file mode 100644
index 00000000000..97a518b7d69
--- /dev/null
+++ b/mail/sendmail811/PLIST
@@ -0,0 +1,191 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+bin/newaliases
+bin/mailq
+bin/hoststat
+bin/purgestat
+bin/vacation
+etc/mailer.conf.sendmail
+libexec/sendmail/sendmail
+libexec/sendmail/smrsh
+man/cat1/mailq.0
+man/cat1/newaliases.0
+man/cat1/vacation.0
+man/cat5/aliases.0
+man/cat8/makemap.0
+man/cat8/smrsh.0
+man/cat8/mailstats.0
+man/cat8/praliases.0
+man/cat8/sendmail.0
+sbin/mailstats
+sbin/makemap
+sbin/praliases
+share/misc/helpfile
+share/sendmail/README
+share/sendmail/cf/Build
+share/sendmail/cf/Makefile
+share/sendmail/cf/chez.cs.mc
+share/sendmail/cf/clientproto.mc
+share/sendmail/cf/cs-hpux10.mc
+share/sendmail/cf/cs-hpux9.mc
+share/sendmail/cf/cs-osf1.mc
+share/sendmail/cf/cs-solaris2.mc
+share/sendmail/cf/cs-sunos4.1.mc
+share/sendmail/cf/cs-ultrix4.mc
+share/sendmail/cf/cyrusproto.mc
+share/sendmail/cf/generic-bsd4.4.cf
+share/sendmail/cf/generic-bsd4.4.mc
+share/sendmail/cf/generic-hpux10.cf
+share/sendmail/cf/generic-hpux10.mc
+share/sendmail/cf/generic-hpux9.cf
+share/sendmail/cf/generic-hpux9.mc
+share/sendmail/cf/generic-nextstep3.3.mc
+share/sendmail/cf/generic-osf1.cf
+share/sendmail/cf/generic-osf1.mc
+share/sendmail/cf/generic-solaris2.cf
+share/sendmail/cf/generic-solaris2.mc
+share/sendmail/cf/generic-sunos4.1.cf
+share/sendmail/cf/generic-sunos4.1.mc
+share/sendmail/cf/generic-ultrix4.cf
+share/sendmail/cf/generic-ultrix4.mc
+share/sendmail/cf/huginn.cs.mc
+share/sendmail/cf/knecht.mc
+share/sendmail/cf/mail.cs.mc
+share/sendmail/cf/mail.eecs.mc
+share/sendmail/cf/mailspool.cs.mc
+share/sendmail/cf/python.cs.mc
+share/sendmail/cf/s2k-osf1.mc
+share/sendmail/cf/s2k-ultrix4.mc
+share/sendmail/cf/tcpproto.mc
+share/sendmail/cf/ucbarpa.mc
+share/sendmail/cf/ucbvax.mc
+share/sendmail/cf/uucpproto.mc
+share/sendmail/cf/vangogh.cs.mc
+share/sendmail/domain/Berkeley.EDU.m4
+share/sendmail/domain/CS.Berkeley.EDU.m4
+share/sendmail/domain/EECS.Berkeley.EDU.m4
+share/sendmail/domain/S2K.Berkeley.EDU.m4
+share/sendmail/domain/berkeley-only.m4
+share/sendmail/domain/generic.m4
+share/sendmail/feature/accept_unqualified_senders.m4
+share/sendmail/feature/accept_unresolvable_domains.m4
+share/sendmail/feature/access_db.m4
+share/sendmail/feature/allmasquerade.m4
+share/sendmail/feature/always_add_domain.m4
+share/sendmail/feature/bestmx_is_local.m4
+share/sendmail/feature/bitdomain.m4
+share/sendmail/feature/blacklist_recipients.m4
+share/sendmail/feature/delay_checks.m4
+share/sendmail/feature/dnsbl.m4
+share/sendmail/feature/domaintable.m4
+share/sendmail/feature/generics_entire_domain.m4
+share/sendmail/feature/genericstable.m4
+share/sendmail/feature/ldap_routing.m4
+share/sendmail/feature/limited_masquerade.m4
+share/sendmail/feature/local_lmtp.m4
+share/sendmail/feature/local_procmail.m4
+share/sendmail/feature/loose_relay_check.m4
+share/sendmail/feature/mailertable.m4
+share/sendmail/feature/masquerade_entire_domain.m4
+share/sendmail/feature/masquerade_envelope.m4
+share/sendmail/feature/no_default_msa.m4
+share/sendmail/feature/nocanonify.m4
+share/sendmail/feature/nodns.m4
+share/sendmail/feature/notsticky.m4
+share/sendmail/feature/nouucp.m4
+share/sendmail/feature/nullclient.m4
+share/sendmail/feature/promiscuous_relay.m4
+share/sendmail/feature/rbl.m4
+share/sendmail/feature/redirect.m4
+share/sendmail/feature/relay_based_on_MX.m4
+share/sendmail/feature/relay_entire_domain.m4
+share/sendmail/feature/relay_hosts_only.m4
+share/sendmail/feature/relay_local_from.m4
+share/sendmail/feature/relay_mail_from.m4
+share/sendmail/feature/smrsh.m4
+share/sendmail/feature/stickyhost.m4
+share/sendmail/feature/use_ct_file.m4
+share/sendmail/feature/use_cw_file.m4
+share/sendmail/feature/uucpdomain.m4
+share/sendmail/feature/virtuser_entire_domain.m4
+share/sendmail/feature/virtusertable.m4
+share/sendmail/hack/cssubdomain.m4
+share/sendmail/m4/cf.m4
+share/sendmail/m4/cfhead.m4
+share/sendmail/m4/proto.m4
+share/sendmail/m4/version.m4
+share/sendmail/mailer/cyrus.m4
+share/sendmail/mailer/fax.m4
+share/sendmail/mailer/local.m4
+share/sendmail/mailer/mail11.m4
+share/sendmail/mailer/phquery.m4
+share/sendmail/mailer/pop.m4
+share/sendmail/mailer/procmail.m4
+share/sendmail/mailer/qpage.m4
+share/sendmail/mailer/smtp.m4
+share/sendmail/mailer/usenet.m4
+share/sendmail/mailer/uucp.m4
+share/sendmail/ostype/aix2.m4
+share/sendmail/ostype/aix3.m4
+share/sendmail/ostype/aix4.m4
+share/sendmail/ostype/aix5.m4
+share/sendmail/ostype/altos.m4
+share/sendmail/ostype/amdahl-uts.m4
+share/sendmail/ostype/aux.m4
+share/sendmail/ostype/bsd4.3.m4
+share/sendmail/ostype/bsd4.4.m4
+share/sendmail/ostype/bsdi.m4
+share/sendmail/ostype/bsdi1.0.m4
+share/sendmail/ostype/bsdi2.0.m4
+share/sendmail/ostype/darwin.m4
+share/sendmail/ostype/dgux.m4
+share/sendmail/ostype/domainos.m4
+share/sendmail/ostype/dynix3.2.m4
+share/sendmail/ostype/freebsd4.m4
+share/sendmail/ostype/gnu.m4
+share/sendmail/ostype/hpux10.m4
+share/sendmail/ostype/hpux11.m4
+share/sendmail/ostype/hpux9.m4
+share/sendmail/ostype/irix4.m4
+share/sendmail/ostype/irix5.m4
+share/sendmail/ostype/irix6.m4
+share/sendmail/ostype/isc4.1.m4
+share/sendmail/ostype/linux.m4
+share/sendmail/ostype/maxion.m4
+share/sendmail/ostype/mklinux.m4
+share/sendmail/ostype/nextstep.m4
+share/sendmail/ostype/openbsd.m4
+share/sendmail/ostype/osf1.m4
+share/sendmail/ostype/powerux.m4
+share/sendmail/ostype/ptx2.m4
+share/sendmail/ostype/qnx.m4
+share/sendmail/ostype/riscos4.5.m4
+share/sendmail/ostype/sco-uw-2.1.m4
+share/sendmail/ostype/sco3.2.m4
+share/sendmail/ostype/sinix.m4
+share/sendmail/ostype/solaris2.m4
+share/sendmail/ostype/solaris2.ml.m4
+share/sendmail/ostype/solaris2.pre5.m4
+share/sendmail/ostype/solaris8.m4
+share/sendmail/ostype/sunos3.5.m4
+share/sendmail/ostype/sunos4.1.m4
+share/sendmail/ostype/svr4.m4
+share/sendmail/ostype/ultrix4.m4
+share/sendmail/ostype/unixware7.m4
+share/sendmail/ostype/unknown.m4
+share/sendmail/ostype/uxpds.m4
+share/sendmail/sh/makeinfo.sh
+share/sendmail/siteconfig/uucp.cogsci.m4
+share/sendmail/siteconfig/uucp.old.arpa.m4
+share/sendmail/siteconfig/uucp.ucbarpa.m4
+share/sendmail/siteconfig/uucp.ucbvax.m4
+@dirrm libexec/sendmail
+@dirrm share/sendmail/siteconfig
+@dirrm share/sendmail/sh
+@dirrm share/sendmail/ostype
+@dirrm share/sendmail/mailer
+@dirrm share/sendmail/m4
+@dirrm share/sendmail/hack
+@dirrm share/sendmail/feature
+@dirrm share/sendmail/domain
+@unexec ${RM} -rf %D/share/sendmail/cf
+@dirrm share/sendmail
diff --git a/mail/sendmail811/distinfo b/mail/sendmail811/distinfo
new file mode 100644
index 00000000000..a4797aece0b
--- /dev/null
+++ b/mail/sendmail811/distinfo
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+
+SHA1 (sendmail.8.11.6.tar.gz) = 8f24fc7824f6d99f1be08a9eec6fe18d56cab1be
+Size (sendmail.8.11.6.tar.gz) = 1374835 bytes
+SHA1 (sendmail8.11.6+3.4W.patch.gz) = bd1caae3cc99a41001045abb6b771e51b2d411a8
+Size (sendmail8.11.6+3.4W.patch.gz) = 29720 bytes
+SHA1 (patch-aa) = 9458931dc99f8775574b26ed8ca5f530600d7506
+SHA1 (patch-ab) = 40d3643d4f82c9761cc4e5abfee90ccd9c65536b
+SHA1 (patch-ac) = bfb83dbd4209879f58b95f0328d68bb8e56ac119
+SHA1 (patch-ad) = 93408922c222d5fe6a14cdd8a00060230a9195b9
+SHA1 (patch-ae) = 5e3efecc7ac7ffed40278b3c29dd1152990f3b33
+SHA1 (patch-af) = db9e5d94b1b1f4cd7e5c9f25b36772e90e2987fe
diff --git a/mail/sendmail811/files/mailer.conf b/mail/sendmail811/files/mailer.conf
new file mode 100644
index 00000000000..4c5e4f71598
--- /dev/null
+++ b/mail/sendmail811/files/mailer.conf
@@ -0,0 +1,10 @@
+# $NetBSD: mailer.conf,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+#
+# Execute the "real" sendmail program, named @@PREFIX@@/libexec/sendmail/sendmail
+#
+sendmail @@PREFIX@@/libexec/sendmail/sendmail
+send-mail @@PREFIX@@/libexec/sendmail/sendmail
+mailq @@PREFIX@@/libexec/sendmail/sendmail
+newaliases @@PREFIX@@/libexec/sendmail/sendmail
+hoststat @@PREFIX@@/libexec/sendmail/sendmail
+purgestat @@PREFIX@@/libexec/sendmail/sendmail
diff --git a/mail/sendmail811/files/site.config.m4 b/mail/sendmail811/files/site.config.m4
new file mode 100644
index 00000000000..3e98bdbc519
--- /dev/null
+++ b/mail/sendmail811/files/site.config.m4
@@ -0,0 +1,12 @@
+# $NetBSD: site.config.m4,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+
+# pathnames specific to pkgsrc
+#
+define(`confEBINDIR', `${PREFIX}/libexec/sendmail')
+define(`confMBINDIR', `${PREFIX}/libexec/sendmail')
+define(`confSBINDIR', `${PREFIX}/sbin')
+define(`confUBINDIR', `${PREFIX}/bin')
+define(`confHFDIR', `${PREFIX}/share/misc')
+define(`confMANROOT', `${PREFIX}/man/cat')
+APPENDDEF(`confENVDEF', `-I${BUILDLINK_DIR}/include')
+APPENDDEF(`confLIBS', `-L${BUILDLINK_DIR}/lib')
diff --git a/mail/sendmail811/files/site.config.m4-db2 b/mail/sendmail811/files/site.config.m4-db2
new file mode 100644
index 00000000000..f1abc5b472a
--- /dev/null
+++ b/mail/sendmail811/files/site.config.m4-db2
@@ -0,0 +1,3 @@
+# enable db2
+APPENDDEF(`confENVDEF', `-I${BUILDLINK_DIR}/include/db2')
+APPENDDEF(`confLIBS', `-ldb2')
diff --git a/mail/sendmail811/files/site.config.m4-ldap b/mail/sendmail811/files/site.config.m4-ldap
new file mode 100644
index 00000000000..f4b873105a7
--- /dev/null
+++ b/mail/sendmail811/files/site.config.m4-ldap
@@ -0,0 +1,3 @@
+# enable ldap
+APPENDDEF(`confMAPDEF', `-DLDAPMAP')
+APPENDDEF(`confLIBS', `-lldap -llber')
diff --git a/mail/sendmail811/files/site.config.m4-sasl b/mail/sendmail811/files/site.config.m4-sasl
new file mode 100644
index 00000000000..fa1c322474d
--- /dev/null
+++ b/mail/sendmail811/files/site.config.m4-sasl
@@ -0,0 +1,5 @@
+# $NetBSD: site.config.m4-sasl,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+
+# enable SASL
+APPENDDEF(`confENVDEF', `-DSASL -D_FFR_UNSAFE_SASL')
+APPENDDEF(`conf_sendmail_LIBS', `-lsasl')
diff --git a/mail/sendmail811/files/site.config.m4-solaris b/mail/sendmail811/files/site.config.m4-solaris
new file mode 100644
index 00000000000..0f9b7a9dd65
--- /dev/null
+++ b/mail/sendmail811/files/site.config.m4-solaris
@@ -0,0 +1,9 @@
+# $NetBSD: site.config.m4-solaris,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+
+# man pathnames specific for Solaris
+#
+define(`confMAN1EXT', `0')
+define(`confMAN3EXT', `0')
+define(`confMAN4EXT', `0')
+define(`confMAN5EXT', `0')
+define(`confMAN8EXT', `0')
diff --git a/mail/sendmail811/files/site.config.m4-starttls b/mail/sendmail811/files/site.config.m4-starttls
new file mode 100644
index 00000000000..d475ce82440
--- /dev/null
+++ b/mail/sendmail811/files/site.config.m4-starttls
@@ -0,0 +1,3 @@
+# enable STARTTLS
+APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS -D_FFR_TLS_TOREK')
+APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto')
diff --git a/mail/sendmail811/files/site.config.m4-tcpwrappers b/mail/sendmail811/files/site.config.m4-tcpwrappers
new file mode 100644
index 00000000000..2f9cb92e336
--- /dev/null
+++ b/mail/sendmail811/files/site.config.m4-tcpwrappers
@@ -0,0 +1,3 @@
+# enable tcpwrappers
+APPENDDEF(`confENVDEF', `-DTCPWRAPPERS')
+APPENDDEF(`conf_sendmail_LIBS', `-lwrap')
diff --git a/mail/sendmail811/files/site.config.m4-v6 b/mail/sendmail811/files/site.config.m4-v6
new file mode 100644
index 00000000000..e249d65be54
--- /dev/null
+++ b/mail/sendmail811/files/site.config.m4-v6
@@ -0,0 +1,3 @@
+# enable IPv6
+APPENDDEF(`confENVDEF', `-DNETINET6')
+APPENDDEF(`confENVDEF', `-DNEEDSGETIPNODE')
diff --git a/mail/sendmail811/patches/patch-aa b/mail/sendmail811/patches/patch-aa
new file mode 100644
index 00000000000..ce38b7daae0
--- /dev/null
+++ b/mail/sendmail811/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+
+--- devtools/OS/NetBSD-orig Fri Apr 28 07:46:10 2000
++++ devtools/OS/NetBSD Wed Jul 26 13:05:56 2000
+@@ -3,13 +3,15 @@
+ define(`confENVDEF', ` -DNETISO')
+ define(`confDEPEND_TYPE', `CC-M')
+ define(`confSTDIO_TYPE', `torek')
+-define(`confSBINGRP', `wheel')
+-define(`confUBINOWN', `root')
+-define(`confUBINGRP', `wheel')
+-define(`confMANOWN', `root')
+-define(`confMANGRP', `wheel')
++define(`confSBINOWN', `${BSD_BINOWN}')
++define(`confSBINGRP', `${BSD_BINGRP}')
++define(`confUBINOWN', `${BSD_BINOWN}')
++define(`confUBINGRP', `${BSD_BINGRP}')
++define(`confMANOWN', `${BSD_MANOWN}')
++define(`confMANGRP', `${BSD_MANGRP}')
+ define(`confMAN1EXT', `0')
+ define(`confMAN3EXT', `0')
+ define(`confMAN4EXT', `0')
+ define(`confMAN5EXT', `0')
+ define(`confMAN8EXT', `0')
++define(`confLDOPTS', `${LDFLAGS}')
diff --git a/mail/sendmail811/patches/patch-ab b/mail/sendmail811/patches/patch-ab
new file mode 100644
index 00000000000..406f5ea04b5
--- /dev/null
+++ b/mail/sendmail811/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+
+--- devtools/OS/SunOS.5.6 Tue Jun 6 02:03:29 2000
++++ devtools/OS/SunOS.5.6 Wed Jul 26 13:07:21 2000
+@@ -6,6 +6,7 @@
+ define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX')
+ define(`confENVDEF', `-DSOLARIS=20600')
+ define(`confLIBS', `-lsocket -lnsl -lkstat')
++define(`confLDOPTS', `${LDFLAGS}')
+ define(`confMTLDOPTS', `-lpthread')
+ define(`confMBINDIR', `/usr/lib')
+ define(`confEBINDIR', `/usr/lib')
diff --git a/mail/sendmail811/patches/patch-ac b/mail/sendmail811/patches/patch-ac
new file mode 100644
index 00000000000..39156e36ef5
--- /dev/null
+++ b/mail/sendmail811/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
+
+--- devtools/OS/SunOS.5.7 Tue Jun 6 02:03:29 2000
++++ devtools/OS/SunOS.5.7 Wed Jul 26 13:07:08 2000
+@@ -6,6 +6,7 @@
+ define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX')
+ define(`confENVDEF', `-DSOLARIS=20700')
+ define(`confLIBS', `-lsocket -lnsl')
++define(`confLDOPTS', `${LDFLAGS}')
+ define(`confMTLDOPTS', `-lpthread')
+ define(`confMBINDIR', `/usr/lib')
+ define(`confEBINDIR', `/usr/lib')
diff --git a/mail/sendmail811/patches/patch-ad b/mail/sendmail811/patches/patch-ad
new file mode 100644
index 00000000000..f63ec40cccb
--- /dev/null
+++ b/mail/sendmail811/patches/patch-ad
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1.1.1 2002/09/23 12:38:46 markd Exp $
+
+--- devtools/OS/SunOS.5.8.orig Tue Oct 10 19:21:59 2000
++++ devtools/OS/SunOS.5.8 Tue Oct 10 19:23:59 2000
+@@ -4,4 +4,6 @@
+ define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DLDAPMAP')
++define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX')
+ define(`confENVDEF', `-DSOLARIS=20800 -DNETINET6')
+-define(`confLIBS', `-lsocket -lnsl -lldap')
++define(`confLIBS', `-lsocket -lnsl')
++define(`confLDOPTS', `${LDFLAGS}')
+ define(`confMTLDOPTS', `-lpthread')
diff --git a/mail/sendmail811/patches/patch-ae b/mail/sendmail811/patches/patch-ae
new file mode 100644
index 00000000000..38427bb0623
--- /dev/null
+++ b/mail/sendmail811/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 2002/09/23 12:38:46 markd Exp $
+
+--- devtools/OS/SunOS.5.9.orig Tue Oct 10 19:25:30 2000
++++ devtools/OS/SunOS.5.9 Tue Oct 10 19:26:27 2000
+@@ -3,5 +3,6 @@
+ define(`confBEFORE', `sysexits.h')
+-define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DLDAPMAP')
++define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX')
+ define(`confENVDEF', `-DSOLARIS=20900 -DNETINET6')
+-define(`confLIBS', `-lsocket -lnsl -lldap')
++define(`confLIBS', `-lsocket -lnsl')
++define(`confLDOPTS', `${LDFLAGS}')
+ define(`confMTLDOPTS', `-lpthread')
diff --git a/mail/sendmail811/patches/patch-af b/mail/sendmail811/patches/patch-af
new file mode 100644
index 00000000000..e02d2f453aa
--- /dev/null
+++ b/mail/sendmail811/patches/patch-af
@@ -0,0 +1,14 @@
+$NetBSD: patch-af,v 1.1.1.1 2002/09/23 12:38:46 markd Exp $
+
+--- sendmail/conf.c.orig Wed Feb 28 05:48:21 2001
++++ sendmail/conf.c Wed Feb 28 12:48:30 2001
+@@ -4546,7 +4546,8 @@
+
+ #if NETINET6
+ if (type == AF_INET6 &&
+- IN6_IS_ADDR_UNSPECIFIED((struct in6_addr *) addr))
++ (IN6_IS_ADDR_UNSPECIFIED((struct in6_addr *) addr) ||
++ IN6_IS_ADDR_LINKLOCAL((struct in6_addr *) addr)))
+ {
+ /* Avoid reverse lookup for IPv6 unspecified address */
+ SM_SET_H_ERRNO(HOST_NOT_FOUND);