2016-03-05 12:27:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.92 2016/03/05 11:28:49 jperkin Exp $
|
1997-11-19 14:55:05 +01:00
|
|
|
|
Fixes PR pkg/49166
Contributed by: Leonardo Taccari <iamleot@gmail.com>
Update mail/nmh to 1.6.
Changes:
The biggest changes in this release are in the arena of MIME handling.
Specifically relating to MIME composition and display. On the
composition front, mhbuild(1) will now automatically be run by send(1)
for all drafts. Specifically, mhbuild is now run with the new -auto
flag, which will suppress the processing of mhbuild directives and cause
mhbuild to silently exit if the draft is already MIME-formatted. When
invoking mhbuild manually via the "mime" command at the WhatNow? prompt,
mhbuild will behave as before and process mhbuild directives.
In both cases (automatic and manual invocation) mhbuild will encode email
headers according to RFC-2047 rules. Mhbuild also will use RFC 2231
encoding rules for MIME parameters when appropriate. In addition, the
attach system has been substantially reworked; the new header name is
now "Attach" (to better align with other MUA behavior) and cannot be
changed by the end-user. The existing "attach" command simply adds
the filename(s) to the draft in new Attach: headers, and the actual
file processing is done by mhbuild; this attachment processing will
take place in either automatic or manual mode.
On the display front, mhshow(1) will now automatically convert text
into the user's native character set using iconv, if nmh was built
with iconv support. Also, mhshow will now by default only display
text content that was not marked as an attachment. By default all
displayed content wll be run under one pager, as opposed to individual
pagers for each part as was in the past. Non-displayed parts will be
indicated using a marker string, which can be customized by a new
mh-format(5) string.
All nmh utilites now understand RFC 2231-encoded MIME parameters and
will automatically convert the encoded parameters into the native
character set, when appropriate (again, assuming nmh was built with
iconv support).
In other changes, sequence files are now locked using transactional
locks: locks that are held across sequence file reading, modification,
and writing. The locking algorithm used for spool files and nmh data
files is now runtime configurable.
For people that struggle with mh-format(5) files, a new utility for testing
them has been developed: fmttest(1). It includes the ability to trace the
execution of format instructions.
For users that wish to use Unix utilities on their mail, a new utility
to transform MIME messages to more easily-digestable format is now
available: mhfixmsg(1). It supports a number of options to control
the message transformation.
For users of spost(8), the support for spost has been rolled into post(8)
under a new sendmail/pipe MTS. A shell script emulating the old behavior
of spost has been provided.
2014-09-06 18:07:43 +02:00
|
|
|
DISTNAME= nmh-1.6
|
2016-03-05 12:27:40 +01:00
|
|
|
PKGREVISION= 5
|
2000-08-02 08:35:43 +02:00
|
|
|
CATEGORIES= mail
|
- Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!).
- many bug fixes
- MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded
headers and convert to current locale.
- various MIME improvements
- Take maintainership (ok'd by kim@).
- Replace DESCR with text from web site.
- Support user-destdir.
- Use --with-hash-backup instead of hacking config.h post-configure.
- Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck
and IRIX bits in Makefile.
- A tmac.h conf file (wtf?) is no longer installed.
- Update what's installed to share/doc/nmh.
- Update PLIST for added/removed/renamed files.
- Patches:
- Update patch-ca and patch-cd.
- Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad,
patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al,
patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as,
patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba,
patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh,
patch-bi
- patch-aa also had a patch for some fgetstr problem on NetBSD which no
longer seems to happen.
- Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only
apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H
is already elsewhere in config.h, and sys/param.h is included in nmh.h.
- Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in
uip/sortm.c r1.7).
- Remove patch-ci (fixed in uip/show.c r1.6).
- Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems
were fixed (differently) in 2000.
- Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd.
2008-08-09 01:41:21 +02:00
|
|
|
MASTER_SITES= http://savannah.nongnu.org/download/nmh/
|
1997-11-19 14:55:05 +01:00
|
|
|
|
2015-08-26 14:44:30 +02:00
|
|
|
MAINTAINER= leot@NetBSD.org
|
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
|
2012-07-27 21:28:57 +02:00
|
|
|
LICENSE= modified-bsd
|
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
|
|
|
|
2007-11-17 13:04:11 +01:00
|
|
|
USE_TOOLS+= lex
|
|
|
|
|
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"
|
2006-12-16 14:18:54 +01:00
|
|
|
# Avoids SEGV in nmh's private version of strcasecmp() under gcc4
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mgcc*)
|
|
|
|
CFLAGS+= -O1
|
|
|
|
.endif
|
|
|
|
|
2005-09-23 00:00:41 +02:00
|
|
|
.include "options.mk"
|
1999-03-07 00:18:51 +01:00
|
|
|
|
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
|
|
|
|
2005-09-23 00:00:41 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-01-16 20:19:46 +01:00
|
|
|
|
2014-01-28 12:33:43 +01:00
|
|
|
GNU_CONFIGURE_LIBDIR= ${PREFIX}/libexec/nmh
|
Fixes PR pkg/49166
Contributed by: Leonardo Taccari <iamleot@gmail.com>
Update mail/nmh to 1.6.
Changes:
The biggest changes in this release are in the arena of MIME handling.
Specifically relating to MIME composition and display. On the
composition front, mhbuild(1) will now automatically be run by send(1)
for all drafts. Specifically, mhbuild is now run with the new -auto
flag, which will suppress the processing of mhbuild directives and cause
mhbuild to silently exit if the draft is already MIME-formatted. When
invoking mhbuild manually via the "mime" command at the WhatNow? prompt,
mhbuild will behave as before and process mhbuild directives.
In both cases (automatic and manual invocation) mhbuild will encode email
headers according to RFC-2047 rules. Mhbuild also will use RFC 2231
encoding rules for MIME parameters when appropriate. In addition, the
attach system has been substantially reworked; the new header name is
now "Attach" (to better align with other MUA behavior) and cannot be
changed by the end-user. The existing "attach" command simply adds
the filename(s) to the draft in new Attach: headers, and the actual
file processing is done by mhbuild; this attachment processing will
take place in either automatic or manual mode.
On the display front, mhshow(1) will now automatically convert text
into the user's native character set using iconv, if nmh was built
with iconv support. Also, mhshow will now by default only display
text content that was not marked as an attachment. By default all
displayed content wll be run under one pager, as opposed to individual
pagers for each part as was in the past. Non-displayed parts will be
indicated using a marker string, which can be customized by a new
mh-format(5) string.
All nmh utilites now understand RFC 2231-encoded MIME parameters and
will automatically convert the encoded parameters into the native
character set, when appropriate (again, assuming nmh was built with
iconv support).
In other changes, sequence files are now locked using transactional
locks: locks that are held across sequence file reading, modification,
and writing. The locking algorithm used for spool files and nmh data
files is now runtime configurable.
For people that struggle with mh-format(5) files, a new utility for testing
them has been developed: fmttest(1). It includes the ability to trace the
execution of format instructions.
For users that wish to use Unix utilities on their mail, a new utility
to transform MIME messages to more easily-digestable format is now
available: mhfixmsg(1). It supports a number of options to control
the message transformation.
For users of spost(8), the support for spost has been rolled into post(8)
under a new sendmail/pipe MTS. A shell script emulating the old behavior
of spost has been provided.
2014-09-06 18:07:43 +02:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mts=${NMH_MTA:Q}
|
2015-08-20 15:01:54 +02:00
|
|
|
CONFIGURE_ARGS+= --without-readline
|
1997-11-19 14:55:05 +01:00
|
|
|
|
2000-08-02 08:35:43 +02:00
|
|
|
DOCDIR= share/doc/nmh
|
- Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!).
- many bug fixes
- MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded
headers and convert to current locale.
- various MIME improvements
- Take maintainership (ok'd by kim@).
- Replace DESCR with text from web site.
- Support user-destdir.
- Use --with-hash-backup instead of hacking config.h post-configure.
- Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck
and IRIX bits in Makefile.
- A tmac.h conf file (wtf?) is no longer installed.
- Update what's installed to share/doc/nmh.
- Update PLIST for added/removed/renamed files.
- Patches:
- Update patch-ca and patch-cd.
- Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad,
patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al,
patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as,
patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba,
patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh,
patch-bi
- patch-aa also had a patch for some fgetstr problem on NetBSD which no
longer seems to happen.
- Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only
apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H
is already elsewhere in config.h, and sys/param.h is included in nmh.h.
- Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in
uip/sortm.c r1.7).
- Remove patch-ci (fixed in uip/show.c r1.6).
- Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems
were fixed (differently) in 2000.
- Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd.
2008-08-09 01:41:21 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/nmh
|
2008-08-21 22:35:36 +02:00
|
|
|
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
|
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 \
|
- Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!).
- many bug fixes
- MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded
headers and convert to current locale.
- various MIME improvements
- Take maintainership (ok'd by kim@).
- Replace DESCR with text from web site.
- Support user-destdir.
- Use --with-hash-backup instead of hacking config.h post-configure.
- Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck
and IRIX bits in Makefile.
- A tmac.h conf file (wtf?) is no longer installed.
- Update what's installed to share/doc/nmh.
- Update PLIST for added/removed/renamed files.
- Patches:
- Update patch-ca and patch-cd.
- Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad,
patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al,
patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as,
patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba,
patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh,
patch-bi
- patch-aa also had a patch for some fgetstr problem on NetBSD which no
longer seems to happen.
- Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only
apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H
is already elsewhere in config.h, and sys/param.h is included in nmh.h.
- Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in
uip/sortm.c r1.7).
- Remove patch-ci (fixed in uip/show.c r1.6).
- Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems
were fixed (differently) in 2000.
- Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd.
2008-08-09 01:41:21 +02:00
|
|
|
scan.unseen
|
2005-01-16 20:19:46 +01:00
|
|
|
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
|
|
|
.endfor
|
|
|
|
|
2014-09-21 02:09:24 +02:00
|
|
|
# The configure script checks for arc4random(), but the program uses
|
2015-08-20 15:01:54 +02:00
|
|
|
# arc4random_buf(); netbsd-5 (and presumably earlier) and some Darwin
|
|
|
|
# versions has the one but not the other. Just disable it, because all
|
|
|
|
# it's using the randomness for is message-ids.
|
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*) || \
|
|
|
|
!empty(MACHINE_PLATFORM:MDarwin-[1-9].*-*) || \
|
|
|
|
!empty(MACHINE_PLATFORM:MDarwin-1[0-2].*-*)
|
2014-09-21 02:09:24 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_func_arc4random=no
|
|
|
|
.endif
|
|
|
|
|
1997-11-19 14:55:05 +01:00
|
|
|
post-install:
|
- Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!).
- many bug fixes
- MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded
headers and convert to current locale.
- various MIME improvements
- Take maintainership (ok'd by kim@).
- Replace DESCR with text from web site.
- Support user-destdir.
- Use --with-hash-backup instead of hacking config.h post-configure.
- Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck
and IRIX bits in Makefile.
- A tmac.h conf file (wtf?) is no longer installed.
- Update what's installed to share/doc/nmh.
- Update PLIST for added/removed/renamed files.
- Patches:
- Update patch-ca and patch-cd.
- Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad,
patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al,
patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as,
patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba,
patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh,
patch-bi
- patch-aa also had a patch for some fgetstr problem on NetBSD which no
longer seems to happen.
- Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only
apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H
is already elsewhere in config.h, and sys/param.h is included in nmh.h.
- Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in
uip/sortm.c r1.7).
- Remove patch-ci (fixed in uip/show.c r1.6).
- Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems
were fixed (differently) in 2000.
- Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd.
2008-08-09 01:41:21 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/mhn.defaults.dist \
|
|
|
|
${DESTDIR}${EGDIR}/mhn.defaults
|
1997-11-19 14:55:05 +01:00
|
|
|
|
2011-12-03 10:25:45 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
.include "../../databases/gdbm_compat/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-ndbm='gdbm_compat -lgdbm'
|
|
|
|
CONFIGURE_ARGS+= --with-ndbmheader=ndbm.h
|
|
|
|
.endif
|
|
|
|
|
2016-01-26 17:19:25 +01:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2014-09-21 01:15:03 +02:00
|
|
|
.include "../../mk/terminfo.buildlink3.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|