diff options
Diffstat (limited to 'mail/exim/Makefile.common')
-rw-r--r-- | mail/exim/Makefile.common | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/mail/exim/Makefile.common b/mail/exim/Makefile.common new file mode 100644 index 00000000000..d38b85f7958 --- /dev/null +++ b/mail/exim/Makefile.common @@ -0,0 +1,69 @@ +# $NetBSD: Makefile.common,v 1.1 2003/09/02 10:33:38 abs Exp $ + +MASTER_SITES= ftp://ftp.exim.org/pub/exim/exim4/ \ + ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \ + ftp://ftp.esat.net/pub/networking/mail/mta/exim/exim4/ + +USE_PERL5= yes +USE_BUILDLINK2= yes +USE_PKGINSTALL= yes + +MAKE_ENV+= SSLBASE=${SSLBASE:Q} + +EXIM_VERSION= 4.22 + +WRKSRC= ${WRKDIR}/exim-${EXIM_VERSION} +EXTRACT_SUFX= .tar.bz2 + +.include "../../mk/bsd.prefs.mk" + +BUILD_DEFS= EXIM_USER EXIM_GROUP + +PKG_SYSCONFSUBDIR?= exim +EXAMPLESDIR= ${PREFIX}/share/examples/exim +CONF_FILES= ${EXAMPLESDIR}/aliases ${PKG_SYSCONFDIR}/aliases +CONF_FILES+= ${EXAMPLESDIR}/configure ${PKG_SYSCONFDIR}/configure +MESSAGE_SUBST+= EXAMPLESDIR="${EXAMPLESDIR}" + +RCD_SCRIPTS= exim + +OWN_DIRS_PERMS= /var/log/exim ${EXIM_USER} ${EXIM_GROUP} 0750 +OWN_DIRS_PERMS+= /var/spool/exim ${EXIM_USER} ${EXIM_GROUP} 0750 + +# XXX: The following will be handled by buildlink2 at some point. +CFLAGS+= ${_STRIPFLAG_CC} + +pre-patch: + ${MKDIR} ${WRKSRC}/Local + ${CP} ${WRKSRC}/src/EDITME ${WRKSRC}/Local/Makefile.pkgsrc + ${CP} ${WRKSRC}/exim_monitor/EDITME ${WRKSRC}/Local/eximon.conf.pkgsrc + +pre-configure: + ${SED} -e 's:@PREFIX@:${PREFIX}:' \ + -e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:' \ + -e 's:@EXIM_USER@:${EXIM_USER}:' \ + -e 's:@EXIM_GROUP@:${EXIM_GROUP}:' \ + -e 's:@CHOWN@:${CHOWN}:' \ + -e 's:@CHGRP@:${CHGRP}:' \ + -e 's:@MV@:${MV}:' \ + -e 's:@RM@:${RM}:' \ + -e 's:@PERL5@:${PERL5}:' \ + < ${WRKSRC}/Local/Makefile.pkgsrc \ + > ${WRKSRC}/Local/Makefile + ${SED} -e 's:@PREFIX@:${PREFIX}:' \ + -e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:' \ + < ${WRKSRC}/Local/eximon.conf.pkgsrc \ + > ${WRKSRC}/Local/eximon.conf + +post-build: + ${SED} -e 's:@PREFIX@:${PREFIX}:' \ + ${FILESDIR}/mailer.conf.exim \ + > ${WRKDIR}/mailer.conf + +post-install: + ${INSTALL_DATA_DIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/exim.8 ${PREFIX}/man/man8/exim.8 + +.include "../../security/openssl/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" |