pkgsrc/mail/sendmail/Makefile
itojun 32c9bb74cd chmod +w to files we append something.
PR10728.  From: Wolfgang Rupprecht <wolfgang@wsrcc.com>

not sure if this PR is a generic problem - it seems to me that Wolfgang
may checked things out from pkgsrc tree with non-writable permission.
2000-08-01 12:02:40 +00:00

97 lines
2.9 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2000/08/01 12:02:40 itojun Exp $
DISTNAME= sendmail.8.11.0
PKGNAME= sendmail-8.11.0
CATEGORIES= mail
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/ \
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/smtpfeed/
PATCHFILES= sendmail8.11.0+3.3W.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
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.sendmail.org/
LICENSE= no-profit
NO_CONFIGURE= yes
MAKE_ENV+= BSD_BINOWN="${BINOWN}" BSD_BINGRP="${BINGRP}" \
BSD_MANOWN="${MANOWN}" BSD_MANGRP="${MANGRP}"
MESSAGE_FILE= ${WRKDIR}/MESSAGE
WRKSRC= ${WRKDIR}/${PKGNAME}
SITECONFIG= ${WRKSRC}/devtools/Site/site.config.m4
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
USE_DB2?= YES
.else
USE_DB2?= NO
.endif
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
.if defined(USE_LDAP) && ${USE_LDAP} == YES
DEPENDS+= openldap-1.2.*:../../databases/openldap
.endif
.if ${USE_DB2} == YES
DEPENDS+= db-2.7.7:../../databases/db
.endif
post-patch:
${CP} ${FILESDIR}/site.config.m4 ${SITECONFIG}
${CHMOD} +w ${SITECONFIG}
.if defined(USE_INET6) && ${USE_INET6} == YES
${CAT} ${FILESDIR}/site.config.m4-v6 >> ${SITECONFIG}
.endif
.if ${OPSYS} == "NetBSD"
${CAT} ${FILESDIR}/site.config.m4-tcpwrappers >> ${SITECONFIG}
.endif
.if defined(USE_LDAP) && ${USE_LDAP} == YES
${CAT} ${FILESDIR}/site.config.m4-ldap >> ${SITECONFIG}
.endif
.if ${USE_DB2} == YES
${CAT} ${FILESDIR}/site.config.m4-db2 >> ${SITECONFIG}
.endif
do-build:
@(cd ${WRKSRC}; ./Build)
post-build:
${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
<${FILESDIR}/mailer.conf >${WRKDIR}/mailer.conf.sendmail
${SED} -e 's#@@PKGNAME@@#${PKGNAME}#g' \
-e 's#@@PREFIX@@#${PREFIX}#g' \
<${PKGDIR}/MESSAGE >${MESSAGE_FILE}
${CAT} ${PKGDIR}/PLIST.common ${PKGDIR}/PLIST.${LOWER_OPSYS} > ${PLIST_SRC}
.if ${USE_DB2} == YES
${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\"."
${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:
${MKDIR} ${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} \ .`