pkgsrc/mail/nmh/Makefile

105 lines
2.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.62 2006/10/01 07:34:16 dsainty Exp $
DISTNAME= nmh-1.0.4
PKGREVISION= 7
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.nongnu.org/nmh/
COMMENT= Cleaned up MH mailer suite
1998-07-12 23:29:46 +02:00
CONFLICTS= ja-mh-[0-9]*
CONFLICTS+= ja-mh6-[0-9]*
1999-10-29 21:19:41 +02:00
# Avoids SEGV in nmh's private version of strcasecmp() under gcc4
CFLAGS+= -O1
# 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"
2005-09-23 00:00:41 +02:00
.include "options.mk"
1998-02-09 01:00:57 +01:00
# Mail Transport Agent - either "smtp" or "sendmail"
NMH_MTA?= smtp
2005-09-23 00:00:41 +02:00
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --libdir=${PREFIX}/libexec/nmh
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --enable-nmh-pop
CONFIGURE_ARGS+= --with-mts=${NMH_MTA:Q}
.if defined(NMH_EDITOR)
CONFIGURE_ARGS+= --with-editor=${NMH_EDITOR:Q}
.endif
.if defined(NMH_PAGER)
CONFIGURE_ARGS+= --with-pager=${NMH_PAGER:Q}
.endif
2001-03-04 04:26:50 +01:00
.if defined(KERBEROS)
PKG_USE_KERBEROS= yes
.if ${OPSYS} == "NetBSD"
LIBS+= -lroken -lcrypt -lcom_err
.endif
CONFIGURE_ARGS+= --with-krb4
.else
CONFIGURE_ARGS+= --without-krb4
1999-03-04 10:12:39 +01:00
.endif
DOCDIR= share/doc/nmh
EGDIR= ${PREFIX}/share/examples/nmh
1999-03-04 10:12:39 +01:00
BUILD_DEFS+= NMH_MTA NMH_EDITOR NMH_PAGER NMH_HASH_BACKUP
PKG_SYSCONFSUBDIR= nmh
CONF_FILES= # empty
.for f in MailAliases \
components \
digestcomps \
distcomps \
forwcomps \
mhl.body \
mhl.digest \
mhl.format \
mhl.forward \
mhl.headers \
mhl.reply \
mhn.defaults \
mts.conf \
rcvdistcomps \
rcvdistcomps.outbox \
replcomps \
replgroupcomps \
scan.MMDDYY \
scan.YYYYMMDD \
scan.default \
scan.mailx \
scan.nomime \
scan.size \
scan.time \
scan.timely \
scan.unseen \
tmac.h
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
# This hopefully makes sure the permissions and ownership are right.
pre-install:
${INSTALL_DATA_DIR} ${EGDIR}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
for f in `${GREP} '^${DOCDIR}/' ${PKGDIR}/PLIST`; do \
${INSTALL_DATA} ${WRKSRC}/`${BASENAME} $$f` ${PREFIX}/${DOCDIR}; \
1999-03-04 10:12:39 +01:00
done
${INSTALL_DATA} ${FILESDIR}/mhn.defaults.dist ${EGDIR}/mhn.defaults
.include "../../mk/bsd.pkg.mk"