summaryrefslogtreecommitdiff
path: root/mail/sendmail812/Makefile
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2004-08-30 19:56:44 +0000
committeradrianp <adrianp@pkgsrc.org>2004-08-30 19:56:44 +0000
commitea559a18777fc3fee5a6e2971ce68a8a92dedb9a (patch)
tree8ef324d56277748a198a3189253bad01549180b6 /mail/sendmail812/Makefile
parent677d50e7b36dd90464cd8ff503cc8215e0359fb8 (diff)
downloadpkgsrc-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/sendmail812/Makefile')
-rw-r--r--mail/sendmail812/Makefile113
1 files changed, 113 insertions, 0 deletions
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} \/ -`