2005-03-24 22:12:50 +01:00
|
|
|
# $NetBSD: Makefile,v 1.56 2005/03/24 21:12:56 wiz Exp $
|
1997-11-19 14:55:05 +01:00
|
|
|
|
2000-08-02 08:35:43 +02:00
|
|
|
DISTNAME= nmh-1.0.4
|
2005-01-16 20:19:46 +01:00
|
|
|
PKGREVISION= 6
|
2000-08-02 08:35:43 +02:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ftp://ftp.mhost.com/pub/nmh/ \
|
|
|
|
ftp://ftp.gw.com/pub/unix/mail/mh/nmh/
|
1997-11-19 14:55:05 +01:00
|
|
|
|
2000-08-02 08:35:43 +02:00
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
2003-07-26 20:25:06 +02:00
|
|
|
HOMEPAGE= http://www.nongnu.org/nmh/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Cleaned up MH mailer suite
|
1998-07-12 23:29:46 +02:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= ja-mh-[0-9]*
|
|
|
|
CONFLICTS+= ja-mh6-[0-9]*
|
1999-10-29 21:19:41 +02:00
|
|
|
|
1999-03-07 00:18:51 +01:00
|
|
|
# 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"
|
|
|
|
|
1998-02-09 01:00:57 +01:00
|
|
|
# Mail Transport Agent - either "smtp" or "sendmail"
|
2000-08-02 08:35:43 +02:00
|
|
|
NMH_MTA?= smtp
|
1998-01-18 00:50:09 +01:00
|
|
|
|
2000-08-02 08:35:43 +02:00
|
|
|
GNU_CONFIGURE= # defined
|
2005-01-16 20:19:46 +01:00
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
|
2000-08-02 08:35:43 +02:00
|
|
|
CONFIGURE_ARGS+= --libdir=${PREFIX}/libexec/nmh
|
2005-01-16 20:19:46 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2000-08-02 08:35:43 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-nmh-pop
|
|
|
|
CONFIGURE_ARGS+= --with-mts=${NMH_MTA}
|
1997-11-19 14:55:05 +01:00
|
|
|
|
1999-03-07 00:18:51 +01:00
|
|
|
.ifdef NMH_EDITOR
|
2000-08-02 08:35:43 +02:00
|
|
|
CONFIGURE_ARGS+= --with-editor=${NMH_EDITOR}
|
1999-03-07 00:18:51 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef NMH_PAGER
|
2000-08-02 08:35:43 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pager=${NMH_PAGER}
|
1999-03-07 00:18:51 +01:00
|
|
|
.endif
|
|
|
|
|
2001-03-04 04:26:50 +01:00
|
|
|
.if defined(KERBEROS)
|
2002-06-15 23:19:59 +02:00
|
|
|
PKG_USE_KERBEROS= # defined
|
2003-05-09 16:07:29 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
2003-05-18 15:06:41 +02:00
|
|
|
LIBS= -lroken -lcrypt -lcom_err
|
2003-05-09 16:07:29 +02:00
|
|
|
.endif
|
2000-08-02 08:35:43 +02:00
|
|
|
CONFIGURE_ARGS+= --with-krb4
|
1999-09-14 04:32:21 +02:00
|
|
|
.else
|
2000-08-02 08:35:43 +02:00
|
|
|
CONFIGURE_ARGS+= --without-krb4
|
1999-03-04 10:12:39 +01:00
|
|
|
.endif
|
|
|
|
|
2000-08-02 08:35:43 +02:00
|
|
|
DOCDIR= share/doc/nmh
|
2005-01-16 20:19:46 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/nmh
|
1999-03-04 10:12:39 +01:00
|
|
|
|
2000-08-02 08:35:43 +02:00
|
|
|
BUILD_DEFS+= NMH_MTA NMH_EDITOR NMH_PAGER NMH_HASH_BACKUP
|
1999-08-18 10:46:53 +02:00
|
|
|
|
2005-01-16 20:19:46 +01:00
|
|
|
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
|
|
|
|
.undef f
|
|
|
|
|
1999-03-07 02:16:25 +01:00
|
|
|
.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
|
|
|
|
|
2005-01-16 20:19:46 +01:00
|
|
|
# This hopefully makes sure the permissions and ownership are right.
|
|
|
|
pre-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
2000-03-02 06:11:42 +01:00
|
|
|
|
1997-11-19 14:55:05 +01:00
|
|
|
post-install:
|
2000-08-02 08:35:43 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
|
|
|
|
for f in `${GREP} '^${DOCDIR}/' ${PKGDIR}/PLIST`; do \
|
2003-11-23 08:18:15 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/`${BASENAME} $$f` ${PREFIX}/${DOCDIR}; \
|
1999-03-04 10:12:39 +01:00
|
|
|
done
|
2005-01-16 20:19:46 +01:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/mhn.defaults.dist ${EGDIR}/mhn.defaults
|
1997-11-19 14:55:05 +01:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|