diff options
author | adrianp <adrianp@pkgsrc.org> | 2004-08-30 19:56:44 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2004-08-30 19:56:44 +0000 |
commit | ea559a18777fc3fee5a6e2971ce68a8a92dedb9a (patch) | |
tree | 8ef324d56277748a198a3189253bad01549180b6 /mail | |
parent | 677d50e7b36dd90464cd8ff503cc8215e0359fb8 (diff) | |
download | pkgsrc-ea559a18777fc3fee5a6e2971ce68a8a92dedb9a.tar.gz |
Rename of current sendmail package to sendmail812 to make way for
new sendmail 8.13.x tree in pkgsrc.
Changes to the original package include:
- Added missing NetBSD CVS tags to some files under files
- Path changes in Makefile and Makefile.common to reflect new location under
mail/ of this package
Diffstat (limited to 'mail')
26 files changed, 614 insertions, 0 deletions
diff --git a/mail/sendmail812/DESCR b/mail/sendmail812/DESCR new file mode 100644 index 00000000000..3dd2e5933dd --- /dev/null +++ b/mail/sendmail812/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/sendmail812/MESSAGE b/mail/sendmail812/MESSAGE new file mode 100644 index 00000000000..74ddf6200f7 --- /dev/null +++ b/mail/sendmail812/MESSAGE @@ -0,0 +1,9 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ + +To use "${PKGNAME}" as the system's mail transport agent you have +to install "${PREFIX}/share/examples/sendmail/mailer.conf" as global +mailwrapper configuration file. The command below will do that for you: + +ln -fs ${PREFIX}/share/examples/sendmail/mailer.conf /etc/mailer.conf +=========================================================================== diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile new file mode 100644 index 00000000000..3d7028fc51a --- /dev/null +++ b/mail/sendmail812/Makefile @@ -0,0 +1,113 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ + +.include "../../mail/sendmail812/Makefile.common" + +PKGNAME= sendmail-${DIST_VERS} +COMMENT= The well known Mail Transport Agent + +CONFLICTS+= postfix-[0-9]* fastforward>=0.51nb2 + +MESSAGE_SRC= ${WRKDIR}/.MESSAGE_SRC +PLIST_SRC= ${WRKDIR}/.PLIST_SRC + +.if ${OPSYS} == "SunOS" +USE_DB2?= YES +.else +USE_DB2?= NO +.endif +.if defined(USE_DB4) && ${USE_DB4} == YES +.include "../../databases/db4/buildlink3.mk" +.elif ${USE_DB2} == YES +.include "../../databases/db/buildlink3.mk" +.endif + +.if defined(USE_OPENLDAP) && ${USE_OPENLDAP} == YES +.include "../../databases/openldap/buildlink3.mk" +.endif + +.if defined(USE_SASL2) && ${USE_SASL2} == YES +.include "../../security/cyrus-sasl2/buildlink3.mk" +.elif defined(USE_SASL) && ${USE_SASL} == YES +.include "../../security/cyrus-sasl/buildlink3.mk" +.endif + +.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES +.include "../../security/openssl/buildlink3.mk" +.endif + +USE_TCPWRAPPERS?= YES +.if ${USE_TCPWRAPPERS} == YES +.include "../../security/tcp_wrappers/buildlink3.mk" +.endif + +post-patch: make-sendmail-siteconfig +.if ${USE_TCPWRAPPERS} == YES + ${CAT} ${FILESDIR}/site.config.m4-tcpwrappers >>${SITECONFIG} + ${ECHO} -n ' TCPWRAPPERS' >>${DESCR_SRC} +.endif +.if defined(USE_OPENLDAP) && ${USE_OPENLDAP} == YES + ${CAT} ${FILESDIR}/site.config.m4-ldap >>${SITECONFIG} + ${ECHO} -n ' LDAP' >>${DESCR_SRC} +.endif +.if defined(USE_DB4) && ${USE_DB4} == YES + ${CAT} ${FILESDIR}/site.config.m4-db4 >>${SITECONFIG} + ${ECHO} -n ' DB4' >>${DESCR_SRC} +.elif ${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_SASL2) && ${USE_SASL2} == YES + ${CAT} ${FILESDIR}/site.config.m4-sasl2 >>${SITECONFIG} + ${ECHO} -n ' SASL2' >>${DESCR_SRC} +.elif 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_DIR} ${PREFIX}/share/examples/sendmail + ${INSTALL_DATA_DIR} ${PREFIX}/share/sendmail + ${INSTALL_DATA} ${WRKDIR}/mailer.conf.sendmail ${PREFIX}/share/examples/sendmail/mailer.conf + cd ${WRKSRC}/cf && ${PAX} -rw -pp -pm . ${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 + ${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 + +USE_PKGINSTALL= yes +PKG_GROUPS= smmsp +PKG_USERS= smmsp: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} \/ -` diff --git a/mail/sendmail812/Makefile.common b/mail/sendmail812/Makefile.common new file mode 100644 index 00000000000..babfba9dbb5 --- /dev/null +++ b/mail/sendmail812/Makefile.common @@ -0,0 +1,56 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ +# +# Makefile fragment shared with libmilter +# + +DISTNAME= sendmail.${DIST_VERS} +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/ + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://www.sendmail.org/ + +LICENSE= no-profit + +DISTINFO_FILE?= ${.CURDIR}/../../mail/sendmail812/distinfo +FILESDIR?= ${.CURDIR}/../../mail/sendmail812/files +PATCHDIR?= ${.CURDIR}/../../mail/sendmail812/patches + +DIST_VERS= 8.12.11 + +MAKE_ENV+= BSD_BINOWN="${BINOWN}" BSD_BINGRP="${BINGRP}" \ + BSD_MANOWN="${MANOWN}" BSD_MANGRP="${MANGRP}" \ + BUILDLINK_DIR="${BUILDLINK_DIR}" +SITECONFIG= ${WRKSRC}/devtools/Site/site.config.m4 + +BUILD_DEFS+= USE_INET6 USE_TCPWRAPPERS USE_OPENLDAP USE_DB2 \ + USE_SASL USE_SASL2 USE_STARTTLS USE_DB4 +DESCR_SRC= ${WRKDIR}/.DESCR_SRC + +WRKSRC= ${WRKDIR}/sendmail-${DIST_VERS} +USE_BUILDLINK3= YES +USE_GNU_TOOLS+= m4 +MAKE_ENV+= M4="${M4}" + +.include "../../mk/bsd.prefs.mk" + +make-sendmail-siteconfig: + ${CP} ${FILESDIR}/site.config.m4 ${SITECONFIG} + ${CHMOD} +w ${SITECONFIG} + ${CP} ${PKGDIR}/DESCR ${DESCR_SRC} + ${ECHO} '---' >>${DESCR_SRC} + ${ECHO} -n 'compiled features:' >>${DESCR_SRC} +.if defined(USE_INET6) && ${USE_INET6} == YES + ${CAT} ${FILESDIR}/site.config.m4-v6 >>${SITECONFIG} +.if ${OPSYS} != "SunOS" && ${OPSYS} != "BSDOS" + ${CAT} ${FILESDIR}/site.config.m4-v6-not-solaris >>${SITECONFIG} +.endif + ${ECHO} -n ' INET6' >>${DESCR_SRC} +.endif +.if ${OPSYS} == "SunOS" + ${CAT} ${FILESDIR}/site.config.m4-solaris >>${SITECONFIG} +.endif + ${CAT} ${FILESDIR}/site.config.m4-milter >>${SITECONFIG} + ${ECHO} -n ' MILTER' >>${DESCR_SRC} diff --git a/mail/sendmail812/PLIST b/mail/sendmail812/PLIST new file mode 100644 index 00000000000..51268edbd27 --- /dev/null +++ b/mail/sendmail812/PLIST @@ -0,0 +1,215 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/30 19:56:44 adrianp Exp $ +bin/hoststat +bin/mailq +bin/newaliases +bin/purgestat +bin/vacation +lib/libsm.a +lib/libsmutil.a +libexec/sendmail/sendmail +libexec/sendmail/smrsh +man/cat1/mailq.0 +man/cat1/newaliases.0 +man/cat1/vacation.0 +man/cat5/aliases.0 +man/cat8/editmap.0 +man/cat8/mailstats.0 +man/cat8/makemap.0 +man/cat8/praliases.0 +man/cat8/sendmail.0 +man/cat8/smrsh.0 +sbin/editmap +sbin/mailstats +sbin/makemap +sbin/praliases +share/examples/sendmail/mailer.conf +share/misc/helpfile +share/sendmail/README +share/sendmail/cf/Build +share/sendmail/cf/Makefile +share/sendmail/cf/README +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-linux.cf +share/sendmail/cf/generic-linux.mc +share/sendmail/cf/generic-mpeix.cf +share/sendmail/cf/generic-mpeix.mc +share/sendmail/cf/generic-nextstep3.3.cf +share/sendmail/cf/generic-nextstep3.3.mc +share/sendmail/cf/generic-osf1.cf +share/sendmail/cf/generic-osf1.mc +share/sendmail/cf/generic-solaris.cf +share/sendmail/cf/generic-solaris.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/submit.cf +share/sendmail/cf/submit.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/authinfo.m4 +share/sendmail/feature/bestmx_is_local.m4 +share/sendmail/feature/bitdomain.m4 +share/sendmail/feature/blacklist_recipients.m4 +share/sendmail/feature/compat_check.m4 +share/sendmail/feature/delay_checks.m4 +share/sendmail/feature/dnsbl.m4 +share/sendmail/feature/domaintable.m4 +share/sendmail/feature/enhdnsbl.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_no_masquerade.m4 +share/sendmail/feature/local_procmail.m4 +share/sendmail/feature/lookupdotdomain.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/msp.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/preserve_local_plus_detail.m4 +share/sendmail/feature/preserve_luser_host.m4 +share/sendmail/feature/promiscuous_relay.m4 +share/sendmail/feature/queuegroup.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/cyrusv2.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/a-ux.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/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/freebsd5.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/mpeix.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/sendmail.schema +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 +@dirrm share/sendmail/cf +@dirrm share/sendmail +@dirrm share/examples/sendmail diff --git a/mail/sendmail812/distinfo b/mail/sendmail812/distinfo new file mode 100644 index 00000000000..d0f207475db --- /dev/null +++ b/mail/sendmail812/distinfo @@ -0,0 +1,11 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ + +SHA1 (sendmail.8.12.11.tar.gz) = ce1ba0e50740c548f8555f1a905d8514e6637f95 +Size (sendmail.8.12.11.tar.gz) = 1899112 bytes +SHA1 (patch-aa) = cf9a68f5e6d6fd6e13a806a7d1e6ebab18fc9c6f +SHA1 (patch-ab) = a2abf6e78772e257e2a1973e7730159ff24a91aa +SHA1 (patch-ac) = 96c19300b4188dbcbd202768eea912f675dadc27 +SHA1 (patch-ad) = 7232cc7ceb46a2dbf631d61185e4c6ca4af18a13 +SHA1 (patch-ae) = ae06caa125fe4d4fc85123dc0a5d0016cd099ebd +SHA1 (patch-af) = d26481845328adad6d46fdf797785ec2ad003e28 +SHA1 (patch-ag) = b2e7c13de58ba90d149382e93095227c9ad39329 diff --git a/mail/sendmail812/files/mailer.conf b/mail/sendmail812/files/mailer.conf new file mode 100644 index 00000000000..a6a1933a6d6 --- /dev/null +++ b/mail/sendmail812/files/mailer.conf @@ -0,0 +1,10 @@ +# $NetBSD: mailer.conf,v 1.1.1.1 2004/08/30 19:56:46 adrianp 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/sendmail812/files/site.config.m4 b/mail/sendmail812/files/site.config.m4 new file mode 100644 index 00000000000..c0f2f025461 --- /dev/null +++ b/mail/sendmail812/files/site.config.m4 @@ -0,0 +1,12 @@ +# $NetBSD: site.config.m4,v 1.1.1.1 2004/08/30 19:56:46 adrianp 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${PREFIX}/include') +APPENDDEF(`confLIBS', `-L${PREFIX}/lib') diff --git a/mail/sendmail812/files/site.config.m4-db2 b/mail/sendmail812/files/site.config.m4-db2 new file mode 100644 index 00000000000..b5c360b8ed8 --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-db2 @@ -0,0 +1,5 @@ +# $NetBSD: site.config.m4-db2,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +# enable db2 +APPENDDEF(`confENVDEF', `-DNEWDB -I${BUILDLINK_DIR}/include/db2') +APPENDDEF(`confLIBS', `-ldb2') diff --git a/mail/sendmail812/files/site.config.m4-db4 b/mail/sendmail812/files/site.config.m4-db4 new file mode 100644 index 00000000000..620da5dd2a5 --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-db4 @@ -0,0 +1,5 @@ +# $NetBSD: site.config.m4-db4,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +# enable db4 +APPENDDEF(`confENVDEF', `-DNEWDB -I${BUILDLINK_DIR}/include/db4') +APPENDDEF(`confLIBS', `-ldb4') diff --git a/mail/sendmail812/files/site.config.m4-ldap b/mail/sendmail812/files/site.config.m4-ldap new file mode 100644 index 00000000000..a64017fe043 --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-ldap @@ -0,0 +1,5 @@ +# $NetBSD: site.config.m4-ldap,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +# enable ldap +APPENDDEF(`confMAPDEF', `-DLDAPMAP') +APPENDDEF(`confLIBS', `-lldap -llber') diff --git a/mail/sendmail812/files/site.config.m4-milter b/mail/sendmail812/files/site.config.m4-milter new file mode 100644 index 00000000000..5bb55578fd2 --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-milter @@ -0,0 +1,4 @@ +# $NetBSD: site.config.m4-milter,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +# enable milter +APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER') diff --git a/mail/sendmail812/files/site.config.m4-sasl b/mail/sendmail812/files/site.config.m4-sasl new file mode 100644 index 00000000000..f586adc72af --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-sasl @@ -0,0 +1,5 @@ +# $NetBSD: site.config.m4-sasl,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +# enable SASL +APPENDDEF(`confENVDEF', `-DSASL') +APPENDDEF(`conf_sendmail_LIBS', `-lsasl') diff --git a/mail/sendmail812/files/site.config.m4-sasl2 b/mail/sendmail812/files/site.config.m4-sasl2 new file mode 100644 index 00000000000..70199afe7de --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-sasl2 @@ -0,0 +1,5 @@ +# $NetBSD: site.config.m4-sasl2,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +# enable SASL 2 +APPENDDEF(`confENVDEF', `-DSASL=2') +APPENDDEF(`conf_sendmail_LIBS', `-lsasl2') diff --git a/mail/sendmail812/files/site.config.m4-solaris b/mail/sendmail812/files/site.config.m4-solaris new file mode 100644 index 00000000000..0ab7a6d18e2 --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-solaris @@ -0,0 +1,9 @@ +# $NetBSD: site.config.m4-solaris,v 1.1.1.1 2004/08/30 19:56:46 adrianp 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/sendmail812/files/site.config.m4-starttls b/mail/sendmail812/files/site.config.m4-starttls new file mode 100644 index 00000000000..6be6f7ea7fa --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-starttls @@ -0,0 +1,5 @@ +# $NetBSD: site.config.m4-starttls,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +# enable STARTTLS +APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS') +APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto') diff --git a/mail/sendmail812/files/site.config.m4-tcpwrappers b/mail/sendmail812/files/site.config.m4-tcpwrappers new file mode 100644 index 00000000000..4c2fd8b8698 --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-tcpwrappers @@ -0,0 +1,5 @@ +# $NetBSD: site.config.m4-tcpwrappers,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +# enable tcpwrappers +APPENDDEF(`confENVDEF', `-DTCPWRAPPERS') +APPENDDEF(`conf_sendmail_LIBS', `-lwrap') diff --git a/mail/sendmail812/files/site.config.m4-v6 b/mail/sendmail812/files/site.config.m4-v6 new file mode 100644 index 00000000000..5b5971e614c --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-v6 @@ -0,0 +1,4 @@ +# $NetBSD: site.config.m4-v6,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +# enable IPv6 +APPENDDEF(`confENVDEF', `-DNETINET6') diff --git a/mail/sendmail812/files/site.config.m4-v6-not-solaris b/mail/sendmail812/files/site.config.m4-v6-not-solaris new file mode 100644 index 00000000000..9f8203bb232 --- /dev/null +++ b/mail/sendmail812/files/site.config.m4-v6-not-solaris @@ -0,0 +1,3 @@ +# $NetBSD: site.config.m4-v6-not-solaris,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +APPENDDEF(`confENVDEF', `-DNEEDSGETIPNODE') diff --git a/mail/sendmail812/patches/patch-aa b/mail/sendmail812/patches/patch-aa new file mode 100644 index 00000000000..eba618135db --- /dev/null +++ b/mail/sendmail812/patches/patch-aa @@ -0,0 +1,25 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ + +--- devtools/OS/NetBSD.orig 2002-03-21 15:59:25.000000000 -0800 ++++ devtools/OS/NetBSD +@@ -6,13 +6,15 @@ dnl Place personal settings in devtools/ + define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX') + define(`confENVDEF', ` -DNETISO') + define(`confDEPEND_TYPE', `CC-M') +-define(`confSBINGRP', `wheel') +-define(`confUBINOWN', `root') +-define(`confUBINGRP', `wheel') +-define(`confMANOWN', `root') +-define(`confMANGRP', `wheel') ++define(`confSBINGRP', `${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/sendmail812/patches/patch-ab b/mail/sendmail812/patches/patch-ab new file mode 100644 index 00000000000..42f5ad729ae --- /dev/null +++ b/mail/sendmail812/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ + +--- devtools/OS/SunOS.5.6.orig Fri Mar 22 11:59:26 2002 ++++ devtools/OS/SunOS.5.6 Mon Sep 16 15:05:30 2002 +@@ -11,6 +11,7 @@ + define(`confENVDEF', `-DSOLARIS=20600') + define(`confSM_OS_HEADER', `sm_os_sunos') + define(`confLIBS', `-lsocket -lnsl -lkstat') ++define(`confLDOPTS', `${LDFLAGS}') + define(`confMTCCOPTS', `-D_REENTRANT') + define(`confMTLDOPTS', `-lpthread') + define(`confMBINDIR', `/usr/lib') diff --git a/mail/sendmail812/patches/patch-ac b/mail/sendmail812/patches/patch-ac new file mode 100644 index 00000000000..2e2a0a6ad74 --- /dev/null +++ b/mail/sendmail812/patches/patch-ac @@ -0,0 +1,12 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ + +--- devtools/OS/SunOS.5.7.orig Fri Mar 22 11:59:26 2002 ++++ devtools/OS/SunOS.5.7 Mon Sep 16 15:07:08 2002 +@@ -11,6 +11,7 @@ + define(`confENVDEF', `-DSOLARIS=20700') + define(`confSM_OS_HEADER', `sm_os_sunos') + define(`confLIBS', `-lsocket -lnsl') ++define(`confLDOPTS', `${LDFLAGS}') + define(`confMTCCOPTS', `-D_REENTRANT') + define(`confMTLDOPTS', `-lpthread') + define(`confMBINDIR', `/usr/lib') diff --git a/mail/sendmail812/patches/patch-ad b/mail/sendmail812/patches/patch-ad new file mode 100644 index 00000000000..5b855e84750 --- /dev/null +++ b/mail/sendmail812/patches/patch-ad @@ -0,0 +1,12 @@ +$NetBSD: patch-ad,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ + +--- devtools/OS/SunOS.5.8.orig Fri Mar 22 11:59:26 2002 ++++ devtools/OS/SunOS.5.8 Mon Sep 16 15:09:28 2002 +@@ -10,6 +10,7 @@ + define(`confENVDEF', `-DSOLARIS=20800 -DNETINET6') + define(`confSM_OS_HEADER', `sm_os_sunos') + define(`confLIBS', `-lsocket -lnsl') ++define(`confLDOPTS', `${LDFLAGS}') + define(`confMTCCOPTS', `-D_REENTRANT') + define(`confMTLDOPTS', `-lpthread') + define(`confMBINDIR', `/usr/lib') diff --git a/mail/sendmail812/patches/patch-ae b/mail/sendmail812/patches/patch-ae new file mode 100644 index 00000000000..bd417e49c6e --- /dev/null +++ b/mail/sendmail812/patches/patch-ae @@ -0,0 +1,12 @@ +$NetBSD: patch-ae,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ + +--- devtools/OS/SunOS.5.9.orig Fri Mar 22 11:59:26 2002 ++++ devtools/OS/SunOS.5.9 Mon Sep 16 15:11:10 2002 +@@ -10,6 +10,7 @@ + define(`confENVDEF', `-DSOLARIS=20900 -DNETINET6') + define(`confSM_OS_HEADER', `sm_os_sunos') + define(`confLIBS', `-lsocket -lnsl') ++define(`confLDOPTS', `${LDFLAGS}') + define(`confMTCCOPTS', `-D_REENTRANT') + define(`confMTLDOPTS', `-lpthread') + define(`confMBINDIR', `/usr/lib') diff --git a/mail/sendmail812/patches/patch-af b/mail/sendmail812/patches/patch-af new file mode 100644 index 00000000000..73a1eba9ca6 --- /dev/null +++ b/mail/sendmail812/patches/patch-af @@ -0,0 +1,14 @@ +$NetBSD: patch-af,v 1.1.1.1 2004/08/30 19:56:45 adrianp Exp $ + +--- sendmail/conf.c.orig Sat Aug 17 02:56:01 2002 ++++ sendmail/conf.c Mon Sep 16 15:13:22 2002 +@@ -4352,7 +4352,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); diff --git a/mail/sendmail812/patches/patch-ag b/mail/sendmail812/patches/patch-ag new file mode 100644 index 00000000000..a40a4cf5471 --- /dev/null +++ b/mail/sendmail812/patches/patch-ag @@ -0,0 +1,38 @@ +$NetBSD: patch-ag,v 1.1.1.1 2004/08/30 19:56:46 adrianp Exp $ + +--- include/sm/conf.h.orig 2004-01-07 13:52:16.000000000 +1300 ++++ include/sm/conf.h +@@ -780,7 +780,11 @@ extern unsigned int sleepX __P((unsigned + # ifndef LA_TYPE + # define LA_TYPE LA_SUBR + # endif /* ! LA_TYPE */ ++#if defined(__NetBSD__) && (__NetBSD_Version__ > 200030000) ++# define SFS_TYPE SFS_STATVFS /* use <sys/statvfs.h> statfs() impl */ ++#else + # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ ++#endif + # define SPT_TYPE SPT_PSSTRINGS /* use PS_STRINGS pointer */ + # endif /* defined(BSD4_4) && !defined(__bsdi__) && !defined(__GNU__) */ + +@@ -894,7 +898,11 @@ extern unsigned int sleepX __P((unsigned + # ifndef LA_TYPE + # define LA_TYPE LA_SUBR + # endif /* ! LA_TYPE */ ++#if defined(__NetBSD__) && (__NetBSD_Version__ > 200030000) ++# define SFS_TYPE SFS_STATVFS /* use <sys/statvfs.h> statfs() impl */ ++#else + # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ ++#endif + # if defined(__NetBSD__) && (NetBSD > 199307 || NetBSD0_9 > 1) + # undef SPT_TYPE + # define SPT_TYPE SPT_BUILTIN /* setproctitle is in libc */ +@@ -902,6 +910,9 @@ extern unsigned int sleepX __P((unsigned + # if defined(__NetBSD__) && ((__NetBSD_Version__ > 102070000) || (NetBSD1_2 > 8) || defined(NetBSD1_4) || defined(NetBSD1_3)) + # define HASURANDOMDEV 1 /* has /dev/urandom(4) */ + # endif /* defined(__NetBSD__) && ((__NetBSD_Version__ > 102070000) || (NetBSD1_2 > 8) || defined(NetBSD1_4) || defined(NetBSD1_3)) */ ++# if defined(__NetBSD__) ++# define SMRSH_CMDDIR "/usr/libexec/sm.bin" ++# endif /* defined(__NetBSD__) */ + # if defined(__FreeBSD__) + # define HASSETLOGIN 1 /* has setlogin(2) */ + # if __FreeBSD_version >= 227001 |