From df3f6cbd7e20ae58f0e100ce80238808c6cbe133 Mon Sep 17 00:00:00 2001 From: sthen Date: Fri, 14 Aug 2009 00:02:10 +0000 Subject: [PATCH] import mail/nmzmail: nmzmail is a tool to use the namazu search engine from within the mutt mail client to search mail stored in maildir folders. Based on the result of the namazu query, nmzmail generates a maildir folder containing symbolic links to the mails matching the query. A simple mutt macro makes it easy to use nmzmail from within mutt. nmzmail is pretty similar to mairix, but the code is much simpler, as it uses an external program as search engine. --- mail/nmzmail/Makefile | 28 +++++++++++++++++++++++++ mail/nmzmail/distinfo | 5 +++++ mail/nmzmail/patches/patch-configure_ac | 13 ++++++++++++ mail/nmzmail/pkg/DESCR | 8 +++++++ mail/nmzmail/pkg/PLIST | 3 +++ 5 files changed, 57 insertions(+) create mode 100644 mail/nmzmail/Makefile create mode 100644 mail/nmzmail/distinfo create mode 100644 mail/nmzmail/patches/patch-configure_ac create mode 100644 mail/nmzmail/pkg/DESCR create mode 100644 mail/nmzmail/pkg/PLIST diff --git a/mail/nmzmail/Makefile b/mail/nmzmail/Makefile new file mode 100644 index 00000000000..e3452bbe1f6 --- /dev/null +++ b/mail/nmzmail/Makefile @@ -0,0 +1,28 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/08/14 00:02:10 sthen Exp $ + +COMMENT= fast maildir search engine +DISTNAME= nmzmail-1.1 + +CATEGORIES= mail textproc +HOMEPAGE= http://www.ecademix.com/JohannesHofmann/nmzmail.html + +MAINTAINER= Stuart Henderson + +# GPLv3 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= c readline termcap + +MASTER_SITES= ${HOMEPAGE:nmzmail.html=} + +BUILD_DEPENDS= ::textproc/namazu +RUN_DEPENDS= ${BUILD_DEPENDS} + +# should be 2.63 +AUTOCONF_VERSION=2.61 +CONFIGURE_STYLE=gnu autoconf + +.include diff --git a/mail/nmzmail/distinfo b/mail/nmzmail/distinfo new file mode 100644 index 00000000000..ea6ab953012 --- /dev/null +++ b/mail/nmzmail/distinfo @@ -0,0 +1,5 @@ +MD5 (nmzmail-1.1.tar.gz) = 0Enz1U5O93pYKhbjPXrVYA== +RMD160 (nmzmail-1.1.tar.gz) = +8p6Hwj3v97hFtlC/HNAk9DTzog= +SHA1 (nmzmail-1.1.tar.gz) = lPlWof1RxPv/Qta6xXyU3ngaOfI= +SHA256 (nmzmail-1.1.tar.gz) = XP3cibTpnIoyDV22VdMVPjW8RFXwfIPxl4gRR3cFxCg= +SIZE (nmzmail-1.1.tar.gz) = 94326 diff --git a/mail/nmzmail/patches/patch-configure_ac b/mail/nmzmail/patches/patch-configure_ac new file mode 100644 index 00000000000..25633109a99 --- /dev/null +++ b/mail/nmzmail/patches/patch-configure_ac @@ -0,0 +1,13 @@ +$OpenBSD: patch-configure_ac,v 1.1.1.1 2009/08/14 00:02:10 sthen Exp $ +--- configure.ac.orig Mon Apr 20 07:10:12 2009 ++++ configure.ac Thu Aug 13 16:04:17 2009 +@@ -37,7 +37,8 @@ AC_CHECK_FUNCS([dup2 setenv strchr strdup strrchr strs + + # Check for readline + AC_CHECK_HEADERS([readline/readline.h], [], [echo "Error: readline headers not found."; exit 1;]) +-AC_CHECK_LIB([readline], [open], [], [echo "Error: libreadline.so not found."; exit 1;]) ++AC_SEARCH_LIBS(tgetent, termcap terminfo termlib) ++AC_CHECK_LIB([readline], [open], [], [echo "Error: libreadline.so not found."; exit 1;]) + + AC_CONFIG_FILES([Makefile src/Makefile]) + AC_OUTPUT diff --git a/mail/nmzmail/pkg/DESCR b/mail/nmzmail/pkg/DESCR new file mode 100644 index 00000000000..80140dcd5b2 --- /dev/null +++ b/mail/nmzmail/pkg/DESCR @@ -0,0 +1,8 @@ +nmzmail is a tool to use the namazu search engine from within the +mutt mail client to search mail stored in maildir folders. Based +on the result of the namazu query, nmzmail generates a maildir +folder containing symbolic links to the mails matching the query. +A simple mutt macro makes it easy to use nmzmail from within mutt. + +nmzmail is pretty similar to mairix, but the code is much simpler, +as it uses an external program as search engine. diff --git a/mail/nmzmail/pkg/PLIST b/mail/nmzmail/pkg/PLIST new file mode 100644 index 00000000000..389589a2a3e --- /dev/null +++ b/mail/nmzmail/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/08/14 00:02:10 sthen Exp $ +@bin bin/nmzmail +@man man/man1/nmzmail.1