head	1.20;
access;
symbols
	pkgsrc-2013Q2:1.20.0.44
	pkgsrc-2013Q2-base:1.20
	pkgsrc-2012Q4:1.20.0.42
	pkgsrc-2012Q4-base:1.20
	pkgsrc-2011Q4:1.20.0.40
	pkgsrc-2011Q4-base:1.20
	pkgsrc-2011Q2:1.20.0.38
	pkgsrc-2011Q2-base:1.20
	pkgsrc-2009Q4:1.20.0.36
	pkgsrc-2009Q4-base:1.20
	pkgsrc-2008Q4:1.20.0.34
	pkgsrc-2008Q4-base:1.20
	pkgsrc-2008Q3:1.20.0.32
	pkgsrc-2008Q3-base:1.20
	cube-native-xorg:1.20.0.30
	cube-native-xorg-base:1.20
	pkgsrc-2008Q2:1.20.0.28
	pkgsrc-2008Q2-base:1.20
	pkgsrc-2008Q1:1.20.0.26
	pkgsrc-2008Q1-base:1.20
	pkgsrc-2007Q4:1.20.0.24
	pkgsrc-2007Q4-base:1.20
	pkgsrc-2007Q3:1.20.0.22
	pkgsrc-2007Q3-base:1.20
	pkgsrc-2007Q2:1.20.0.20
	pkgsrc-2007Q2-base:1.20
	pkgsrc-2007Q1:1.20.0.18
	pkgsrc-2007Q1-base:1.20
	pkgsrc-2006Q4:1.20.0.16
	pkgsrc-2006Q4-base:1.20
	pkgsrc-2006Q3:1.20.0.14
	pkgsrc-2006Q3-base:1.20
	pkgsrc-2006Q2:1.20.0.12
	pkgsrc-2006Q2-base:1.20
	pkgsrc-2006Q1:1.20.0.10
	pkgsrc-2006Q1-base:1.20
	pkgsrc-2005Q4:1.20.0.8
	pkgsrc-2005Q4-base:1.20
	pkgsrc-2005Q3:1.20.0.6
	pkgsrc-2005Q3-base:1.20
	pkgsrc-2005Q2:1.20.0.4
	pkgsrc-2005Q2-base:1.20
	pkgsrc-2005Q1:1.20.0.2
	pkgsrc-2005Q1-base:1.20
	pkgsrc-2004Q4:1.19.0.2
	pkgsrc-2004Q4-base:1.19
	pkgsrc-2004Q3:1.18.0.2
	pkgsrc-2004Q3-base:1.18
	pkgsrc-2004Q2:1.17.0.2
	pkgsrc-2004Q2-base:1.17
	pkgsrc-2004Q1:1.15.0.2
	pkgsrc-2004Q1-base:1.15
	pkgsrc-2003Q4:1.13.0.2
	pkgsrc-2003Q4-base:1.13
	netbsd-1-6-1:1.3.0.2
	netbsd-1-6-1-base:1.3
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.20
date	2005.01.10.18.46.18;	author adrianp;	state dead;
branches;
next	1.19;

1.19
date	2004.10.03.00.12.54;	author tv;	state Exp;
branches;
next	1.18;

1.18
date	2004.07.21.23.30.16;	author schmonz;	state Exp;
branches;
next	1.17;

1.17
date	2004.04.21.21.09.31;	author cube;	state Exp;
branches;
next	1.16;

1.16
date	2004.04.18.05.10.15;	author snj;	state Exp;
branches;
next	1.15;

1.15
date	2004.03.07.10.20.06;	author grant;	state Exp;
branches;
next	1.14;

1.14
date	2004.01.20.12.19.44;	author agc;	state Exp;
branches;
next	1.13;

1.13
date	2003.11.12.03.39.41;	author jschauma;	state Exp;
branches;
next	1.12;

1.12
date	2003.09.18.17.10.35;	author taca;	state Exp;
branches;
next	1.11;

1.11
date	2003.09.05.19.00.59;	author tron;	state Exp;
branches;
next	1.10;

1.10
date	2003.07.17.21.47.01;	author grant;	state Exp;
branches;
next	1.9;

1.9
date	2003.06.02.01.18.38;	author jschauma;	state Exp;
branches;
next	1.8;

1.8
date	2003.05.02.11.55.41;	author wiz;	state Exp;
branches;
next	1.7;

1.7
date	2003.05.01.15.01.49;	author jmmv;	state Exp;
branches;
next	1.6;

1.6
date	2003.03.29.12.41.38;	author jmmv;	state Exp;
branches;
next	1.5;

1.5
date	2003.03.24.00.13.37;	author jmc;	state Exp;
branches;
next	1.4;

1.4
date	2003.03.04.00.26.50;	author seb;	state Exp;
branches;
next	1.3;

1.3
date	2002.10.08.23.45.52;	author jlam;	state Exp;
branches;
next	1.2;

1.2
date	2002.10.08.06.12.21;	author itojun;	state Exp;
branches;
next	1.1;

1.1
date	2002.09.23.12.38.45;	author markd;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.09.23.12.38.45;	author markd;	state Exp;
branches;
next	;


desc
@@


1.20
log
@Removal of sendmail 8.11.x branch from pkgsrc.  We already have the
8.12.x and 8.13.x branches in pkgsrc.
@
text
@# $NetBSD: Makefile,v 1.19 2004/10/03 00:12:54 tv Exp $

DISTNAME=	sendmail.8.11.6
PKGNAME=	sendmail-8.11.6
PKGREVISION=	8
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.sendmail.org/pub/sendmail/ \
		ftp://ftp.fu-berlin.de/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

CR_PATCH=sendmail.8.11.6.security.cr.patch
PATCHFILES+=	${CR_PATCH}
SITES_${CR_PATCH}=	${MASTER_SITES}

MAINTAINER=	tech-pkg@@NetBSD.org
HOMEPAGE=	http://www.sendmail.org/
COMMENT=	The well known Mail Transport Agent

CONFLICTS+=	postfix-[0-9]* fastforward>=0.51nb2

LICENSE=	no-profit

WRKSRC=		${WRKDIR}/${PKGNAME:C/nb[0-9]+$//}
USE_BUILDLINK3=	yes
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_WIDEPATCH USE_INET6 USE_TCPWRAPPERS USE_OPENLDAP 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"

.if ${OPSYS} == "SunOS"
USE_DB2?=	YES
.else
USE_DB2?=	NO
.endif
.if ${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_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:
	${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_OPENLDAP) && ${USE_OPENLDAP} == 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_DIR} ${PREFIX}/share/examples/sendmail
	${INSTALL_DATA} ${WRKDIR}/mailer.conf.sendmail ${PREFIX}/share/examples/sendmail/mailer.conf
	${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} \  .`
@


1.19
log
@Libtool fix for PR pkg/26633, and other issues.  Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2004/07/21 23:30:16 schmonz Exp $
@


1.18
log
@Add CONFLICTS with the upcoming mail/fastforward update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2004/04/21 21:09:31 cube Exp $
d5 1
a5 1
PKGREVISION=	7
@


1.17
log
@Drop localized *_USE_LDAP definitions and consistently use USE_OPENLDAP
instead.  As announced on tech-pkg.

Most notably affected are Postfix, sendmail, Samba and cyrus-saslauthd.  Be
sure to update your mk.conf accordingly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2004/04/18 05:10:15 snj Exp $
d30 1
a30 1
CONFLICTS+=	postfix-[0-9]*
@


1.16
log
@Convert to buildlink3.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2004/03/07 10:20:06 grant Exp $
d41 1
a41 1
BUILD_DEFS+=    USE_WIDEPATCH USE_INET6 USE_TCPWRAPPERS USE_LDAP USE_DB2 \
d58 1
a58 1
.if defined(USE_LDAP) && (${USE_LDAP} == "YES")
d95 1
a95 1
.if defined(USE_LDAP) && ${USE_LDAP} == YES
@


1.15
log
@add CONFLICT on postfix, which also installs bin/mailq and
bin/newaliases.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2004/01/20 12:19:44 agc Exp $
d35 1
a35 1
USE_BUILDLINK2=	# defined
d55 1
a55 1
.  include "../../databases/db/buildlink2.mk"
d59 1
a59 1
.  include "../../databases/openldap/buildlink2.mk"
d63 1
a63 1
.  include "../../security/cyrus-sasl/buildlink2.mk"
d67 1
a67 1
.  include "../../security/openssl/buildlink2.mk"
d72 1
a72 1
.  include "../../security/tcp_wrappers/buildlink2.mk"
@


1.14
log
@Move WRKSRC definition away from the first paragraph in a Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2003/11/12 03:39:41 jschauma Exp $
d30 2
@


1.13
log
@PKGREVISION++ after openssl update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2003/09/18 17:10:35 taca Exp $
a5 1
WRKSRC=		${WRKDIR}/${PKGNAME:C/nb[0-9]+$//}
d32 1
@


1.12
log
@- Add patch from NetBSD 1.6 branch's changes for parseaddr.c 1.8.2.1-1.8.2.3.
- Also bump sendmail version information itself.
- bump package revision.

BUGS
	Setting USE_WIDEPATCH=NO breaks the package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2003/09/05 19:00:59 tron Exp $
d5 1
a5 1
PKGREVISION=	6
@


1.11
log
@Remove "/pub" from pathnames on "ftp.fu-berlin.de" because such a directory
doesn't exist. It's apparently only mapped in the FTP server configuration.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2003/07/17 21:47:01 grant Exp $
d5 1
a5 1
PKGREVISION=	5
@


1.10
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2003/06/02 01:18:38 jschauma Exp $
d9 1
a9 1
		ftp://ftp.fu-berlin.de/pub/unix/mail/sendmail/ \
@


1.9
log
@Use tech-pkg@@ in favor of packages@@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2003/05/02 11:55:41 wiz Exp $
d27 1
a27 1
MAINTAINER=	tech-pkg@@netbsd.org
@


1.8
log
@Dependency bumps, needed because of devel/pth's major bump, and related
dependency bumps.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2003/05/01 15:01:49 jmmv Exp $
d27 1
a27 1
MAINTAINER=	packages@@netbsd.org
@


1.7
log
@Move the example mailer.conf file to the examples directory.
Bump PKGREVISION to 4.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2003/03/29 12:41:38 jmmv Exp $
d5 1
a5 1
PKGREVISION=	4
@


1.6
log
@Place WRKSRC where it belongs, to make pkglint happy; ok'ed by wiz.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2003/03/24 00:13:37 jmc Exp $
d5 1
a5 1
PKGREVISION=	3
d131 2
a132 1
	${INSTALL_DATA} ${WRKDIR}/mailer.conf.sendmail ${PREFIX}/etc
@


1.5
log
@Provide a SITES_ expansion for fetching the cr patch so this doesn't conflict
with the the possible download of the wide patch
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2003/03/04 00:26:50 seb Exp $
d6 1
a36 1
WRKSRC=		${WRKDIR}/${PKGNAME:C/nb[0-9]+$//}
@


1.4
log
@Add security fix from patch file
ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.11.6.security.cr.patch

See Cert Advisory CA-2003-07.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2002/10/08 23:45:52 jlam Exp $
d22 3
a24 1
PATCHFILES+=	sendmail.8.11.6.security.cr.patch
@


1.3
log
@buildlink1 -> buildlink2
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2002/10/08 06:12:21 itojun Exp $
d5 1
a5 1
PKGREVISION=	2
d21 2
@


1.2
log
@bring in smrsh patch.  bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $
d28 1
a41 3
# Make sure that ${BUILDLINK_DIR} is defined even no "buildlink.mk" gets
# included below.
.include "../../mk/bsd.buildlink.mk"
d48 2
a49 2
.if ${USE_DB2} == YES
.include "../../databases/db/buildlink.mk"
d52 2
a53 2
.if defined(USE_LDAP) && ${USE_LDAP} == YES
.include "../../databases/openldap/buildlink.mk"
d56 2
a57 2
.if defined(USE_SASL) && ${USE_SASL} == YES
.include "../../security/cyrus-sasl/buildlink.mk"
d60 2
a61 2
.if defined(USE_STARTTLS) && ${USE_STARTTLS} == YES
.include "../../security/openssl/buildlink.mk"
d65 2
a66 2
.if ${USE_TCPWRAPPERS} == YES
.include "../../security/tcp_wrappers/buildlink.mk"
d108 1
a108 1
	@@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./Build)
d115 1
a115 1
.if ${USE_DB2} == YES
d130 1
a130 1
.if ${USE_DB2} == YES
d137 1
a137 1
OBJDIR!=	${ECHO} obj.`uname -srm | ${TR} \  .`
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2002/08/21 07:47:05 seb Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.1.1.1
log
@Reimport of current sendmail-8.11.6 package as mail/sendmail811.
@
text
@@
