git: eabbd06ca6a1 - main - mail/nmh-devel: Add new port

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Sun, 06 Feb 2022 00:59:43 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eabbd06ca6a1abe7881dd35b65cff4353db64a21

commit eabbd06ca6a1abe7881dd35b65cff4353db64a21
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-02-05 04:36:18 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-02-06 00:59:28 +0000

    mail/nmh-devel: Add new port
    
    There hass been quite a bit of development of nmh over the last four
    years since 1.7.1 was released. This new nmh-devel port will track nmh
    development. As the nmh git repo is hosted on savannah.gnu.org, there
    is no easy way to fetch development snapshots like we do through
    github. Therefore I've mirrored the repo at savannah.gnu.org
    (https://git.savannah.nongnu.org/git/nmh.git) and pushed it to a
    mirror I maintain on my github account. (Pulling from remote
    upstream -- remote origin has been renamed to remote upstream --
    and pushing to remote origin.)
    
    Welcome the new nmh-devel port.
---
 mail/Makefile              |   1 +
 mail/nmh-devel/Makefile    | 109 +++++++++++++++++++++++++
 mail/nmh-devel/distinfo    |   3 +
 mail/nmh-devel/pkg-descr   |  15 ++++
 mail/nmh-devel/pkg-message |  16 ++++
 mail/nmh-devel/pkg-plist   | 192 +++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 336 insertions(+)

diff --git a/mail/Makefile b/mail/Makefile
index 60e1f8d8e0bd..e416ac13f4cb 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -250,6 +250,7 @@
     SUBDIR += neomutt
     SUBDIR += nextcloud-mail
     SUBDIR += nmh
+    SUBDIR += nmh-devel
     SUBDIR += noattach
     SUBDIR += nocc
     SUBDIR += normalizemime
diff --git a/mail/nmh-devel/Makefile b/mail/nmh-devel/Makefile
new file mode 100644
index 000000000000..bc8bf2c0e5f4
--- /dev/null
+++ b/mail/nmh-devel/Makefile
@@ -0,0 +1,109 @@
+# Created by: Scott Blachowicz <scott+ports@sabami.seaslug.org>
+
+PORTNAME=	nmh
+PORTVERSION=	${NMH_COMMIT_DATE}
+CATEGORIES=	mail
+PKGNAMESUFFIX=	-devel
+
+MAINTAINER=	cy@FreeBSD.org
+COMMENT=	Cleaned up MH mailer suite
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	cschuber
+GH_PROJECT=     nmh
+GH_TAGNAME=     9159514406
+COMMIT_DATE=    2022.02.04
+
+LICENSE=	BSD3CLAUSE
+
+USES=		autoreconf:build cpe gmake iconv ncurses readline shebangfix
+SHEBANG_FILES=	docs/contrib/ml docs/contrib/replyfilter docs/contrib/vpick
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--libdir=${PREFIX}/libexec/nmh \
+		--sysconfdir=${PREFIX}/etc \
+		--docdir=${DOCSDIR}
+LIB_DEPENDS=	libcurl.so:ftp/curl
+
+OPTIONS_DEFINE=	DOCS HASH_BKP SASL2 TLS REPLYFILTER
+OPTIONS_RADIO=	MIME_HTML
+OPTIONS_SINGLE=	MTS LOCKING
+OPTIONS_SINGLE_MTS=	SMTP SENDMAIL_SMTP SENDMAIL_PIPE
+OPTIONS_SINGLE_LOCKING=	DOT FCNTL FLOCK LOCKF
+OPTIONS_RADIO_MIME_HTML=	ELINKS LINKS LYNX W3M
+
+SASL2_DESC=	SASL2 support
+SASL2_CONFIGURE_WITH=	cyrus-sasl
+SASL2_LIB_DEPENDS=	libsasl2.so:security/cyrus-sasl2
+SASL2_LDFLAGS=-L${LOCALBASE}/lib
+SASL2_CPPFLAGS=-I${LOCALBASE}/include
+
+HASH_BKP_DESC=	Use hash as backup prefix (default is a comma)
+HASH_BKP_CONFIGURE_WITH=	hash-backup
+
+REPLYFILTER_DESC=	Install dependencies for contrib/replyfilter
+REPLYFILTER_RUN_DEPENDS=	p5-MIME-Tools>=0:mail/p5-MIME-Tools \
+				p5-Mail-Tools>=0:mail/p5-Mail-Tools \
+				w3m>=0:www/w3m \
+				par>=0:textproc/par
+
+SMTP_DESC=	Use remote SMTP
+SMTP_CONFIGURE_ON=	--with-mts=smtp
+SENDMAIL_SMTP_DESC=	Use local sendmail (connect through socket)
+SENDMAIL_SMTP_CONFIGURE_ON=	--with-mts=sendmail/smtp
+SENDMAIL_PIPE_DESC=	Use local sendmail (connect through pipe)
+SENDMAIL_PIPE_CONFIGURE_ON=	--with-mts=sendmail/pipe
+
+DOT_DESC=	Dot file locking
+DOT_CONFIGURE_ON=	--with-locking=dot
+FCNTL_DESC=	fcntl() file locking
+FCNTL_CONFIGURE_ON=	--with-locking=fcntl
+FLOCK_DESC=	flock() file locking
+FLOCK_CONFIGURE_ON=	--with-locking=flock
+LOCKF_DESC=	lockf file locking
+LOCKF_CONFIGURE_ON=	--with-locking=lockf
+
+# The reason for BUILD_DEPENDS is nmh detects and configures itself for
+# whichever text-based browser is installed.
+
+ELINKS_DESC=	Install dependencies for www/elinks
+ELINKS_BUILD_DEPENDS=	elinks>=0:www/elinks
+ELINKS_RUN_DEPENDS=	elinks>=0:www/elinks
+
+LINKS_DESC=	Install dependencies for www/links
+LINKS_BUILD_DEPENDS=	links>=0:www/links
+LINKS_RUN_DEPENDS=	links>=0:www/links
+
+LYNX_DESC=	Install dependencies for www/lynx
+LYNX_BUILD_DEPENDS=	lynx>=0:www/lynx
+LYNX_RUN_DEPENDS=	lynx>=0:www/lynx
+
+W3M_DESC=	Install dependencies for www/w3m
+W3M_BUILD_DEPENDS=	w3m>=0:www/w3m
+W3M_RUN_DEPENDS=	w3m>=0:www/w3m
+
+OPTIONS_DEFAULT=	SMTP FLOCK W3M
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MTLS}
+CONFIGURE_ARGS+=	--with-tls
+USES+=			ssl
+.else
+CONFIGURE_ARGS+=	--without-tls
+.endif
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=	--enable-debug
+LDFLAGS+=	-g
+DEBUG_FLAGS+=	-O0 -Wall -Wextra -g
+.endif
+
+CONFLICTS_INSTALL=	ali ja-mh pixie p5-Dist-Joseki
+
+pre-configure:
+	cd ${WRKSRC} && ./autogen.sh
+
+post-install:
+	@${FIND} ${STAGEDIR}${ETCDIR} -type f -exec ${MV} {} {}-dist \;
+
+.include <bsd.port.mk>
diff --git a/mail/nmh-devel/distinfo b/mail/nmh-devel/distinfo
new file mode 100644
index 000000000000..01613be468d8
--- /dev/null
+++ b/mail/nmh-devel/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1644034920
+SHA256 (cschuber-nmh--9159514406_GH0.tar.gz) = 193975dd7c25e5475bc23700a74031fca23163225fbd708720ee1d22b388efb0
+SIZE (cschuber-nmh--9159514406_GH0.tar.gz) = 7997454
diff --git a/mail/nmh-devel/pkg-descr b/mail/nmh-devel/pkg-descr
new file mode 100644
index 000000000000..5c35362c3213
--- /dev/null
+++ b/mail/nmh-devel/pkg-descr
@@ -0,0 +1,15 @@
+-----------
+What is it?
+-----------
+nmh (new MH) is an electronic mail handling system - a MUA (Mail
+User Agent) package for end-users to handle their e-mail. It was
+originally based on the package MH-6.8.3, and is intended to be a
+(mostly) compatible drop-in replacement for MH.
+
+nmh consists of a collection of fairly simple single-purpose programs
+to send, receive, save, retrieve, and manipulate e-mail messages. Since
+nmh is not a single comprehensive program, you may freely intersperse
+nmh commands with other shells commands, or write custom scripts which
+utilize these commands in flexible ways.
+
+WWW: http://savannah.nongnu.org/projects/nmh/
diff --git a/mail/nmh-devel/pkg-message b/mail/nmh-devel/pkg-message
new file mode 100644
index 000000000000..4250cb9a8228
--- /dev/null
+++ b/mail/nmh-devel/pkg-message
@@ -0,0 +1,16 @@
+[
+{ type: install
+  message: <<EOM
+Some files you might need to customize include the following:
+
+    mhn.defaults - adjust the programs used to handle various
+	MIME content types.
+
+    mts.conf - adjust the "servers" setting if you don't have
+	a locally installed sendmail (or other MTA).
+
+You may also find interesting freely avaiable book about nmh:
+http://rand-mh.sourceforge.net/book/
+EOM
+}
+]
diff --git a/mail/nmh-devel/pkg-plist b/mail/nmh-devel/pkg-plist
new file mode 100644
index 000000000000..c8a136313ae1
--- /dev/null
+++ b/mail/nmh-devel/pkg-plist
@@ -0,0 +1,192 @@
+bin/ali
+bin/anno
+bin/burst
+bin/comp
+bin/dist
+bin/flist
+bin/flists
+bin/fmttest
+bin/fnext
+bin/folder
+bin/folders
+bin/forw
+bin/fprev
+@group mail
+@mode 2755
+bin/inc
+@mode
+@group
+bin/install-mh
+bin/mark
+bin/mhbuild
+bin/mhfixmsg
+bin/mhlist
+bin/mhical
+bin/mhlogin
+bin/mhmail
+bin/mhn
+bin/mhparam
+bin/mhpath
+bin/mhshow
+bin/mhstore
+bin/msgchk
+bin/new
+bin/next
+bin/packf
+bin/pick
+bin/prev
+bin/prompter
+bin/refile
+bin/repl
+bin/rmf
+bin/rmm
+bin/scan
+bin/send
+bin/sendfiles
+bin/show
+bin/sortm
+bin/unseen
+bin/whatnow
+bin/whom
+@sample etc/nmh/MailAliases-dist etc/nmh/MailAliases
+@sample etc/nmh/bash_completion_nmh-dist etc/nmh/bash_completion_nmh
+@sample etc/nmh/mhical.12hour-dist etc/nmh/mhical.12hour
+@sample etc/nmh/mhical.24hour-dist etc/nmh/mhical.24hour
+@sample etc/nmh/mhl.replywithoutbody-dist etc/nmh/mhl.replywithoutbody
+@sample etc/nmh/rmmproc.messageid-dist etc/nmh/rmmproc.messageid
+@sample etc/nmh/components-dist etc/nmh/components
+@sample etc/nmh/digestcomps-dist etc/nmh/digestcomps
+@sample etc/nmh/distcomps-dist etc/nmh/distcomps
+@sample etc/nmh/forwcomps-dist etc/nmh/forwcomps
+@sample etc/nmh/mhl.body-dist etc/nmh/mhl.body
+@sample etc/nmh/mhl.digest-dist etc/nmh/mhl.digest
+@sample etc/nmh/mhl.format-dist etc/nmh/mhl.format
+@sample etc/nmh/mhl.forward-dist etc/nmh/mhl.forward
+@sample etc/nmh/mhl.headers-dist etc/nmh/mhl.headers
+@sample etc/nmh/mhl.reply-dist etc/nmh/mhl.reply
+@sample etc/nmh/mhn.defaults-dist etc/nmh/mhn.defaults
+@sample etc/nmh/mhshow.marker-dist etc/nmh/mhshow.marker
+@sample etc/nmh/mts.conf-dist etc/nmh/mts.conf
+@sample etc/nmh/rcvdistcomps-dist etc/nmh/rcvdistcomps
+@sample etc/nmh/rcvdistcomps.outbox-dist etc/nmh/rcvdistcomps.outbox
+@sample etc/nmh/replcomps-dist etc/nmh/replcomps
+@sample etc/nmh/replgroupcomps-dist etc/nmh/replgroupcomps
+@sample etc/nmh/scan.MMDDYY-dist etc/nmh/scan.MMDDYY
+@sample etc/nmh/scan.YYYYMMDD-dist etc/nmh/scan.YYYYMMDD
+@sample etc/nmh/scan.curses-dist etc/nmh/scan.curses
+@sample etc/nmh/scan.default-dist etc/nmh/scan.default
+@sample etc/nmh/scan.highlighted-dist etc/nmh/scan.highlighted
+@sample etc/nmh/scan.mailx-dist etc/nmh/scan.mailx
+@sample etc/nmh/scan.nomime-dist etc/nmh/scan.nomime
+@sample etc/nmh/scan.size-dist etc/nmh/scan.size
+@sample etc/nmh/scan.time-dist etc/nmh/scan.time
+@sample etc/nmh/scan.timely-dist etc/nmh/scan.timely
+@sample etc/nmh/scan.unseen-dist etc/nmh/scan.unseen
+libexec/nmh/ap
+libexec/nmh/dp
+libexec/nmh/fmtdump
+libexec/nmh/mhl
+libexec/nmh/mkstemp
+libexec/nmh/post
+libexec/nmh/rcvdist
+libexec/nmh/rcvpack
+libexec/nmh/rcvstore
+libexec/nmh/rcvtty
+libexec/nmh/slocal
+libexec/nmh/spost
+libexec/nmh/viamail
+man/man1/ali.1.gz
+man/man1/anno.1.gz
+man/man1/burst.1.gz
+man/man1/comp.1.gz
+man/man1/dist.1.gz
+man/man1/flist.1.gz
+man/man1/flists.1.gz
+man/man1/fmttest.1.gz
+man/man1/fnext.1.gz
+man/man1/folder.1.gz
+man/man1/folders.1.gz
+man/man1/forw.1.gz
+man/man1/fprev.1.gz
+man/man1/inc.1.gz
+man/man1/install-mh.1.gz
+man/man1/mark.1.gz
+man/man1/mh-mkstemp.1.gz
+man/man1/mhbuild.1.gz
+man/man1/mhfixmsg.1.gz
+man/man1/mhical.1.gz
+man/man1/mhl.1.gz
+man/man1/mhlist.1.gz
+man/man1/mhlogin.1.gz
+man/man1/mhmail.1.gz
+man/man1/mhn.1.gz
+man/man1/mhparam.1.gz
+man/man1/mhpath.1.gz
+man/man1/mhshow.1.gz
+man/man1/mhstore.1.gz
+man/man1/msgchk.1.gz
+man/man1/new.1.gz
+man/man1/next.1.gz
+man/man1/packf.1.gz
+man/man1/pick.1.gz
+man/man1/prev.1.gz
+man/man1/prompter.1.gz
+man/man1/rcvdist.1.gz
+man/man1/rcvpack.1.gz
+man/man1/rcvstore.1.gz
+man/man1/rcvtty.1.gz
+man/man1/refile.1.gz
+man/man1/repl.1.gz
+man/man1/rmf.1.gz
+man/man1/rmm.1.gz
+man/man1/scan.1.gz
+man/man1/send.1.gz
+man/man1/sendfiles.1.gz
+man/man1/show.1.gz
+man/man1/slocal.1.gz
+man/man1/sortm.1.gz
+man/man1/unseen.1.gz
+man/man1/whatnow.1.gz
+man/man1/whom.1.gz
+man/man5/mh-alias.5.gz
+man/man5/mh-draft.5.gz
+man/man5/mh-folders.5.gz
+man/man5/mh-format.5.gz
+man/man5/mh-mail.5.gz
+man/man5/mh-profile.5.gz
+man/man5/mh-sequence.5.gz
+man/man5/mh-tailor.5.gz
+man/man5/mh_profile.5.gz
+man/man5/mts.conf.5.gz
+man/man7/MH.7.gz
+man/man7/mh-chart.7.gz
+man/man7/mh-mime.7.gz
+man/man7/nmh.7.gz
+man/man8/ap.8.gz
+man/man8/dp.8.gz
+man/man8/fmtdump.8.gz
+man/man8/post.8.gz
+%%PORTDOCS%%%%DOCSDIR%%/COMPLETION-TCSH
+%%PORTDOCS%%%%DOCSDIR%%/COMPLETION-ZSH
+%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
+%%PORTDOCS%%%%DOCSDIR%%/DIFFERENCES
+%%PORTDOCS%%%%DOCSDIR%%/FAQ
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/MAIL.FILTERING
+%%PORTDOCS%%%%DOCSDIR%%/MAILING-LISTS
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README-ATTACHMENTS
+%%PORTDOCS%%%%DOCSDIR%%/README-HOOKS
+%%PORTDOCS%%%%DOCSDIR%%/README-components
+%%PORTDOCS%%%%DOCSDIR%%/README.SASL
+%%PORTDOCS%%%%DOCSDIR%%/README.about
+%%PORTDOCS%%%%DOCSDIR%%/README.developers
+%%PORTDOCS%%%%DOCSDIR%%/README.manpages
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/VERSION
+%%PORTDOCS%%%%DOCSDIR%%/contrib/localpostproc
+%%PORTDOCS%%%%DOCSDIR%%/contrib/ml
+%%PORTDOCS%%%%DOCSDIR%%/contrib/replaliases
+%%PORTDOCS%%%%DOCSDIR%%/contrib/replyfilter
+%%PORTDOCS%%%%DOCSDIR%%/contrib/vpick