2000-01-09 02:29:06 +01:00
|
|
|
# $NetBSD: Makefile,v 1.12 2000/01/09 01:29:07 wiz Exp $
|
1999-04-09 01:00:33 +02:00
|
|
|
|
|
|
|
DISTNAME= sendmail.8.9.3
|
|
|
|
PKGNAME= sendmail-8.9.3
|
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/ \
|
2000-01-02 18:46:47 +01:00
|
|
|
ftp://ftp.cert.dfn.de/pub/tools/net/sendmail/ \
|
|
|
|
ftp://ftp.kyoto.wide.ad.jp/pub/mail/sendmail/
|
|
|
|
|
|
|
|
PATCH_SITES= ftp://ftp.kyoto.wide.ad.jp/pub/mail/sendmail/
|
|
|
|
PATCHFILES= sendmail893+3.2W.patch.gz
|
|
|
|
PATCH_DIST_ARGS=-d ${WRKSRC}/src -E ${PATCH_DIST_STRIP}
|
|
|
|
.if !(defined(PATCH_DEBUG) || defined(PKG_VERBOSE))
|
|
|
|
PATCH_DIST_ARGS+=--forward --quiet
|
|
|
|
.endif
|
1999-04-09 01:00:33 +02:00
|
|
|
|
1999-10-07 19:41:46 +02:00
|
|
|
MAINTAINER= packages@netbsd.org
|
1999-04-09 01:00:33 +02:00
|
|
|
HOMEPAGE= http://www.sendmail.org/
|
|
|
|
|
|
|
|
LICENSE= no-profit
|
|
|
|
|
|
|
|
NO_CONFIGURE= yes
|
1999-04-10 19:22:43 +02:00
|
|
|
MAKE_ENV+= BSD_BINOWN="${BINOWN}" BSD_BINGRP="${BINGRP}" \
|
|
|
|
BSD_MANOWN="${MANOWN}" BSD_MANGRP="${MANGRP}"
|
1999-04-10 18:41:21 +02:00
|
|
|
|
|
|
|
MESSAGE_FILE= ${WRKDIR}/MESSAGE
|
1999-12-01 22:31:04 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
1999-04-09 01:00:33 +02:00
|
|
|
|
2000-01-02 18:46:47 +01:00
|
|
|
BUILD_DEFS+= USE_INET6
|
|
|
|
|
1999-12-01 22:15:20 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2000-01-02 18:46:47 +01:00
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == YES
|
|
|
|
MAKE_ENV+= CONFIG="-f ${WRKSRC}/site.config-v6"
|
|
|
|
.endif
|
|
|
|
|
1999-12-01 22:31:04 +01:00
|
|
|
USE_DB2?= NO
|
|
|
|
|
|
|
|
.if ${USE_DB2} == YES
|
1999-12-01 22:15:20 +01:00
|
|
|
DEPENDS+= db-2.7.7:../../databases/db
|
|
|
|
|
|
|
|
MAKE_ENV+= DB_ENVDEF="-I${LOCALBASE}/include/db2" \
|
|
|
|
DB_LIBS="-L${LOCALBASE}/lib -ldb2"
|
1999-12-01 22:31:04 +01:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
1999-12-01 22:15:20 +01:00
|
|
|
.else
|
|
|
|
MAKE_ENV+= DB_ENVDEF="" DB_LIBS=""
|
|
|
|
.endif
|
|
|
|
|
2000-01-02 18:46:47 +01:00
|
|
|
post-patch:
|
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == YES
|
2000-01-09 02:29:06 +01:00
|
|
|
@(${CP} ${FILESDIR}/site.config-v6 ${WRKSRC})
|
2000-01-02 18:46:47 +01:00
|
|
|
.endif
|
|
|
|
|
1999-04-09 01:00:33 +02:00
|
|
|
post-build:
|
1999-12-01 22:55:12 +01:00
|
|
|
${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
|
|
|
|
<${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.sendmail
|
1999-04-09 01:00:33 +02:00
|
|
|
${SED} -e 's#@@PKGNAME@@#${PKGNAME}#g' \
|
|
|
|
-e 's#@@PREFIX@@#${PREFIX}#g' \
|
|
|
|
<${PKGDIR}/MESSAGE >${MESSAGE_FILE}
|
1999-12-01 22:31:04 +01:00
|
|
|
.if ${USE_DB2} == YES
|
1999-12-01 22:55:12 +01:00
|
|
|
${ECHO} >>${MESSAGE_FILE} ""
|
|
|
|
${ECHO} >>${MESSAGE_FILE} "If you are upgrading from \"sendmail\" 8.8.x don't forget to rebuild all"
|
|
|
|
${ECHO} >>${MESSAGE_FILE} "databases with \"${PREFIX}/bin/newaliases\" and \"${PREFIX}/sbin/makemap\"."
|
1999-12-01 22:31:04 +01:00
|
|
|
${CP} ${PKGDIR}/PLIST ${PLIST_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
|
1999-04-09 01:00:33 +02:00
|
|
|
|
1999-04-10 18:41:21 +02:00
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${PREFIX}/libexec/sendmail
|
|
|
|
|
|
|
|
post-install:
|
1999-04-09 01:00:33 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mailer.conf.sendmail ${PREFIX}/etc
|
|
|
|
${CP} -pr ${WRKSRC}/cf ${PREFIX}/share/sendmail
|
|
|
|
${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/sendmail
|
1999-12-01 22:32:08 +01:00
|
|
|
.if ${USE_DB2} == YES
|
1999-04-30 19:07:11 +02:00
|
|
|
${MV} -f /usr/sbin/makemap /usr/sbin/makemap.8.8 || ${TRUE}
|
1999-12-01 22:32:08 +01:00
|
|
|
.endif
|
1999-04-09 01:00:33 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
2000-01-09 02:29:06 +01:00
|
|
|
|
|
|
|
# has to be below include for bsd.pkg.mk, else substition fails
|
|
|
|
OBJDIR!= ${ECHO} obj.`uname -srm | ${TR} \ .`
|