pkgsrc/mail/exim/Makefile
hubertf d32e698de6 Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
2001-02-25 04:17:35 +00:00

52 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.21 2001/02/25 04:17:58 hubertf Exp $
DISTNAME= exim-3.20
CATEGORIES= mail net
MASTER_SITES= ftp://ftp.exim.org/pub/exim/ \
ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/ \
ftp://ftp.esat.net/pub/networking/mail/mta/exim/
DISTFILES= exim-3.20.tar.gz exim-html-3.20.tar.gz
MAINTAINER= ad@netbsd.org
HOMEPAGE= http://www.exim.org/
COMMENT= The Exim mail transfer agent, a replacement for sendmail
USE_PERL5= yes
pre-patch:
${MKDIR} ${WRKSRC}/Local
${CP} ${WRKSRC}/src/EDITME ${WRKSRC}/Local/Makefile.netbsd
pre-configure:
${SED} -e 's:@PREFIX@:${PREFIX}:' \
< ${WRKSRC}/Local/Makefile.netbsd \
> ${WRKSRC}/Local/Makefile
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/etc/exim
${INSTALL_DATA_DIR} /var/log/exim
${CHMOD} 750 /var/log/exim
strip ${WRKSRC}/build*/exim
strip ${WRKSRC}/build*/exim_dbmbuild
strip ${WRKSRC}/build*/exim_tidydb
strip ${WRKSRC}/build*/exim_fixdb
strip ${WRKSRC}/build*/exim_dumpdb
strip ${WRKSRC}/build*/exim_lock
post-install:
${SED} -e 's:@PREFIX@:${PREFIX}:' \
< ${FILESDIR}/exim.sh \
> ${PREFIX}/etc/rc.d/exim
${SED} -e 's:@PREFIX@:${PREFIX}:' \
< ${FILESDIR}/exim_newaliases \
> ${PREFIX}/sbin/exim_newaliases
${CHMOD} ugo+x ${PREFIX}/sbin/exim_newaliases
${SED} -e 's:@PREFIX@:${PREFIX}:' \
< ${FILESDIR}/mailer.conf.exim \
> ${PREFIX}/etc/exim/mailer.conf.exim
${CP} ${FILESDIR}/exim.8 ${PREFIX}/man/man8/exim.8
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/exim
${RM} ${WRKDIR}/exim-html-3.20/doc/html/spec
${CP} -R ${WRKDIR}/exim-html-3.20/doc/html/* ${PREFIX}/share/doc/exim
.include "../../mk/bsd.pkg.mk"