aboutsummaryrefslogtreecommitdiff
path: root/mail/nmh/Makefile
blob: c918469980542df7b37f4e9279d9c4b9b95426ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# New ports collection makefile for:	nmh
# Date created:		07 Feb 1999
# Whom:			Scott Blachowicz <scott+ports@sabami.seaslug.org>
#
# $FreeBSD$
#
# Makefile variables of interest:
#
# NMH_EDITOR - pass an EDITOR specification through to nmh's configure
#           script's '--with-editor' option.
#
# NMH_EXTRA_CONFIGURE_ARGS - extra args passed through to 'configure'.
#
# NMH_LOCKING - specify the style of locking to be used by nmh for the
#           users' spool files (e.g. the 'inc' command). Must match the
#           locking style used by your MTA - the default is FLOCK_LOCKING
#           (the documented behavior for the 'mail.local' delivery program).
#           Do a 'make patch', then look in the source directory (currently
#           the config.h.in file) for more information on different locking
#           settings. Current valid settings are:
#             DOT_LOCKING FCNTL_LOCKING LOCKF_LOCKING FLOCK_LOCKING
#
# NMH_MASQUERADE - specify the type(s) of masquerading to allow.  This
#           is passed through to nmh's "--enable-masquerade" configure
#           option and the current syntax for that string is:
#             'draft_from[ mmailid[ username_extension]]'
#
# NMH_MTS - pass an MTS specification through to nmh's configure
#           script's "--with-mts" option.  Do a "make extract" and check
#           the NMH distribution's "INSTALL" file for more info.
#           Currently, the valid choices are
#    "smtp" - [the default] Open a connection to the SMTP port on
#           the configured server, default - localhost.  The server would
#           be specified in the etc/nmh/mts.conf file after installation.
#           This requires access to a SMTP daemon on the localhost or the
#           specified server system.
#    "sendmail" - Fork a copy of sendmail to handle the message. This
#           will have different behavior than "smtp" depending on your
#           local MTA and its configuration.  For example, some of the
#           rewriting facilities of "qmail-inject", if you are using qmail,
#           may be available this way, but not via NMH_MTS=smtp.
#
# NMH_PAGER - pass an PAGER specification through to nmh's configure
#           script's '--with-pager' option.
#
# NMH_POP - specify "enable" or "disable" for --enable-pop (or --disable-pop).
#           Default is "enable".
#
# NMH_SMTPSERVERS - specify a blank-separated list of SMTP servers -
#           passed through to nmh's configure scripts '--with-smtpservers'
#           option.
#

PORTNAME=	nmh
PORTVERSION=	1.2
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR=	nmh

MAINTAINER=	scott+ports@sabami.seaslug.org
COMMENT=	A cleaned up MH mailer suite

USE_GMAKE=	yes
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=	autoconf:259
CONFIGURE_ARGS=	--libdir=${PREFIX}/libexec/nmh \
		--sysconfdir=${PREFIX}/etc/nmh
.ifdef NMH_EDITOR
CONFIGURE_ARGS+= --with-editor=${NMH_EDITOR}
.endif
.ifdef NMH_MASQUERADE
CONFIGURE_ARGS+= --enable-masquerade="${NMH_MASQUERADE}"
.endif
.ifndef NMH_LOCKING
NMH_LOCKING=FLOCK_LOCKING
.endif
.ifdef NMH_MTS
CONFIGURE_ARGS+= --with-mts=${NMH_MTS}
.endif
.ifdef NMH_PAGER
CONFIGURE_ARGS+= --with-pager=${NMH_PAGER}
.endif
.ifdef NMH_POP
CONFIGURE_ARGS+= --${NMH_POP}-pop
.else
CONFIGURE_ARGS+= --enable-pop
.endif
.ifdef NMH_SMTPSERVERS
CONFIGURE_ARGS+= --with-smtpservers="${NMH_SMTPSERVERS}"
.endif

.ifdef NMH_EXTRA_CONFIGURE_ARGS
CONFIGURE_ARGS+= ${NMH_EXTRA_CONFIGURE_ARGS}
.endif

CFLAGS+= -D${NMH_LOCKING}

MAN1=	ali.1 anno.1 burst.1 comp.1 dist.1 flist.1 flists.1 \
	folder.1 folders.1 forw.1 inc.1 install-mh.1 mark.1 \
	mh-chart.1 mhbuild.1 mhl.1 mhlist.1 mhmail.1 mhn.1 \
	mhparam.1 mhpath.1 mhshow.1 mhstore.1 msgchk.1 msh.1 \
	next.1 nmh.1 packf.1 pick.1 prev.1 prompter.1 rcvdist.1 \
	rcvpack.1 rcvstore.1 rcvtty.1 refile.1 repl.1 rmf.1 rmm.1 \
	scan.1 send.1 sendfiles.1 show.1 slocal.1 \
	sortm.1 whatnow.1 whom.1

MAN5=	mh-alias.5 mh-draft.5 mh-format.5 mh-mail.5 mh-profile.5 \
	mh-sequence.5 mh-tailor.5 mts.conf.5

MLINKS=	mh-profile.5 mh_profile.5

MAN8=	ap.8 conflict.8 dp.8 fmtdump.8 mh-mts.8 post.8

post-patch:
	@${REINPLACE_CMD} -e "s|autoconf|${AUTOCONF}|;\
		s|autoheader|${AUTOHEADER}|" ${WRKSRC}/Makefile.in

post-install:
	@PKG_PREFIX='${PREFIX}' ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>