summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2004-07-26 23:26:27 +0000
committerschmonz <schmonz@pkgsrc.org>2004-07-26 23:26:27 +0000
commitfd4b1ade8d92a6a615327e4fa981373bbc1f0f14 (patch)
tree26b5f3c712ab42f95b71e751b8788808440c0004 /mail
parentb622320f83da5340b413de8db52b2e4306eb3246 (diff)
downloadpkgsrc-fd4b1ade8d92a6a615327e4fa981373bbc1f0f14.tar.gz
Initial import of mess822-0.58.
mess822 is a library for parsing Internet mail messages. The mess822 package contains several applications that work with qmail: * ofmipd rewrites messages from dumb clients. It supports a database of recognized senders and From lines, using cdb for fast lookups. * new-inject is an experimental new version of qmail-inject. It includes a flexible user-controlled hostname rewriting mechanism. * iftocc can be used in .qmail files. It checks whether a known address is listed in To or Cc. * 822header, 822field, 822date, and 822received extract various pieces of information from a mail message. * 822print converts a message into an easier-to-read format. mess822 supports the full complexity of RFC 822 address lists, including address groups, source routes, spaces around dots, etc. It also supports common RFC 822 extensions: backslashes in atoms, dots in phrases, addresses without host names, etc. It extracts each address as an easy-to-use string, with a separate string for the accompanying comment.
Diffstat (limited to 'mail')
-rw-r--r--mail/mess822/DESCR23
-rw-r--r--mail/mess822/Makefile44
-rw-r--r--mail/mess822/PLIST46
-rw-r--r--mail/mess822/distinfo5
-rw-r--r--mail/mess822/patches/patch-aa45
5 files changed, 163 insertions, 0 deletions
diff --git a/mail/mess822/DESCR b/mail/mess822/DESCR
new file mode 100644
index 00000000000..319e75eb0da
--- /dev/null
+++ b/mail/mess822/DESCR
@@ -0,0 +1,23 @@
+mess822 is a library for parsing Internet mail messages. The mess822
+package contains several applications that work with qmail:
+
+* ofmipd rewrites messages from dumb clients. It supports a database
+ of recognized senders and From lines, using cdb for fast lookups.
+
+* new-inject is an experimental new version of qmail-inject. It
+ includes a flexible user-controlled hostname rewriting mechanism.
+
+* iftocc can be used in .qmail files. It checks whether a known
+ address is listed in To or Cc.
+
+* 822header, 822field, 822date, and 822received extract various
+ pieces of information from a mail message.
+
+* 822print converts a message into an easier-to-read format.
+
+mess822 supports the full complexity of RFC 822 address lists,
+including address groups, source routes, spaces around dots, etc.
+It also supports common RFC 822 extensions: backslashes in atoms,
+dots in phrases, addresses without host names, etc. It extracts
+each address as an easy-to-use string, with a separate string for
+the accompanying comment.
diff --git a/mail/mess822/Makefile b/mail/mess822/Makefile
new file mode 100644
index 00000000000..0c1ca8638ea
--- /dev/null
+++ b/mail/mess822/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/26 23:26:27 schmonz Exp $
+#
+
+DISTNAME= mess822-0.58
+CATEGORIES= mail
+MASTER_SITES= http://cr.yp.to/software/
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://cr.yp.to/mess822.html
+COMMENT= Library for parsing Internet mail messages
+
+DEPENDS+= {qmail>=1.03nb7,netqmail>=1.05}:../../mail/qmail
+
+# We change conf-home from the default "/usr/local" and don't
+# provide compatibilbity symlinks. We also patch hier.c to respect
+# PKG_SYSCONFDIR and set reasonable modes on directories under
+# ${PREFIX}.
+RESTRICTED= "modified source and binaries may not be distributed"
+NO_BIN_ON_CDROM= ${RESTRICTED}
+NO_BIN_ON_FTP= ${RESTRICTED}
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_BUILDLINK3= yes
+
+EGDIR= ${PREFIX}/share/examples/mess822
+CFLAGS+= -DPKG_SYSCONFDIR=\"\\\"${PKG_SYSCONFDIR}\\\"\"
+USE_PKGINSTALL= yes
+MAKE_DIRS+= ${PKG_SYSCONFDIR}
+SUPPORT_FILES+= ${EGDIR}/leapsecs.dat ${PKG_SYSCONFDIR}/leapsecs.dat
+
+ALL_TARGET= it install instcheck
+INSTALL_TARGET= setup check
+
+INSTALLATION_DIRS= bin include lib man man/cat1 man/cat3 man/cat5 man/cat8
+INSTALLATION_DIRS+= man/man1 man/man3 man/man5 man/man8 share/examples/mess822
+
+do-configure:
+ ${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
+ ${ECHO} ${CC} ${_STRIPFLAG_CC} > ${WRKSRC}/conf-ld
+ ${ECHO} ${PREFIX} > ${WRKSRC}/conf-home
+ ${ECHO} ${QMAILDIR} > ${WRKSRC}/conf-qmail
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/mess822/PLIST b/mail/mess822/PLIST
new file mode 100644
index 00000000000..47472e50ea8
--- /dev/null
+++ b/mail/mess822/PLIST
@@ -0,0 +1,46 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/26 23:26:27 schmonz Exp $
+bin/822date
+bin/822field
+bin/822header
+bin/822print
+bin/822received
+bin/iftocc
+bin/new-inject
+bin/ofmipd
+bin/ofmipname
+include/mess822.h
+lib/mess822.a
+man/cat1/822date.0
+man/cat1/822field.0
+man/cat1/822header.0
+man/cat1/822print.0
+man/cat1/822received.0
+man/cat1/iftocc.0
+man/cat1/new-inject.0
+man/cat3/mess822.0
+man/cat3/mess822_addr.0
+man/cat3/mess822_date.0
+man/cat3/mess822_fold.0
+man/cat3/mess822_quote.0
+man/cat3/mess822_token.0
+man/cat3/mess822_when.0
+man/cat5/rewriting.0
+man/cat8/ofmipd.0
+man/cat8/ofmipname.0
+man/man1/822date.1
+man/man1/822field.1
+man/man1/822header.1
+man/man1/822print.1
+man/man1/822received.1
+man/man1/iftocc.1
+man/man1/new-inject.1
+man/man3/mess822.3
+man/man3/mess822_addr.3
+man/man3/mess822_date.3
+man/man3/mess822_fold.3
+man/man3/mess822_quote.3
+man/man3/mess822_token.3
+man/man3/mess822_when.3
+man/man5/rewriting.5
+man/man8/ofmipd.8
+man/man8/ofmipname.8
diff --git a/mail/mess822/distinfo b/mail/mess822/distinfo
new file mode 100644
index 00000000000..0a81be52ce3
--- /dev/null
+++ b/mail/mess822/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/26 23:26:27 schmonz Exp $
+
+SHA1 (mess822-0.58.tar.gz) = ef3380c793c852d40688c108d164234ecf8a5362
+Size (mess822-0.58.tar.gz) = 64287 bytes
+SHA1 (patch-aa) = 62464e4d3afb31ad2ef38575cddbee969c8a82b3
diff --git a/mail/mess822/patches/patch-aa b/mail/mess822/patches/patch-aa
new file mode 100644
index 00000000000..e0b3f68da51
--- /dev/null
+++ b/mail/mess822/patches/patch-aa
@@ -0,0 +1,45 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/07/26 23:26:27 schmonz Exp $
+
+--- hier.c.orig 1998-09-04 22:33:37.000000000 -0400
++++ hier.c
+@@ -2,20 +2,20 @@
+
+ void hier()
+ {
+- h(auto_home,-1,-1,02755);
++ h(auto_home,-1,-1,0755);
+
+- d(auto_home,"bin",-1,-1,02755);
+- d(auto_home,"lib",-1,-1,02755);
+- d(auto_home,"include",-1,-1,02755);
+- d(auto_home,"man",-1,-1,02755);
+- d(auto_home,"man/man1",-1,-1,02755);
+- d(auto_home,"man/man3",-1,-1,02755);
+- d(auto_home,"man/man5",-1,-1,02755);
+- d(auto_home,"man/man8",-1,-1,02755);
+- d(auto_home,"man/cat1",-1,-1,02755);
+- d(auto_home,"man/cat3",-1,-1,02755);
+- d(auto_home,"man/cat5",-1,-1,02755);
+- d(auto_home,"man/cat8",-1,-1,02755);
++ d(auto_home,"bin",-1,-1,0755);
++ d(auto_home,"lib",-1,-1,0755);
++ d(auto_home,"include",-1,-1,0755);
++ d(auto_home,"man",-1,-1,0755);
++ d(auto_home,"man/man1",-1,-1,0755);
++ d(auto_home,"man/man3",-1,-1,0755);
++ d(auto_home,"man/man5",-1,-1,0755);
++ d(auto_home,"man/man8",-1,-1,0755);
++ d(auto_home,"man/cat1",-1,-1,0755);
++ d(auto_home,"man/cat3",-1,-1,0755);
++ d(auto_home,"man/cat5",-1,-1,0755);
++ d(auto_home,"man/cat8",-1,-1,0755);
+
+ c(auto_home,"lib","mess822.a",-1,-1,0644);
+ c(auto_home,"include","mess822.h",-1,-1,0644);
+@@ -66,5 +66,5 @@ void hier()
+ c(auto_home,"man/cat3","mess822_token.0",-1,-1,0644);
+ c(auto_home,"man/cat3","mess822_when.0",-1,-1,0644);
+
+- c("/etc",".","leapsecs.dat",-1,-1,0644);
++ c(auto_home,"share/examples/mess822","leapsecs.dat",-1,-1,0644);
+ }