# $NetBSD: Makefile,v 1.49 2002/10/30 16:57:02 kim Exp $ # FreeBSD Id: Makefile,v 1.2 1997/08/04 06:51:28 markm Exp # DISTNAME= nmh-1.0.4 PKGREVISION= 4 CATEGORIES= mail MASTER_SITES= ftp://ftp.mhost.com/pub/nmh/ \ ftp://ftp.gw.com/pub/unix/mail/mh/nmh/ MAINTAINER= kim@tac.nyc.ny.us HOMEPAGE= http://www.mhost.com/nmh/ COMMENT= Cleaned up MH mailer suite CONFLICTS= ja-mh-[0-9]* CONFLICTS+= ja-mh6-[0-9]* # We choose DOT_LOCKING in our patches because ".lock" files are # the most common locking mechanism supported by mail software. # It also works well over NFS. # Locks supported by `mail.local' are ".lock" and flock(2). .include "../../mk/bsd.prefs.mk" # Mail Transport Agent - either "smtp" or "sendmail" NMH_MTA?= smtp GNU_CONFIGURE= # defined CONFIGURE_ARGS+= --libdir=${PREFIX}/libexec/nmh CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/nmh CONFIGURE_ARGS+= --enable-nmh-pop CONFIGURE_ARGS+= --with-mts=${NMH_MTA} .ifdef NMH_EDITOR CONFIGURE_ARGS+= --with-editor=${NMH_EDITOR} .endif .ifdef NMH_PAGER CONFIGURE_ARGS+= --with-pager=${NMH_PAGER} .endif .if defined(KERBEROS) PKG_USE_KERBEROS= # defined CONFIGURE_ARGS+= --with-krb4 .else CONFIGURE_ARGS+= --without-krb4 .endif DOCDIR= share/doc/nmh BUILD_DEFS+= NMH_MTA NMH_EDITOR NMH_PAGER NMH_HASH_BACKUP .if defined(NMH_HASH_BACKUP) && (${NMH_HASH_BACKUP} == yes) post-configure: ${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.bak ${SED} -e 's/^\(#define *BACKUP_PREFIX\) *.*/\1 "#"/' \ < ${WRKSRC}/config.h.bak > ${WRKSRC}/config.h .endif # ABOUT CONFIGURATION FILES: # - mhn.defaults is generated by nmh during make; we don't use that # copy because its contents depend on what happened to be installed # on the build system; we want a reliably reconstructable package # - mhn.defaults and mts.conf are only created if they don't exist; # the PLIST only has mhn.defaults.dist and mts.conf.dist, so that # local modifications to the configuration files won't get lost on # upgrading the package post-install: ${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR} for f in `${GREP} '^${DOCDIR}/' ${PKGDIR}/PLIST`; do \ ${INSTALL_DATA} ${WRKSRC}/`basename $$f` ${PREFIX}/${DOCDIR}; \ done ${INSTALL_DATA} ${FILESDIR}/mhn.defaults.dist ${PREFIX}/etc/nmh PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL .include "../../mk/bsd.pkg.mk"